source:
network-game/common/message.h@
2488852
Last change on this file since 2488852 was 2488852, checked in by , 12 years ago | |
---|---|
|
|
File size: 294 bytes |
Rev | Line | |
---|---|---|
[7d7df47] | 1 | #ifndef _MESAGE_H |
[2488852] | 2 | #define _MESSAGE_H |
[7d7df47] | 3 | |
4 | #define MSG_TYPE_SOMETHING 1000 | |
5 | ||
6 | typedef struct | |
7 | { | |
[0dde5da] | 8 | short type; |
9 | char buffer[256]; | |
[7d7df47] | 10 | } NETWORK_MSG; |
11 | ||
[a845faf] | 12 | int sendMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest); |
13 | ||
14 | int receiveMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest); | |
15 | ||
[e084950] | 16 | #endif |
Note:
See TracBrowser
for help on using the repository browser.