| 584 | } |
| 585 | |
| 586 | uint32_t CNetHandler::HashValue() |
| 587 | { |
| 588 | uint32_t ip = _dest_ipv4.sin_addr.s_addr; |
| 589 | ip ^= (_dest_ipv4.sin_port << 16) | (_proto_type << 8) | (_conn_type << 8); |
| 590 | |
| 591 | uint32_t hash = (_session_id >> 32) & 0xffffffff; |
| 592 | hash ^= _session_id & 0xffffffff; |
| 593 | hash ^= ip; |
| 594 | |
| 595 | return hash; |
| 596 | } |
| 597 | |
| 598 | int32_t CNetHandler::HashCmp(HashKey* rhs) |
| 599 | { |
no outgoing calls
no test coverage detected