[Plib-devel] netSocket patch
Brought to you by:
sjbaker
From: Oliver S. <li...@o-...> - 2005-10-21 10:38:44
|
Hi list, I have attached a minor patch to netSocket. It includes three changes: 1) netAddress::getIP() - returns sin_addr 2) netAddress::getFamily() - returns sin_family both are really trivial and should do no harm. 3) changed netSocket::select( reads, writes, timeout ) the select method now handles non existent "reads" and "writes", so one can call select with eg: DataSocket->select (ListenSockets, 0, TimeOut); Additionally it returns: -1: error occurred -2: timeout so an application can differentiate between and occured error and a timeout. These changes to ::select() might have impact on other parts of plib, not sure about that. Nevertheless please consider to apply the patch to current plib-cvs. regards, Oliver |