source: network-game/common/message.h@ 2318fff

Last change on this file since 2318fff was 2318fff, checked in by dportnoy <dmp1488@…>, 12 years ago

Added MSG_TYPE_REGISTER

  • Property mode set to 100644
File size: 390 bytes
RevLine 
[7d7df47]1#ifndef _MESAGE_H
[2488852]2#define _MESSAGE_H
[7d7df47]3
[2318fff]4#define MSG_TYPE_REGISTER 1
5#define MSG_TYPE_LOGIN 2
6#define MSG_TYPE_LOGOUT 3
7#define MSG_TYPE_CHAT 4
[7d7df47]8
9typedef struct
10{
[0dde5da]11 short type;
12 char buffer[256];
[7d7df47]13} NETWORK_MSG;
14
[a845faf]15int sendMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest);
16
17int receiveMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest);
18
[e084950]19#endif
Note: See TracBrowser for help on using the repository browser.