Go to the source code of this file.
static void parseInfo | ( | CcsServer * | svr, | |
const void * | data | |||
) | [static] |
Definition at line 54 of file ccs-client.C.
References ChMessageInt(), PUP::d, index, malloc(), CcsServer::numNodes, CcsServer::numPes, and CcsServer::numProcs.
Referenced by CcsConnectIpWithTimeout().
static void printSvr | ( | CcsServer * | svr | ) | [static] |
Definition at line 67 of file ccs-client.C.
References CcsServer::hostIP, CcsServer::hostPort, CcsServer::isAuth, CcsServer::numNodes, CcsServer::numPes, CcsServer::numProcs, CcsServer::replyFd, and skt_print_ip().
Referenced by CcsConnectIpWithTimeout().
static const char* CcsImpl_authInit | ( | SOCKET | fd, | |
CcsServer * | svr | |||
) | [static] |
Definition at line 84 of file ccs-client.C.
References CCS_AUTH_differ(), CCS_AUTH_hash(), CCS_RAND_next(), ChMessageInt(), ChMessageInt_new(), CcsServer::clientID, CcsServer::clientSalt, CcsServer::key, CcsServer::level, CcsServer::rand, request, skt_recvN(), skt_sendN(), and type.
Referenced by CcsConnectIpWithTimeout().
int CcsConnect | ( | CcsServer * | svr, | |
const char * | host, | |||
int | port, | |||
const CcsSec_secretKey * | key | |||
) |
Converse Client-Server Module: Client Side.
Definition at line 128 of file ccs-client.C.
References CcsConnectWithTimeout().
Referenced by main().
int CcsConnectWithTimeout | ( | CcsServer * | svr, | |
const char * | host, | |||
int | port, | |||
const CcsSec_secretKey * | key, | |||
int | timeout | |||
) |
Definition at line 132 of file ccs-client.C.
References CcsConnectIpWithTimeout(), skt_init(), and skt_lookup_ip().
Referenced by CcsConnect().
int CcsConnectIp | ( | CcsServer * | svr, | |
skt_ip_t | ip, | |||
int | port, | |||
const CcsSec_secretKey * | key | |||
) |
Definition at line 139 of file ccs-client.C.
References CcsConnectIpWithTimeout().
int CcsConnectIpWithTimeout | ( | CcsServer * | svr, | |
skt_ip_t | ip, | |||
int | port, | |||
const CcsSec_secretKey * | key, | |||
int | timeout | |||
) |
Definition at line 143 of file ccs-client.C.
References CCS_RAND_new(), CcsImpl_authInit(), CcsRecvResponseMsg(), CcsSendRequestWithTimeout(), CcsServer::clientID, CcsServer::clientSalt, fd, free(), CcsServer::hostIP, CcsServer::hostPort, CcsServer::isAuth, CcsServer::key, CcsServer::level, parseInfo(), printSvr(), CcsServer::rand, CcsServer::replyFd, skt_close(), skt_connect(), and skt_init().
Referenced by CcsConnectIp(), and CcsConnectWithTimeout().
Definition at line 199 of file ccs-client.C.
References CcsServer::numPes.
Referenced by main().
int CcsSendRequestGeneric | ( | CcsServer * | svr, | |
const char * | hdlrID, | |||
int | pe, | |||
int * | pes, | |||
int | size, | |||
const void * | msg, | |||
int | timeout | |||
) |
Definition at line 218 of file ccs-client.C.
References CCS_AUTH_hash(), CCS_RAND_next(), ChMessageInt_new(), CcsServer::clientID, CcsServer::clientSalt, CmiWallTimer(), CcsMessageHeader::handler, CcsServer::hostIP, CcsServer::hostPort, CcsServer::isAuth, CcsServer::key, CcsMessageHeader::len, CcsServer::level, CcsMessageHeader::pe, CcsServer::rand, CcsServer::replyFd, CcsServer::replySalt, skt_close(), skt_connect(), skt_sendV(), and type.
Referenced by CcsSendBroadcastRequest(), CcsSendBroadcastRequestWithTimeout(), CcsSendMulticastRequest(), CcsSendMulticastRequestWithTimeout(), CcsSendRequest(), and CcsSendRequestWithTimeout().
Definition at line 272 of file ccs-client.C.
References CcsSendRequestGeneric().
Referenced by main().
int CcsSendRequestWithTimeout | ( | CcsServer * | svr, | |
const char * | hdlrID, | |||
int | pe, | |||
int | size, | |||
const void * | msg, | |||
int | timeout | |||
) |
Definition at line 276 of file ccs-client.C.
References CcsSendRequestGeneric().
Referenced by CcsConnectIpWithTimeout().
Definition at line 280 of file ccs-client.C.
References CcsSendRequestGeneric().
int CcsSendBroadcastRequestWithTimeout | ( | CcsServer * | svr, | |
const char * | hdlrID, | |||
int | size, | |||
const void * | msg, | |||
int | timeout | |||
) |
Definition at line 285 of file ccs-client.C.
References CcsSendRequestGeneric().
int CcsSendMulticastRequest | ( | CcsServer * | svr, | |
const char * | hdlrID, | |||
int | npes, | |||
int * | pes, | |||
int | size, | |||
const void * | msg | |||
) |
Definition at line 290 of file ccs-client.C.
References CcsSendRequestGeneric().
int CcsSendMulticastRequestWithTimeout | ( | CcsServer * | svr, | |
const char * | hdlrID, | |||
int | npes, | |||
int * | pes, | |||
int | size, | |||
const void * | msg, | |||
int | timeout | |||
) |
Definition at line 300 of file ccs-client.C.
References CcsSendRequestGeneric().
Definition at line 311 of file ccs-client.C.
References CCS_AUTH_differ(), CcsServer::isAuth, CcsServer::key, CcsServer::replyFd, CcsServer::replySalt, and skt_recvN().
Referenced by CcsRecvResponse(), and CcsRecvResponseMsg().
Definition at line 323 of file ccs-client.C.
References CcsServer::replyFd, and skt_close().
Definition at line 332 of file ccs-client.C.
References CcsImpl_recvReplyAuth(), ChMessageInt(), fd, len, malloc(), CcsServer::replyFd, skt_close(), skt_recvN(), and skt_select1().
Referenced by CcsConnectIpWithTimeout(), and main().
Definition at line 351 of file ccs-client.C.
References CcsImpl_recvReplyAuth(), ChMessageInt(), CmiWallTimer(), fd, len, CcsServer::replyFd, skt_close(), skt_recvN(), and skt_select1().
Definition at line 370 of file ccs-client.C.
References CcsServer::replyFd, and skt_select1().
Definition at line 374 of file ccs-client.C.
References CcsServer::replyFd, and skt_select1().
void CcsFinalize | ( | CcsServer * | svr | ) |
Definition at line 379 of file ccs-client.C.
References CcsServer::replyFd, and skt_close().