I'm trying to help with diagnosing a network issue. The problem that occurs is never receiving any data on a socket. It's created as follows:-
socket(AF_INET,SOCK_STREAM,0)
This sertainly does not return invaid_socket so the assumption is there is a valid socket.
The problem being experienced is that where the network cable is unplugged at the client end no data is ever received. Where the network cable is unplugged at the switch then data is received when the cable is reconnected.
Thus my suspision is that there is some sort of option or something on the socket that should be set. I know approximately nothing about sockets, but am rapidly searching API's etc to try and find out. Any suggestions.
Cheers.
socket(AF_INET,SOCK_STREAM,0)
This sertainly does not return invaid_socket so the assumption is there is a valid socket.
The problem being experienced is that where the network cable is unplugged at the client end no data is ever received. Where the network cable is unplugged at the switch then data is received when the cable is reconnected.
Thus my suspision is that there is some sort of option or something on the socket that should be set. I know approximately nothing about sockets, but am rapidly searching API's etc to try and find out. Any suggestions.
Cheers.

Comment