Drstein99
Junior Contributor
I have a thread that listens for connections. My application works in a way where after the first connection, i want to stop receiving connections. Its adapted from a popular sample tcp/ip around the internet using threading.
--
When a connection is pending, it executes;
dTest = listener.AcceptSocket
---
I am finding, when the LISTENER.STOP command is issued, I beleive the dTest socket is shut down. I want the dTest SOCKET to be a separate object, apart from the listener. when i issue the listener.stop - i dont want it to affect that socket.
---
Can someone advise me please? I lack the experience in tcp/ip (also threading), this is my first project, but I am a versed programmer in database. Thanks.
--
When a connection is pending, it executes;
dTest = listener.AcceptSocket
---
I am finding, when the LISTENER.STOP command is issued, I beleive the dTest socket is shut down. I want the dTest SOCKET to be a separate object, apart from the listener. when i issue the listener.stop - i dont want it to affect that socket.
---
Can someone advise me please? I lack the experience in tcp/ip (also threading), this is my first project, but I am a versed programmer in database. Thanks.