| 481 | } |
| 482 | |
| 483 | template<class T> T ReservedSocketList<T>::resolve(NetSocket socketToResolve) |
| 484 | { |
| 485 | MutexHandle h; |
| 486 | h.lock(mMutex, true); |
| 487 | |
| 488 | if ((U32)socketToResolve.getHandle() >= (U32)mSocketList.size()) |
| 489 | return -1; |
| 490 | |
| 491 | EntryType &entry = mSocketList[socketToResolve.getHandle()]; |
| 492 | return entry.used ? entry.value : -1; |
| 493 | } |
| 494 | |
| 495 | static ConnectionNotifyEvent* smConnectionNotify = NULL; |
| 496 | static ConnectionAcceptedEvent* smConnectionAccept = NULL; |
no test coverage detected