Lines Matching defs:conn

72 typedef int (*CRNetReceiveFunc)( CRConnection *conn, CRMessage *msg, unsigned int len );
73 typedef int (*CRNetConnectFunc)( CRConnection *conn );
89 CRConnection *conn; /* some messages are assoc. with specific connections*/
150 /* To allocate a data buffer of size conn->buffer_size bytes */
151 void *(*Alloc)( CRConnection *conn );
153 void (*Free)( CRConnection *conn, void *buf );
157 void (*Send)( CRConnection *conn, void **buf, const void *start, unsigned int len );
159 void (*Barf)( CRConnection *conn, void **buf, const void *start, unsigned int len );
161 void (*SendExact)( CRConnection *conn, const void *start, unsigned int len );
163 void (*Recv)( CRConnection *conn, void *buf, unsigned int len );
165 void (*RecvMsg)( CRConnection *conn );
167 void (*InstantReclaim)( CRConnection *conn, CRMessage *mess );
169 void (*HandleNewMessage)( CRConnection *conn, CRMessage *mess, unsigned int len );
171 void (*Accept)( CRConnection *conn, const char *hostname, unsigned short port );
173 int (*Connect)( CRConnection *conn );
175 void (*Disconnect)( CRConnection *conn );
270 extern DECLEXPORT(void) *crNetAlloc( CRConnection *conn );
271 extern DECLEXPORT(void) crNetFree( CRConnection *conn, void *buf );
273 extern DECLEXPORT(void) crNetAccept( CRConnection *conn, const char *hostname, unsigned short port );
274 extern DECLEXPORT(int) crNetConnect( CRConnection *conn );
275 extern DECLEXPORT(void) crNetDisconnect( CRConnection *conn );
276 extern DECLEXPORT(void) crNetFreeConnection( CRConnection *conn );
279 extern DECLEXPORT(void) crNetSend( CRConnection *conn, void **bufp, const void *start, unsigned int len );
280 extern DECLEXPORT(void) crNetBarf( CRConnection *conn, void **bufp, const void *start, unsigned int len );
281 extern DECLEXPORT(void) crNetSendExact( CRConnection *conn, const void *start, unsigned int len );
282 extern DECLEXPORT(void) crNetSingleRecv( CRConnection *conn, void *buf, unsigned int len );
283 extern DECLEXPORT(unsigned int) crNetGetMessage( CRConnection *conn, CRMessage **message );
284 extern DECLEXPORT(unsigned int) crNetPeekMessage( CRConnection *conn, CRMessage **message );
285 extern DECLEXPORT(int) crNetNumMessages(CRConnection *conn);
286 extern DECLEXPORT(void) crNetReadline( CRConnection *conn, void *buf );
289 CRConnection *conn
311 extern DECLEXPORT(void) crNetDefaultRecv( CRConnection *conn, CRMessage *msg, unsigned int len );
312 extern DECLEXPORT(void) crNetDispatchMessage( CRNetReceiveFuncList *rfl, CRConnection *conn, CRMessage *msg, unsigned int len );
323 extern DECLEXPORT(void) crEnqueueMessage(CRMessageList *list, CRMessage *msg, unsigned int len, CRConnection *conn);
324 extern DECLEXPORT(void) crDequeueMessage(CRMessageList *list, CRMessage **msg, unsigned int *len, CRConnection **conn);