PPL Logo

conv-ccs/ccs-server.h File Reference

Go to the source code of this file.

Data Structures

struct  CcsSecAttr
struct  CcsImplHeader

Functions

void CcsImpl_netRequest (CcsImplHeader *hdr, const void *reqData)
 This is the entrance point of a CCS request into the server.
void CcsImpl_reply (CcsImplHeader *hdr, int repLen, const void *repData)
 Send a Ccs reply back to the requestor, down the given socket.
void CcsImpl_kill (void)
char * CcsImpl_ccs2converse (const CcsImplHeader *hdr, const void *data, int *ret_len)
void CcsServer_new (skt_ip_t *ret_ip, int *use_port, const char *securityFile)
SOCKET CcsServer_fd (void)
int CcsServer_recvRequest (CcsImplHeader *hdr, void **reqData)
void CcsServer_sendReply (CcsImplHeader *hdr, int repBytes, const void *repData)
void CcsServer_noReply (CcsImplHeader *hdr)


Function Documentation

void CcsImpl_netRequest ( CcsImplHeader hdr,
const void *  reqData 
)

This is the entrance point of a CCS request into the server.

It is executed only on proc 0, and it forwards the request to the appropriate PE.

Definition at line 451 of file conv-ccs.c.

References CcsImpl_ccs2converse(), CcsSendReply(), ChMessageInt(), CmiPrintf(), Converse::CmiSyncSendAndFree(), msg, and CcsImplHeader::pe.

Referenced by CcsServerCheck().

void CcsImpl_reply ( CcsImplHeader rep,
int  repLen,
const void *  repData 
)

Send a Ccs reply back to the requestor, down the given socket.

Since there is no conv-host, node 0 does all the CCS communication-- this means all requests come to node 0 and are forwarded out; all replies are forwarded back to node 0.

Note: on Net- versions, CcsImpl_reply is implemented in machine.c

Definition at line 418 of file conv-ccs.c.

References CcsServer_sendReply(), ChMessageInt_new(), CmiAlloc(), CmiMyPe(), Converse::CmiSyncSendAndFree(), CcsImplHeader::len, and msg.

Referenced by CcsReply(), KillOnAllSigs(), and rep_fw_handler().

void CcsImpl_kill ( void   ) 

char* CcsImpl_ccs2converse ( const CcsImplHeader hdr,
const void *  data,
int ret_len 
)

void CcsServer_new ( skt_ip_t ret_ip,
int use_port,
const char *  securityFile 
)

Definition at line 344 of file ccs-server.c.

References CCS_AUTH_new(), CcsSecMan_default(), printf(), skt_init(), skt_my_ip(), skt_print_ip(), and skt_server().

Referenced by arg_init(), and CcsInit().

SOCKET CcsServer_fd ( void   ) 

Definition at line 365 of file ccs-server.c.

Referenced by arg_init(), and CcsServerCheck().

int CcsServer_recvRequest ( CcsImplHeader hdr,
void **  reqData 
)

void CcsServer_sendReply ( CcsImplHeader hdr,
int  repBytes,
const void *  repData 
)

void CcsServer_noReply ( CcsImplHeader hdr  ) 


Generated on Wed May 23 08:06:40 2012 for Charm++ by  doxygen 1.5.5