Commit 9a24ac5a authored by jan.koester's avatar jan.koester
Browse files

ops

parent 813d0ac1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -171,7 +171,7 @@ void netplus::tcp::accept(socket *csock){

void netplus::tcp::bind(){
    NetException exception;
    if (::bind(_Socket,((const struct sockaddr *)_SocketInfo), _SocketInfoLen) < 0){
    if (::bind(_Socket,((const struct addrinfo*)_SocketInfo)->ai_addr , ((const struct addrinfo*)_SocketInfo)->ai_addrlen) < 0){
        exception[NetException::Error] << "Can't bind Server Socket";
        throw exception;
    }
+1 −1
Original line number Diff line number Diff line
@@ -171,7 +171,7 @@ void netplus::udp::accept(socket *csock){

void netplus::udp::bind(){
    NetException exception;
    if (::bind(_Socket,((const struct sockaddr *)_SocketInfo), _SocketInfoLen) < 0){
    if (::bind(_Socket,((const struct addrinfo*)_SocketInfo)->ai_addr , ((const struct addrinfo*)_SocketInfo)->ai_addrlen) < 0){
        exception[NetException::Error] << "Can't bind Server Socket";
        throw exception;
    }