[DGD] Changing connect() (network package)
Felix A. Croes
felix at dworkin.nl
Wed Dec 12 01:07:11 CET 2007
Noah Gibbs <noah_gibbs at yahoo.com> wrote:
> Incidentally, there's a really easy, clean way you can get outbound network
> connections with vanilla DGD, though it requires writing some non-DGD code.
>
> Write a simple network server that knows to connect on a particular port (it
> will be connecting to your DGD server). Have a simple control protocol with
> the operation "open a new outbound connection to <machine, TCP port>, then
> connect back to <port>". When the server sees the operation, have it fork off
> a new process which opens the outbound connection to the given server and port,
> opens a socket to the DGD server, and then just copies the data back and forth
> from one socket to the other.
I see that Noah figured it out before I did!
Regards,
Dworkin
More information about the DGD
mailing list