how to close a socket?
karthikeyan 26-October-2007 05:20:24 PM

Comments


www.bigresource.com/VB-How-to-close-a-socket-connection--29akiXPO5p.html
Posted by crouse


www.amk.ca/python/howto/sockets
Posted by crouse


Socket . Close Method. Closes the Socket connection and releases all associated resources.
Posted by waqasahmad


status = 0 if successful
and
status = 1 if error occur
Posted by HamidAliKhan


status = close(s);
Posted by waqqas1


* When finished using a socket, the socket should be closed:
* status = close(s);
- status: 0 if successful, -1 if error
- s: the file descriptor (socket being closed)
* Closing a socket
- closes a connection (for SOCK_STREAM)
- frees up the port used by the socket

Posted by priyadarshan



Posted: 26-October-2007 05:35:20 PM By: priyadarshan

* When finished using a socket, the socket should be closed:
* status = close(s);
- status: 0 if successful, -1 if error
- s: the file descriptor (socket being closed)
* Closing a socket
- closes a connection (for SOCK_STREAM)
- frees up the port used by the socket

Posted: 12-November-2008 02:10:14 PM By: waqqas1

status = close(s);

Posted: 12-December-2008 09:05:34 AM By: HamidAliKhan

status = 0 if successful
and
status = 1 if error occur

Posted: 31-December-2008 12:09:25 AM By: waqasahmad

Socket . Close Method. Closes the Socket connection and releases all associated resources.

Posted: 09-September-2009 07:54:29 AM By: crouse

www.amk.ca/python/howto/sockets

Posted: 09-September-2009 07:58:27 AM By: crouse

www.bigresource.com/VB-How-to-close-a-socket-connection--29akiXPO5p.html