source: network-game/common/message.h@ 94ebbd9

Last change on this file since 94ebbd9 was 0dde5da, checked in by dportnoy <dmp1488@…>, 12 years ago

Added a makefile for the client and made the WSA functions only work on Windows platforms

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