|
|
|
@ -43,11 +43,7 @@ socketAccept(Sock this, char (*remoteAddr)[16]) |
|
|
|
* the data structure without creation of a socket at all. |
|
|
|
* For now i simply close the socket here.... :D |
|
|
|
*/ |
|
|
|
sock = new(Sock, this->log, this->port); |
|
|
|
close(sock->handle); |
|
|
|
/** |
|
|
|
* \todo change port to remote port on success |
|
|
|
*/ |
|
|
|
sock = new(Sock, this->log, -1); |
|
|
|
|
|
|
|
// Wait for a client to connect |
|
|
|
sock->handle = accept(this->handle, (struct sockaddr *) &(sock->addr), &len); |
|
|
|
|