Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

NetCommon.h File Reference

#include "port/Glw.h"

Include dependency graph for NetCommon.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define NET_WRITE_BUFFER_SIZE   4096
#define FT_NORMAL   0
#define FT_DEFLATED   1
#define FL_REPLY   (1L<<7)
#define FL_CLI   (32)
#define REQ_NONE   (0)
#define REQ_SECHO   ((u8)1)
#define REQ_SLOADFILE   ((u8)2)
#define REQ_SWINEVENT   ((u8)3)
#define REQ_SAPP   ((u8)4)
#define REQ_SLOADFILES   ((u8)5)
#define REQ_CECHO   (u8)(1+FL_CLI)
#define REQ_CCALLGAD   (u8)(2+FL_CLI)
#define REQ_CCLOSEWIN   (u8)(3+FL_CLI)
#define REQ_COPENWIN   (u8)(4+FL_CLI)
#define REQ_CCLOSEAPP   (u8)(5+FL_CLI)
#define REQ_CWINSLEEP   (u8)(6+FL_CLI)
#define REQ_CWINAWAKE   (u8)(7+FL_CLI)
#define REQ_CNEWSKIN   (u8)(8+FL_CLI)

Functions

int net_GetPort (void)
u32 net_GetUserData (u32 conn)
int net_GetWaitfor (u32 conn)
int net_StrMsgLen (char *str)
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)
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)


Define Documentation

#define FL_CLI   (32)
 

Definition at line 38 of file NetCommon.h.

#define FL_REPLY   (1L<<7)
 

Definition at line 37 of file NetCommon.h.

Referenced by client_CliProcessMessage, client_CliSRq_CallGadgetTL, client_CliSRq_OpenWindowTL, client_LoadFiles, net_FilelistLoadTL, net_LoadFileTL, and net_SerProcessMessage.

#define FT_DEFLATED   1
 

Definition at line 34 of file NetCommon.h.

Referenced by client_LoadAFile, net_FilelistGetNextTL, and net_LoadFileTL.

#define FT_NORMAL   0
 

Definition at line 33 of file NetCommon.h.

Referenced by client_CliProcessMessage, and client_LoadAFile.

#define NET_WRITE_BUFFER_SIZE   4096
 

Definition at line 31 of file NetCommon.h.

Referenced by glw_Client, glw_SendMsg, and glw_Thread.

#define REQ_CCALLGAD   (u8)(2+FL_CLI)
 

Definition at line 51 of file NetCommon.h.

Referenced by client_CliARq_CallGadgetTL, client_CliProcessMessage, client_CliSRq_CallGadgetTL, and net_SerProcessMessage.

#define REQ_CCLOSEAPP   (u8)(5+FL_CLI)
 

Definition at line 54 of file NetCommon.h.

Referenced by client_SendCloseApp, and net_SerProcessMessage.

#define REQ_CCLOSEWIN   (u8)(3+FL_CLI)
 

Definition at line 52 of file NetCommon.h.

Referenced by client_CliARq_CloseWindow, and net_SerProcessMessage.

#define REQ_CECHO   (u8)(1+FL_CLI)
 

Definition at line 50 of file NetCommon.h.

Referenced by client_CliProcessMessage, and net_SerProcessMessage.

#define REQ_CNEWSKIN   (u8)(8+FL_CLI)
 

Definition at line 57 of file NetCommon.h.

Referenced by client_ChangeSkin, and net_SerProcessMessage.

#define REQ_COPENWIN   (u8)(4+FL_CLI)
 

Definition at line 53 of file NetCommon.h.

Referenced by client_CliProcessMessage, client_CliSRq_OpenWindowTL, and net_SerProcessMessage.

#define REQ_CWINAWAKE   (u8)(7+FL_CLI)
 

Definition at line 56 of file NetCommon.h.

Referenced by client_WinAwake, and net_SerProcessMessage.

#define REQ_CWINSLEEP   (u8)(6+FL_CLI)
 

Definition at line 55 of file NetCommon.h.

Referenced by client_WinSleep, and net_SerProcessMessage.

#define REQ_NONE   (0)
 

Definition at line 40 of file NetCommon.h.

Referenced by client_CliProcessMessage, net_LoadFileTL, net_MsgFromWaitList, and net_SerProcessMessage.

#define REQ_SAPP   ((u8)4)
 

Definition at line 46 of file NetCommon.h.

Referenced by client_CliProcessMessage, client_Init, net_SerProcessMessage, and net_SerSendApp.

#define REQ_SECHO   ((u8)1)
 

Definition at line 43 of file NetCommon.h.

Referenced by client_CliProcessMessage, and net_SerProcessMessage.

#define REQ_SLOADFILE   ((u8)2)
 

Definition at line 44 of file NetCommon.h.

Referenced by client_CliProcessMessage, net_LoadFileTL, and net_SerProcessMessage.

#define REQ_SLOADFILES   ((u8)5)
 

Definition at line 47 of file NetCommon.h.

Referenced by client_CliProcessMessage, client_LoadFiles, net_FilelistLoadTL, and net_SerProcessMessage.

#define REQ_SWINEVENT   ((u8)3)
 

Definition at line 45 of file NetCommon.h.

Referenced by client_CliProcessMessage, net_SerProcessMessage, and net_ServerWindowEventHandler.


Function Documentation

void net_ClearMsgList u32    conn
 

Definition at line 352 of file NetCommon.c.

Referenced by client_ClientCleanup, and net_Server.

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.

Referenced by client_CliProcessMessage, client_CliSRq_CallGadgetTL, and client_CliSRq_OpenWindowTL.

int net_GetWaitfor u32    conn
 

Definition at line 387 of file NetCommon.c.

Referenced by client_CliProcessMessage, and net_LoadFileTL.

void net_MarshalFreeTaglist tag   taglist
 

Definition at line 276 of file NetCommon.c.

Referenced by net_SerProcessMessage.

u8* net_MarshalGetBinary u8 **    msg,
int *    len
 

Definition at line 216 of file NetCommon.c.

Referenced by net_FilelistGetNextTL, and net_SerProcessMessage.

int net_MarshalGetBinaryLen u8 **    msg
 

Definition at line 237 of file NetCommon.c.

u32 net_MarshalGetLong u8 **    msg
 

Definition at line 180 of file NetCommon.c.

Referenced by client_CliProcessMessage, client_LoadFiles, net_FilelistGetNextTL, net_MarshalGetTaglist, net_SerCreateCheckList, and net_SerProcessMessage.

char* net_MarshalGetString u8 **    msg
 

Definition at line 195 of file NetCommon.c.

Referenced by client_CliProcessMessage, client_LoadFiles, net_MarshalGetTaglist, net_SerCreateCheckList, and net_SerProcessMessage.

tag* net_MarshalGetTaglist u8 **    msg
 

Definition at line 248 of file NetCommon.c.

Referenced by net_SerProcessMessage.

u8* net_MarshalPutBinary u8   msg,
u8   value,
int    len
 

Definition at line 138 of file NetCommon.c.

Referenced by client_CliProcessMessage, and client_LoadFiles.

u8* net_MarshalPutLong u8   msg,
u32    value
 

Definition at line 108 of file NetCommon.c.

Referenced by client_ChangeSkin, client_CliARq_CallGadgetTL, client_CliARq_CloseWindow, client_CliProcessMessage, client_CliSRq_OpenWindowTL, client_LoadFiles, client_WinAwake, client_WinSleep, net_FilelistLoadTL, net_MarshalPutTaglist, net_SerProcessMessage, and net_ServerWindowEventHandler.

u8* net_MarshalPutString u8   msg,
char *    value
 

Definition at line 120 of file NetCommon.c.

Referenced by client_ChangeSkin, client_CliSRq_OpenWindowTL, net_FilelistLoadTL, net_LoadFileTL, and net_MarshalPutTaglist.

u8* net_MarshalPutTaglist u8   msg,
tag   taglist
 

Definition at line 154 of file NetCommon.c.

Referenced by client_CliARq_CallGadgetTL, and client_CliSRq_OpenWindowTL.

struct glw_SockMsg* net_MsgFromWaitList u32    conn
 

Definition at line 332 of file NetCommon.c.

Referenced by client_CliProcessMessage, and net_SerProcessMessage.

int net_MsgToWaitList u32    conn,
struct glw_SockMsg   msg
 

Definition at line 308 of file NetCommon.c.

Referenced by client_CliProcessMessage, and net_SerProcessMessage.

int net_SetState u32    conn,
int    waitfor,
u32    userdata
 

Definition at line 291 of file NetCommon.c.

Referenced by client_CliSRq_CallGadgetTL, client_Init, net_FilelistLoadTL, and net_LoadFileTL.

int net_StrMsgLen char *    str
 

Definition at line 394 of file NetCommon.c.

Referenced by client_ChangeSkin, client_CliSRq_OpenWindowTL, client_TaglistMsgLen, net_FilelistLoadTL, and net_LoadFileTL.


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