-
socket connections
Code:
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:
Code:
TcpClient myTcpClient = myTcpListener.AcceptTcpClient();
My app is waiting for a connection and holds back all other procedures until someone has connected.
Any ideas?
thx!
-
Maybe you can put that code in a seperate thread so it won't block your other procedures?