Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

NetCommon.c File Reference

#include <stdlib.h>
#include <string.h>
#include "debug.h"
#include "Memory.h"
#include "xml_Gui.h"
#include "NetCommon.h"

Include dependency graph for NetCommon.c:

Include dependency graph

Go to the source code of this file.

Functions

int net_GetPort (void)
u8net_MarshalPutLong (u8 *msg, u32 value)
u8net_MarshalPutString (u8 *msg, char *value)
u8net_MarshalPutBinary (u8 *msg, u8 *value, int len)
u8net_MarshalPutTaglist (u8 *msg, tag *taglist)
u32 net_MarshalGetLong (u8 **msg)
char * net_MarshalGetString (u8 **msg)
u8net_MarshalGetBinary (u8 **msg, int *len)
int net_MarshalGetBinaryLen (u8 **msg)
tagnet_MarshalGetTaglist (u8 **msg)
void net_MarshalFreeTaglist (tag *taglist)
int net_SetState (u32 conn, int waitfor, u32 userdata)
int net_MsgToWaitList (u32 conn, struct glw_SockMsg *msg)
glw_SockMsgnet_MsgFromWaitList (u32 conn)
void net_ClearMsgList (u32 conn)
u32 net_GetUserData (u32 conn)
int net_GetWaitfor (u32 conn)
int net_StrMsgLen (char *str)


Function Documentation

void net_ClearMsgList u32    conn
 

Definition at line 352 of file NetCommon.c.

References glw_SockMsg::body, debug_Begin, debug_End, list_DeleteList, list_DeleteNode, list_GetNodeData, list_RemoveNodeHead, mem_free, NULL, and glw_ConnUser::waitlist.

int net_GetPort void   
 

Definition at line 102 of file NetCommon.c.

u32 net_GetUserData u32    conn
 

Definition at line 380 of file NetCommon.c.

References glw_ConnUser::userdata.

int net_GetWaitfor u32    conn
 

Definition at line 387 of file NetCommon.c.

References glw_ConnUser::waitfor.

void net_MarshalFreeTaglist tag   taglist
 

Definition at line 276 of file NetCommon.c.

References tag::Data, mem_free, tag::Name, NULL, TAG_DONE, tag_GetNextTag, and TAGT_STRING.

u8* net_MarshalGetBinary u8 **    msg,
int *    len
 

Definition at line 216 of file NetCommon.c.

References debug_Begin, debug_End, glw_ntohl, mem_malloc, NULL, u32, and u8.

int net_MarshalGetBinaryLen u8 **    msg
 

Definition at line 237 of file NetCommon.c.

References glw_ntohl, u32, and u8.

u32 net_MarshalGetLong u8 **    msg
 

Definition at line 180 of file NetCommon.c.

References debug_Begin, debug_End, glw_ntohl, u32, and u8.

char* net_MarshalGetString u8 **    msg
 

Definition at line 195 of file NetCommon.c.

References debug_Begin, debug_End, glw_ntohl, mem_malloc, NULL, u32, and u8.

tag* net_MarshalGetTaglist u8 **    msg
 

Definition at line 248 of file NetCommon.c.

References tag::Data, debug_Begin, debug_End, mem_malloc, tag::Name, net_MarshalGetLong, net_MarshalGetString, NULL, TAG_DONE, TAGT_STRING, and u8.

u8* net_MarshalPutBinary u8   msg,
u8   value,
int    len
 

Definition at line 138 of file NetCommon.c.

References debug_Begin, debug_End, glw_htonl, u32, and u8.

u8* net_MarshalPutLong u8   msg,
u32    value
 

Definition at line 108 of file NetCommon.c.

References debug_Begin, debug_End, glw_htonl, u32, and u8.

u8* net_MarshalPutString u8   msg,
char *    value
 

Definition at line 120 of file NetCommon.c.

References debug_Begin, debug_End, glw_htonl, u32, and u8.

u8* net_MarshalPutTaglist u8   msg,
tag   taglist
 

Definition at line 154 of file NetCommon.c.

References tag::Data, debug_Begin, debug_End, tag::Name, net_MarshalPutLong, net_MarshalPutString, TAG_DONE, tag_GetNextTag, TAGT_STRING, and u8.

struct glw_SockMsg* net_MsgFromWaitList u32    conn
 

Definition at line 332 of file NetCommon.c.

References debug_Begin, debug_End, list_DeleteNode, list_RemoveNodeHead, NULL, REQ_NONE, glw_ConnUser::waitfor, and glw_ConnUser::waitlist.

int net_MsgToWaitList u32    conn,
struct glw_SockMsg   msg
 

Definition at line 308 of file NetCommon.c.

References debug_Begin, debug_End, list_CreateNode, list_InsertNodeTail, list_SetNodeData, NULL, u32, and glw_ConnUser::waitlist.

int net_SetState u32    conn,
int    waitfor,
u32    userdata
 

Definition at line 291 of file NetCommon.c.

References debug_Begin, debug_End, u32, glw_ConnUser::userdata, and glw_ConnUser::waitfor.

int net_StrMsgLen char *    str
 

Definition at line 394 of file NetCommon.c.


Generated on Tue Jan 7 12:12:39 2003 for THEGUI by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002