|
|
|
CSockets
Started by theDentist at 01-05-2008 11:13 AM. Topic has 0 replies.
|
|
01-05-2008, 11:13 AM
|
theDentist
Joined on 12-05-2005
Posts 42
|
|
|
It's been a long time since I've been on this forum. I hope somebody still looks at it. I've had to do some work in an MFC program recently which needed communication by sockets. I tried to use the CSocket class but failed on the second line of code, I declared the empty CSocket variable, then called the Create functioin which then fails. When I call GetLastError, I get code 10093, what am I doing wrong, this fails on three computers, running Win2K and XP. I'm using VC++ 6. The Create function has three possible parameters. I've tried all combinations, from accepting all defaults by (), passing 0 to the first parameter to let the system choose the port, the second parameter is the flagged as stream, which is the default, the third parameter when 0 defaults to localhost. Can anyone help with some ideas. I can do nothing with the socket till this works
Peter
|
|
|
|
|
Report
|
|
|
|
|
Codersource.Net » Programming » MFC Programming » CSockets
|
|
| |
|