Vanilla List Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [VANILLA-LIST:2897] Virtual-hosting newstartd



On Wed, 23 Feb 2000, James Cameron wrote:
> Do you also need to change the ghostbust callback connect via TCP?

In socket.c:connectToClient() ?

This function, and the UDP socket creation function are the only places where
a socket is created in the server, as far as I can tell.  There is stuff in
solicit.c and newstartd, but that's different code.

The connectToClient isn't normally used, except when ntserv is started in call
client mode (debugging) and ghostbust re-connects.  I'm not sure how to find
the address the socket should be bound to in these cases.  In the first one,
call client mode, it needs to be a command line parameter to ntserv which
interface to bind to.  I don't think anyone is going to want to do this, so I
say leave it and let someone write the code when they find a need.

In the second case, maybe getsockname() is still valid on a socket that had
been shutdown?  Otherwise the address of the TCP socket needs to be saved
before it is shutdown, and connectToClient needs to use this address.