Hi I need to write a perl programm, which connects two tcp sockets to each other. One will be a pure IO::Socket::INET (a), the other will propably something link Net::HTTP::NB (b). Seems easy: Select on both. a.recv -> b.write_chunk b.read_entity_body -> a.send That's it.
However I seem to be unable to do this in a non-blocking way. Net::HTTP::NB has nonblocking read, but propably no non-blocking write. Net::HTTP does no seem to be thread-safe. Every incoming byte from one connection shall be forwarded to the other and vice versa. I know that HTTP is not really a good choise for this, but the connections will be very low-bandwidth and only used very rarly. However I am bound to use HTTP. One other limitation is, that lateron I need to support HTTPS. Any hints would be greatly appreciated. Where should I start to read, what should I learn first or is there even something similar? Regards, Steffen
smime.p7s
Description: S/MIME cryptographic signature