| 107 | } |
| 108 | |
| 109 | void notifyError(int recvFd) { |
| 110 | if (recvFd == m_fd) { //client |
| 111 | recvEvent(EVENT_ERROR, recvFd, 0, 0, NULL, NULL, 0); |
| 112 | return; |
| 113 | } |
| 114 | recvEvent(EVENT_ERROR, recvFd, 0, mapUid[recvFd].first, mapUid[recvFd].second.c_str(), NULL, 0); |
| 115 | close(recvFd); |
| 116 | } |
| 117 | |
| 118 | // #lizard forgives |
| 119 | int loop(const int isServer) { |
nothing calls this directly
no outgoing calls
no test coverage detected