bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Posix Socket code complains


From: Lawrence Sim
Subject: Posix Socket code complains
Date: Sun, 21 Oct 2001 11:45:17 GMT

In posix/socket.h the depreciated method OnAccept is commented out, 
although in posix/socket.cpp it still tries to catch out the old code. 
This means that the OnAccept method is called twice and an error message 
is displayed.
By commenting this code out, it all works.

The commented out code is on line 1200.

if (tcp.OnAccept(host, (short) port) != false) {
        clog << "### Wrong OnAccept() signature! Overwrite \n"
                << "\tbool OnAccept(const InetHostAddress &ia,\n"
                << "\t              tpport_t port);\n"
                << "\tThis OnAccept() does not work anymore.\n"
                << "\t(short changed to tpport_t)" << endl;
}


That's all.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]