Skip to main content
GameDev.net gamedev.net
🔒 Locked

Winsock Error

Started by Great Milenko Jan 17, 2001 at 12:31 AM 2 replies 500+ views
Original Post
Great Milenko
Great Milenko
ummmm ok well heh I''m getting error WSAEISCONN(10056) from sendto and recvfrom. it would be such a problem if I knew what the hell is error is! but the only place I can find it is in winsock2.h... I''ve check my code over and over again and I can''t figure out what the hell is wrong.... btw I''m using udp/ip... if that has anything to do with it....
The Great Milenko"Don't stick a pretzel up your ass, it might get stuck in there.""Computer Programming is findding the right wrench to hammer in the correct screw."
FordPrefect
FordPrefect
sendto and recvfrom are only used on connectionless sockets. if you''ve connected your sockets, use send and recv.
Great Milenko
Great Milenko
it is on a connectionless socket =) udp =)
The Great Milenko"Don't stick a pretzel up your ass, it might get stuck in there.""Computer Programming is findding the right wrench to hammer in the correct screw."
FordPrefect
FordPrefect
UDP sockets can still be connected. If you''ve connect()ed sockets, don''t use recvfrom and sendto. That, and trying to connect an already connect()ed socket are the only ways a WSAEISCONN error can be generated.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.