#include <stdlib.h>#include <string.h>#include <zlib.h>#include "Gadget.h"#include "debug.h"#include "Memory.h"#include "Net.h"#include "NetCommon.h"#include "Window.h"#include "Module.h"#include "Common.h"Include dependency graph for Net.c:

Go to the source code of this file.
Data Structures | |
| struct | net_File |
| struct | net_FileCache |
| struct | net_Files |
Defines | |
| #define | MAX_INIT_LEN 256 |
Functions | |
| u32 | net_GetServerId (void) |
| void | net_SerSendApp (u32 conn) |
| int | net_Server (u32 conn) |
| char * | net_CheckClient (u32 conn, int *byteorder) |
| int | net_ServerWindowEventHandler (gui_App_t *app, Window_t *win, u32 gadget_id, int event, u32 event_data) |
| int | net_SerCreateCheckList (tag *taglist, u8 *msg) |
| void | net_SerDeleteCheckList (tag *taglist) |
| int | net_SerProcessMessage (u32 conn, u32 userdata, struct glw_SockMsg *msg) |
| net_FileCache * | net_FindFileCache (u32 conn, char *name) |
| void | net_InsertFileCache (u32 conn, char *name, u8 *data, int size) |
| u32 | net_FilelistGetNext (u32 firsttag,...) |
| u32 | net_FilelistGetNextTL (tag *taglist) |
| u32 | net_FilelistFree (u32 firsttag,...) |
| u32 | net_FilelistFreeTL (tag *taglist) |
| u32 | net_FilelistLoad (u32 firsttag,...) |
| u32 | net_FilelistLoadTL (tag *taglist) |
| u32 | net_LoadFile (u32 firsttag,...) |
| u32 | net_LoadFileTL (tag *taglist) |
| int | net_Init (void) |
| void | net_CleanUp (void) |
| u32 | net_Call (int function, u32 firsttag,...) |
| u32 | net_CallTL (int function, tag *taglist) |
Variables | |
| u32(* | call_vector [NET_FUNC_DONE-NET_FUNCBASE+1])(tag *) |
|
|
Definition at line 147 of file Net.c. Referenced by net_CheckClient. |
|
||||||||||||||||
|
Definition at line 851 of file Net.c. References net_CallTL. Referenced by net_Init. |
|
||||||||||||
|
Definition at line 855 of file Net.c. References call_vector, debug_Begin, debug_End, debug_Message, debug_Warning, NET_FUNC_DONE, and NET_FUNCBASE. Referenced by net_Init. |
|
||||||||||||
|
Definition at line 149 of file Net.c. References ARCH, common_strdup, debug_Begin, debug_End, debug_Warning, glw_Recv, glw_Send, MAX_INIT_LEN, NULL, and u32. |
|
|
Definition at line 842 of file Net.c. References debug_Begin, and debug_End. Referenced by gui_CleanUp. |
|
||||||||||||
|
Definition at line 621 of file Net.c. References net_FilelistFreeTL. |
|
|
Definition at line 625 of file Net.c. References net_Files::data, debug_Begin, debug_End, mem_free, NULL, tag_GetTagData, and TAG_NET_CONN. Referenced by net_Init. |
|
||||||||||||
|
Definition at line 556 of file Net.c. References net_FilelistGetNextTL. |
|
|
Definition at line 560 of file Net.c. References net_File::data, debug_Begin, debug_End, debug_Error, net_Files::file_count, FT_DEFLATED, mem_free, mem_malloc, net_MarshalGetBinary, net_MarshalGetLong, net_Files::next_data, NULL, net_Files::readed, net_File::realsize, net_File::size, tag_GetTagData, TAG_NET_CONN, TAG_NET_LEN, net_File::type, and u8. Referenced by net_Init. |
|
||||||||||||
|
Definition at line 665 of file Net.c. References net_FilelistLoadTL. |
|
|
Definition at line 669 of file Net.c. References net_File::data, net_Files::data, net_Files::data_size, debug_Begin, debug_End, net_Files::file_count, FL_REPLY, glw_MainLoop, glw_SendMsg, mem_free, mem_malloc, net_GetServerId, net_MarshalPutLong, net_MarshalPutString, net_SetState, net_StrMsgLen, net_Files::next_data, NULL, net_Files::readed, REQ_SLOADFILES, net_File::size, tag_GetTagData, TAG_NET_CONN, TAG_NET_NAMES, and u8. Referenced by net_Init. |
|
||||||||||||
|
Definition at line 482 of file Net.c. References debug_Begin, debug_End, glw_ConnUser::file_cache, list_GetNodeHead, list_GetNodeNext, list_InsertNodeHead, list_RemoveNode, net_FileCache::name, and NULL. Referenced by net_LoadFileTL. |
|
|
Definition at line 74 of file Net.c. References debug_Begin, debug_End, and u32. Referenced by net_FilelistLoadTL, net_LoadFileTL, net_SerSendApp, and net_ServerWindowEventHandler. |
|
|
Definition at line 819 of file Net.c. References call_vector, debug_Begin, debug_End, net_Call, net_CallTL, NET_FILELISTFREE, net_FilelistFreeTL, NET_FILELISTGETNEXT, net_FilelistGetNextTL, NET_FILELISTLOAD, net_FilelistLoadTL, NET_FUNCBASE, NET_LOADFILE, and net_LoadFileTL. Referenced by gui_Init. |
|
||||||||||||||||||||
|
Definition at line 512 of file Net.c. References net_FileCache::data, debug_Begin, debug_End, glw_ConnUser::file_cache, list_CreateNode, list_InsertNodeHead, list_SetNodeData, mem_malloc, net_FileCache::name, NULL, net_FileCache::size, and u8. Referenced by net_LoadFileTL. |
|
||||||||||||
|
Definition at line 725 of file Net.c. References net_LoadFileTL. |
|
|
Definition at line 729 of file Net.c. References net_File::data, net_FileCache::data, debug_Begin, debug_End, debug_Error, debug_Message, FL_REPLY, FT_DEFLATED, glw_MainLoop, glw_SendMsg, mem_free, mem_malloc, net_FindFileCache, net_GetServerId, net_GetWaitfor, net_InsertFileCache, net_MarshalPutString, net_SetState, net_StrMsgLen, NULL, net_File::realsize, REQ_NONE, REQ_SLOADFILE, net_File::size, net_FileCache::size, tag_GetTagData, TAG_NET_CONN, TAG_NET_LEN, TAG_NET_NAME, net_File::type, and u8. Referenced by net_Init. |
|
||||||||||||
|
Definition at line 212 of file Net.c. References tag::Data, debug_Begin, debug_End, GADGET_ILLEGAL_ID, mem_malloc, net_MarshalGetLong, net_MarshalGetString, NULL, tag_FindTag, TAG_WIN_CHECKLIST, and u8. Referenced by net_SerProcessMessage. |
|
|
Definition at line 248 of file Net.c. References gadget_Check_t::class_name, tag::Data, debug_Begin, debug_End, gadget_Check_t::gadget_id, GADGET_ILLEGAL_ID, mem_free, NULL, tag_FindTag, and TAG_WIN_CHECKLIST. Referenced by net_SerProcessMessage. |
|
||||||||||||||||
|
|
Definition at line 88 of file Net.c. References glw_ConnUser::app, debug_Begin, debug_End, glw_htonl, glw_SendMsg, net_GetServerId, REQ_SAPP, u32, and u8. |
|
|
Definition at line 102 of file Net.c. References net_FileCache::data, debug_Begin, debug_End, glw_ConnUser::file_cache, gui_ServerMain, list_CreateList, list_DeleteList, list_DeleteNode, list_RemoveNodeHead, mem_free, net_FileCache::name, net_ClearMsgList, NULL, u32, and glw_ConnUser::waitlist. |
|
||||||||||||||||||||||||
|
Definition at line 190 of file Net.c. References debug_Begin, debug_End, glw_SendMsg, net_GetServerId, net_MarshalPutLong, REQ_SWINEVENT, u32, u8, and window_GetConnection. Referenced by net_SerProcessMessage. |
|
|
Definition at line 70 of file Net.c. Referenced by net_CallTL, and net_Init. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002