NeuralJack
Well-known member
- Joined
- Jul 28, 2005
- Messages
- 138
So, sure the TcpListener will sit there and listen.. but for an app of mine id like the Client to sit there and wait for a Host to accept the connection.
The way Im doing it is putting the TcpClient.connect through a Loop. I just dont like how each time the TcpClient attempts to connect and fails it throws an Exception.
Is there another way to make the TcpClient just sit there, quietly, waiting for a host to accept the connection w/out throwing socket exceptions?
So far i have tried TcpClient.connect, TcpClient.BeginConnect with AsyncWaitHandle.WaitOne(), etc. No luck... probably because the connection method actually exits on a connection failure each time.
The way Im doing it is putting the TcpClient.connect through a Loop. I just dont like how each time the TcpClient attempts to connect and fails it throws an Exception.
Is there another way to make the TcpClient just sit there, quietly, waiting for a host to accept the connection w/out throwing socket exceptions?
So far i have tried TcpClient.connect, TcpClient.BeginConnect with AsyncWaitHandle.WaitOne(), etc. No luck... probably because the connection method actually exits on a connection failure each time.