38 len =
sizeof(this->addr);
40 sock =
new(Sock, this->log, -1);
43 sock->handle = accept(this->handle, (
struct sockaddr *) &(sock->addr), &len);
44 if (-1 == sock->handle) {
46 "error accepting connection: %s", strerror(errno));
48 strcpy(*remoteAddr, inet_ntoa((sock->addr).sin_addr));
void loggerLog(void *, logger_level, const char *const,...)
Sock socketAccept(Sock this, char(*remoteAddr)[16])