source: network-game/common/message.h@ 41ad8ed

Last change on this file since 41ad8ed was 8e540f4, checked in by dportnoy <dmp1488@…>, 12 years ago

Created a separate function for processing error messages, began capitalizing class names and class-related file names, and fixed the include guard in message,h

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