Sets or Gets the timeout period, in milliseconds, for a Socket to block while waiting to send data.
socket_object.SendTimeout= <timeout>
-or-
...socket_object.SendTimeout
Prerequisites
None
Parameters
None
Remarks
The property allows you to set the timeout period for a Send or SendTo method. It only applies if the Socket is set to blocking. If a send request blocks waiting for the output queue, it will only wait for the specified timeout period. If that time is exceeded, the send request throws an Exception. If the timeout period is set to 0, the timeout is disabled and a send may block indefinitely.
Examples
ts.SendTimeout = 30000 ' Timeout in 30 seconds
ts.Send(trns, 1500) ' Send the data
See Also
Networking Classes | socket_object.Blocking| socket_object.ReceiveTimeout