• Welcome to Valhalla Legends Archive.
 

TCP stream question

Started by taylorjonl, January 16, 2004, 11:08 AM

Previous topic - Next topic

taylorjonl

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.

Skywing

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.

Kp

You might be able to do it with the Linux-specific sendfile(2) call, but I've never tried to do so.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Skywing

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.

StormGage

Why would you want to do this?