| 1332 | } |
| 1333 | |
| 1334 | CNetHandler* CSockLink::FindSession(uint64_t sid) |
| 1335 | { |
| 1336 | CNetHandler key; |
| 1337 | CDestLinks* dstlink = (CDestLinks*)_parents; |
| 1338 | if (NULL == dstlink) |
| 1339 | { |
| 1340 | MTLOG_ERROR("session dest link invalid, maybe error"); |
| 1341 | return NULL; |
| 1342 | } |
| 1343 | struct sockaddr_in addr; |
| 1344 | key.SetDestAddress(this->GetDestAddr(&addr)); |
| 1345 | key.SetConnType(dstlink->GetConnType()); |
| 1346 | key.SetProtoType(dstlink->GetProtoType()); |
| 1347 | key.SetSessionId(sid); |
| 1348 | |
| 1349 | return CNetMgr::Instance()->FindNetItem(&key); |
| 1350 | } |
| 1351 | |
| 1352 | int CSockLink::InputNotify() |
| 1353 | { |
no test coverage detected