Rev 1 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | pmbaty | 1 | #ifndef _PD_NET_H_ |
2 | #define _PD_NET_H_ |
||
3 | |||
4 | // Jeff: |
||
5 | // Header files are generated from information in the original symbol dump, but we don't exactly know what this used to look like or be called. |
||
6 | // Each platform build included a platform-dependant `sys` and `net` files. From the symbol dump and debug/error messages in the binaries, |
||
7 | // we know of at least `pc-dos/dossys.c`, `pc-dos/dosnet.c`, `Win95sys.c`. |
||
8 | // Functions contained within these files are prefixed with `PD` - we assume that is short for something like `Platform Dependant`. |
||
9 | |||
10 | #include "dr_types.h" |
||
11 | |||
12 | void ClearupPDNetworkStuff(void); |
||
13 | |||
14 | void MATTMessageCheck(char* pFunction_name, tNet_message* pMessage, int pAlleged_size); |
||
15 | |||
16 | int GetMessageTypeFromMessage(char* pMessage_str); |
||
17 | |||
18 | void MakeMessageToSend(int pMessage_type); |
||
19 | |||
20 | int ReceiveHostResponses(void); |
||
21 | |||
22 | int BroadcastMessage(void); |
||
23 | |||
24 | int PDNetInitialise(void); |
||
25 | |||
26 | int PDNetShutdown(void); |
||
27 | |||
28 | void PDNetStartProducingJoinList(void); |
||
29 | |||
30 | void PDNetEndJoinList(void); |
||
31 | |||
32 | int PDNetGetNextJoinGame(tNet_game_details* pGame, int pIndex); |
||
33 | |||
34 | void PDNetDisposeGameDetails(tNet_game_details* pDetails); |
||
35 | |||
36 | int PDNetHostGame(tNet_game_details* pDetails, char* pHost_name, void** pHost_address); |
||
37 | |||
38 | int PDNetJoinGame(tNet_game_details* pDetails, char* pPlayer_name); |
||
39 | |||
40 | void PDNetLeaveGame(tNet_game_details* pDetails); |
||
41 | |||
42 | void PDNetHostFinishGame(tNet_game_details* pDetails); |
||
43 | |||
44 | tU32 PDNetExtractGameID(tNet_game_details* pDetails); |
||
45 | |||
46 | tPlayer_ID PDNetExtractPlayerID(tNet_game_details* pDetails); |
||
47 | |||
48 | void PDNetObtainSystemUserName(char* pName, int pMax_length); |
||
49 | |||
50 | int PDNetSendMessageToPlayer(tNet_game_details* pDetails, tNet_message* pMessage, tPlayer_ID pPlayer); |
||
51 | |||
52 | int PDNetSendMessageToAllPlayers(tNet_game_details* pDetails, tNet_message* pMessage); |
||
53 | |||
54 | tNet_message* PDNetGetNextMessage(tNet_game_details* pDetails, void** pSender_address); |
||
55 | |||
56 | tNet_message* PDNetAllocateMessage(tU32 pSize, tS32 pSize_decider); |
||
57 | |||
58 | void PDNetDisposeMessage(tNet_game_details* pDetails, tNet_message* pMessage); |
||
59 | |||
60 | void PDNetSetPlayerSystemInfo(tNet_game_player_info* pPlayer, void* pSender_address); |
||
61 | |||
62 | void PDNetDisposePlayer(tNet_game_player_info* pPlayer); |
||
63 | |||
64 | int PDNetSendMessageToAddress(tNet_game_details* pDetails, tNet_message* pMessage, void* pAddress); |
||
65 | |||
66 | int PDNetInitClient(tNet_game_details* pDetails); |
||
67 | |||
68 | int PDNetGetHeaderSize(void); |
||
69 | |||
70 | #endif |