You can't receive or send data through a socket if you properly closed it.
Cheers and Happy coding
lstn = socket.socket (socket.AF_INET, socket.SOCK_STREAM)
lstn.bind (('', 2727))
(a, b) = lstn.accept ()
a.setblocking (0) # i use it with non blocking
except socket.error, (value, msg):
if value != 11: # it's not the Service unavailable exception
As Beat_Slayer said, you won't have any problems receiving information FROM the client. Why would you, if it is still open and sending? If the socket were closed in this case it would likely just wait into infinity (enter threaded handling).
By checking if you can SEND information, you will see if the connection is still established immediately. Thus, if the connection is not open, the exception socket.error will be raised.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...