Advertisement

Sock my Winsock (How to transmit data?!)

Started by April 22, 2002 01:45 PM
0 comments, last by SnAkE 22 years, 9 months ago
''Kay I''ve got this small Winsock Program... It does establish a connection to my Winsock server, and everything seems to work quite all right. But if I try to transmit any data, nothing happens. I do it this way: The client is in a infinite loop, where he just calls the "recv()"-function and prints out the buffer. The server sends the same text over and over again, but I get a -1 from the "send()"-function...?! So nothing happens... Who can help me?! Thanx in advance, SnAkE. PS: Ask for source or binary if nessecary. ;-) SnAkE''s Programming Resources
You could start out by finding out what the error actually is by using WSAGetLastError()
try this url for the list of error codes
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/errors_2036.asp
Also make sure you are checking the return values from your connect/accept etc. functions

This topic is closed to new replies.

Advertisement