12 Aug
2011
12 Aug
'11
12:19 p.m.
I created a socket with BOOST asio and I use it in a server process that accepts connections from "remote" client. It is possible from the process that created the socket, send data to the same socket simulating the arrival of data from a client process?
To the same socket - you can send data back to your client. To simulate data arrival, you have to connect another socket to the port that the listening socket listens on, but this second socket can reside in the same process.