Author | Message | Time |
---|---|---|
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. | January 16, 2004, 5:08 PM |
Skywing | [quote author=taylorjonl link=board=30;threadid=4738;start=0#msg39802 date=1074272925] 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] There is definitely no standard way to do this. Additionally, I know of no non-standard Windows-specific way to do it, either. | January 16, 2004, 5:31 PM |
Kp | You might be able to do it with the Linux-specific sendfile(2) call, but I've never tried to do so. | January 16, 2004, 7:44 PM |
Skywing | [quote author=Kp link=board=30;threadid=4738;start=0#msg39823 date=1074282247] You might be able to do it with the Linux-specific sendfile(2) call, but I've never tried to do so. [/quote] Actually, that's a good idea - you *might* be able to do it with TransmitFile in Win32... but, I've never tried it. | January 16, 2004, 7:48 PM |
StormGage | Why would you want to do this? | January 21, 2004, 2:07 AM |