Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CAsyncSocket and SendTo function

Status
Not open for further replies.

Berras

Programmer
Joined
Feb 24, 2002
Messages
42
Location
GB
I am trying to make a network program that uses CAsyncSocket. When I try to send data using the SendTo function it comes up with an error and the data is not sent. After a bit of testing I discovered the error (as an interger) is sometimes 0 and sometimes -1. But I do not know what these errors mean. Any suggestions??
Thanks.
James
 
You could try calling GetLastError to get more information on the reason for the failure.

--
 
It still comes up with a an error 0.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top