|
single stream for two-way communication?
From looking at the documentation, it seems that if I want to use a single TCP stream for all communication (two-way, even, between client and server), I'd have to use Glacier on the server side, and use GlacierStarter. There is some mention of the stream staying alive for two-way communication only while there is an active connection up -- what's the canonical way to create a connection and keep it around for the lifetime of the client?
Also, along with a two-way tcp stream, I'd like to create a parallel UDP port set to use for communication (specifically server-to-client IceStorm broadcasts). However, to get through common NAT setups, the client would need to initiate this connection, and the server would need to use the src udp port as the destination. I've got some ideas on how to set this up, but I'd be interested to hear if there's a standard way of doing this.
Thanks!
|