Hi All,
Anyone know how to set the timeout value for a client socket thats trying to asynchronously connect to a server.
I know this seems dumb since its connecting asynchronously, but id still like to shorten the timeout value.
For example :
Thanks
Anyone know how to set the timeout value for a client socket thats trying to asynchronously connect to a server.
I know this seems dumb since its connecting asynchronously, but id still like to shorten the timeout value.
For example :
Code:
client = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP)
set timeout value
client.timeout ????
asynchronous connect
client.BeginConnect(EP, AddressOf sockconnected, client)
Thanks