Is it possible to make a thread server, and another client in one application. The end result will be a binary that will use one thread as server and another as client. This means two different threads will be using same port, is this possible?
I’ll be using python for writing this app.
Yes; if you’re listening on a port in one thread, you can connect to it on a different thread in the same process.
In Python, this would be achieved using the
threadingmodule.