EXCEPTIONSTREAM(error,t2n_server_error,"failed listening on invalid ip " << ip);
if (bind (sock, (struct sockaddr *) &sockaddr, sizeof (sockaddr)) < 0)
+ {
+ // FIXME: Calls virtual function socket_server::get_logstream() in constructor
EXCEPTIONSTREAM(error,t2n_server_error,"error binding socket: " << strerror(errno));
+ }
start_listening();
}
{
unix_path=path;
+ // TODO: Every EXCEPTIONSTREAM in here calls virtual function get_logstream()
+
/* Create the socket. */
sock = socket (PF_UNIX, SOCK_STREAM, 0);
if (sock < 0)