Public 멤버 함수 |
| CTcpSessionList () |
| ~CTcpSessionList () |
bool | Init (int iThreadIndex, int iPollFdMax) |
| TCP 세션 정보를 초기화시킨다.
|
bool | Insert (Socket hSocket) |
| TCP 소켓을 추가한다.
|
int | Insert (CTcpComm &clsTcpComm) |
| TCP 세션 정보를 추가한다.
|
bool | Delete (int iIndex) |
| TCP 세션 정보를 삭제한다.
|
void | DeleteAll () |
| 모든 TCP 세션 정보를 삭제한다.
|
void | DeleteTimeout (int iTimeout, int iNoPacketTimeout, void(*BeforeDelete)(CTcpSessionList *pclsSessionList, int iIndex, void *pclsArg), void *pclsArg) |
| TCP 수신 timeout 이 발생한 TCP 세션을 종료시킨다.
|
bool | Send (int iIndex, const char *pszPacket, int iPacketLen) |
| 특정 세션에 패킷을 전송한다.
|
bool | SendAll (const char *pszPacket, int iPacketLen, ITcpStackCallBack *pclsCallBack) |
| 모든 세션에 패킷을 전송한다.
|
bool | SendAllExcept (const char *pszPacket, int iPacketLen, ITcpStackCallBack *pclsCallBack, int iThreadIndex, int iSessionIndex) |
| 모든 세션에 패킷을 전송한다.
|
TCP 쓰레드 별로 관리하는 TCP 세션 정보를 저장하는 클래스 - m_bUseThreadPipe 가 true 일 때에 사용된다.