Does anyone know how I could connect 2 TCP streams together? I basically want to be able to forward TCP communications from one stream to the other without having to sit in a loop checking each for activity, then reading data and sending it to the other stream.
Don't know if this is possible.
Quote from: taylorjonl on January 16, 2004, 11:08 AM
Does anyone know how I could connect 2 TCP streams together? I basically want to be able to forward TCP communications from one stream to the other without having to sit in a loop checking each for activity, then reading data and sending it to the other stream.
Don't know if this is possible.
There is definitely no standard way to do this. Additionally, I know of no non-standard Windows-specific way to do it, either.
You might be able to do it with the Linux-specific sendfile(2) call, but I've never tried to do so.
Quote from: Kp on January 16, 2004, 01:44 PM
You might be able to do it with the Linux-specific sendfile(2) call, but I've never tried to do so.
Actually, that's a good idea - you *might* be able to do it with TransmitFile in Win32... but, I've never tried it.
Why would you want to do this?