| 434 | } |
| 435 | |
| 436 | template<class T> T ReservedSocketList<T>::resolve(NetSocket socketToResolve) |
| 437 | { |
| 438 | MutexHandle h; |
| 439 | h.lock(mMutex, true); |
| 440 | |
| 441 | if ((U32)socketToResolve.getHandle() >= (U32)mSocketList.size()) |
| 442 | return -1; |
| 443 | |
| 444 | EntryType &entry = mSocketList[socketToResolve.getHandle()]; |
| 445 | return entry.used ? entry.value : -1; |
| 446 | } |
| 447 | |
| 448 | ConnectionNotifyEvent* Net::smConnectionNotify = NULL; |
| 449 | ConnectionAcceptedEvent* Net::smConnectionAccept = NULL; |
no test coverage detected