PPL Logo

conv-ccs/ccs-client.C File Reference

Go to the source code of this file.

Functions

static void parseInfo (CcsServer *svr, const void *data)
static void printSvr (CcsServer *svr)
static const char * CcsImpl_authInit (SOCKET fd, CcsServer *svr)
int CcsConnect (CcsServer *svr, const char *host, int port, const CcsSec_secretKey *key)
 Converse Client-Server Module: Client Side.
int CcsConnectWithTimeout (CcsServer *svr, const char *host, int port, const CcsSec_secretKey *key, int timeout)
int CcsConnectIp (CcsServer *svr, skt_ip_t ip, int port, const CcsSec_secretKey *key)
int CcsConnectIpWithTimeout (CcsServer *svr, skt_ip_t ip, int port, const CcsSec_secretKey *key, int timeout)
int CcsNumNodes (CcsServer *svr)
int CcsNumPes (CcsServer *svr)
int CcsNodeFirst (CcsServer *svr, int node)
int CcsNodeSize (CcsServer *svr, int node)
int CcsSendRequestGeneric (CcsServer *svr, const char *hdlrID, int pe, int *pes, int size, const void *msg, int timeout)
int CcsSendRequest (CcsServer *svr, const char *hdlrID, int pe, int size, const void *msg)
int CcsSendRequestWithTimeout (CcsServer *svr, const char *hdlrID, int pe, int size, const void *msg, int timeout)
int CcsSendBroadcastRequest (CcsServer *svr, const char *hdlrID, int size, const void *msg)
int CcsSendBroadcastRequestWithTimeout (CcsServer *svr, const char *hdlrID, int size, const void *msg, int timeout)
int CcsSendMulticastRequest (CcsServer *svr, const char *hdlrID, int npes, int *pes, int size, const void *msg)
int CcsSendMulticastRequestWithTimeout (CcsServer *svr, const char *hdlrID, int npes, int *pes, int size, const void *msg, int timeout)
int CcsImpl_recvReplyAuth (CcsServer *svr)
int CcsNoResponse (CcsServer *svr)
int CcsRecvResponseMsg (CcsServer *svr, int *size, void **newBuf, int timeout)
int CcsRecvResponse (CcsServer *svr, int maxsize, void *recvBuffer, int timeout)
int CcsProbe (CcsServer *svr)
int CcsProbeTimeout (CcsServer *svr, int timeoutMs)
void CcsFinalize (CcsServer *svr)


Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

int CcsConnectIpWithTimeout ( CcsServer svr,
skt_ip_t  ip,
int  port,
const CcsSec_secretKey key,
int  timeout 
)

int CcsNumNodes ( CcsServer svr  ) 

Definition at line 194 of file ccs-client.C.

References CcsServer::numNodes.

int CcsNumPes ( CcsServer svr  ) 

Definition at line 199 of file ccs-client.C.

References CcsServer::numPes.

Referenced by main().

Here is the caller graph for this function:

int CcsNodeFirst ( CcsServer svr,
int  node 
)

Definition at line 204 of file ccs-client.C.

References CcsServer::numProcs.

int CcsNodeSize ( CcsServer svr,
int  node 
)

Definition at line 213 of file ccs-client.C.

References CcsServer::numProcs.

int CcsSendRequestGeneric ( CcsServer svr,
const char *  hdlrID,
int  pe,
int pes,
int  size,
const void *  msg,
int  timeout 
)

int CcsSendRequest ( CcsServer svr,
const char *  hdlrID,
int  pe,
int  size,
const void *  msg 
)

Definition at line 272 of file ccs-client.C.

References CcsSendRequestGeneric().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

int CcsSendBroadcastRequest ( CcsServer svr,
const char *  hdlrID,
int  size,
const void *  msg 
)

Definition at line 280 of file ccs-client.C.

References CcsSendRequestGeneric().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

int CcsImpl_recvReplyAuth ( CcsServer svr  ) 

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().

Here is the call graph for this function:

Here is the caller graph for this function:

int CcsNoResponse ( CcsServer svr  ) 

Definition at line 323 of file ccs-client.C.

References CcsServer::replyFd, and skt_close().

Here is the call graph for this function:

int CcsRecvResponseMsg ( CcsServer svr,
int size,
void **  newBuf,
int  timeout 
)

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().

Here is the call graph for this function:

Here is the caller graph for this function:

int CcsRecvResponse ( CcsServer svr,
int  maxsize,
void *  recvBuffer,
int  timeout 
)

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().

Here is the call graph for this function:

int CcsProbe ( CcsServer svr  ) 

Definition at line 370 of file ccs-client.C.

References CcsServer::replyFd, and skt_select1().

Here is the call graph for this function:

int CcsProbeTimeout ( CcsServer svr,
int  timeoutMs 
)

Definition at line 374 of file ccs-client.C.

References CcsServer::replyFd, and skt_select1().

Here is the call graph for this function:

void CcsFinalize ( CcsServer svr  ) 

Definition at line 379 of file ccs-client.C.

References CcsServer::replyFd, and skt_close().

Here is the call graph for this function:


Generated on Mon Sep 21 07:59:50 2020 for Charm++ by  doxygen 1.5.5