I'm not sure this is even possible, but I am hoping there may be some way to do this:
I have two threads in a single application. One is an application that I am developing connects via a socket to another system running some other software. I am writing a simulator to provide a means of testing my application without having access to the other system (which I rarely have access to).
I want the simulator to be completely transparent, but I want to be able to control it within my application to ease development (e.g. I simply want a tab in my GUI to control this simulator). What I mean is the simulator and the application MUST communicate via a socket.
The issue is that sockets are designed for communication between two different processes. Can I use a socket between the app thread and the simulator thread in my single process?