On Thursday 12 September 2002 11:08 am, Lars Gullik Bjønnes wrote: > the main loop in the LocalClientListener looks like this: > > sock_.listen(5);
what is sock_ ? Is this the "default socket" (ie has a name known to the client) through which this client can ask the server to create a new LocalConnection for it? > int reuse_addr = 1; > setsockopt(sock_.getSocket(), SOL_SOCKET, SO_REUSEADDR, > &reuse_addr, sizeof(reuse_addr)); > > while (true) { > boost::shared_ptr<LocalSocket> msgsock(sock_.accept()); > if (msgsock->isOK()) { > > // Get the secret: > string const secret = gs("dummy"); > > // Setup SSL + check sertificates + etc > > LocalConnection connection(msgsock, chr_, > secret); > // This passes the connection to the > handler // for new connections. > newConnection(connection); > } else { > std::cerr << "Error yet again!" << std::endl; > } > } does newConnection do anything interesting, or does it just store connection in a list or some such? Angus