joined some lines into one
This commit is contained in:
parent
39badd5582
commit
363424f15a
@ -100,9 +100,7 @@ void socketstream::make_server(const socket_address& sa) {
|
||||
socketstream socketstream::accept() const {
|
||||
socketstream peer;
|
||||
socklen_t len = sizeof(struct sockaddr_storage);
|
||||
int active_socket = ::accept(_socket,
|
||||
reinterpret_cast<struct sockaddr*>(&peer._sa),
|
||||
&len);
|
||||
int active_socket = ::accept(_socket, reinterpret_cast<struct sockaddr*>(&peer._sa), &len);
|
||||
throw_if_min1(active_socket);
|
||||
peer._socket = active_socket;
|
||||
peer._domain = _domain;
|
||||
|
Loading…
x
Reference in New Issue
Block a user