vbzero
Apr 6th, 2002, 03:57 PM
private Socket sckTCD = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
This creates my new socket object.
I'm able to send via the socket and also receive data.
But I can only receive data when I request it.
My app does not listen on a port for incoming requests.
Is this only possible via the TcpListener?
If so, how can I prevent the following:
TcpClient myTcpClient = myTcpListener.AcceptTcpClient();
My app is waiting for a connection and holds back all other procedures until someone has connected.
Any ideas?
thx!
This creates my new socket object.
I'm able to send via the socket and also receive data.
But I can only receive data when I request it.
My app does not listen on a port for incoming requests.
Is this only possible via the TcpListener?
If so, how can I prevent the following:
TcpClient myTcpClient = myTcpListener.AcceptTcpClient();
My app is waiting for a connection and holds back all other procedures until someone has connected.
Any ideas?
thx!