socket programming problem...???
hi all
i have written a client / server program,
In the server i am waiting for a connection and after accepting the connection from a remote client i am sleeping for 5 sec, wiyhin this interval
i have unplugged the network cable ...
After the sleep is over i sent some data using send.
The perror after send is giving succes.
(Remember i have unplugged the cable...!!!)
i want to know a mechanism from which i should know before sending only whether the cable is plugged in or not..???
Thanks in advance...
-Arun KA
|