Advertisement

send() problem

Started by December 03, 2002 01:58 PM
0 comments, last by Crispy 22 years, 2 months ago
What can cause the following thing: once my client has connected to the server, passing its listening port as a message, the server responds by taking the ip from the sockaddr_in struct retrieved from accept(). when calling send() (after socket() and connect()), the server exits without any error messages - the program just closes - bam! this only seems to happen when i send the message to the correct ip address and port - sending it to a non-listening port somewhere only produces the normal SOCKET_ERROR. any ideas why that is so? thanks, crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
programs don''t "just close" unless you hit windows in a particularly painful place.

go to debugger and step through that send() call.

This topic is closed to new replies.

Advertisement