MASA-Core
Defines
Peer.cpp File Reference
#include "Peer.hpp"
#include "command/Command.hpp"
#include "MasaNet.hpp"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <signal.h>
#include <unistd.h>
#include <errno.h>

Go to the source code of this file.

Defines

#define MAGIC_STRING   "MASA_NET"
#define MAGIC_ANSWER   "MASA_ACK"
#define MASA_NET_VERSION_MAJOR   0
#define MASA_NET_VERSION_MINOR   1
#define FLAG_NONE   0x00000000
#define SEND_ERROR_MSG   ("send: socket error")
#define RECV_ERROR_MSG   ("recv: socket error")

Define Documentation

#define FLAG_NONE   0x00000000

Definition at line 45 of file Peer.cpp.

#define MAGIC_ANSWER   "MASA_ACK"

Definition at line 40 of file Peer.cpp.

#define MAGIC_STRING   "MASA_NET"

Definition at line 39 of file Peer.cpp.

#define MASA_NET_VERSION_MAJOR   0

Definition at line 42 of file Peer.cpp.

#define MASA_NET_VERSION_MINOR   1

Definition at line 43 of file Peer.cpp.

#define RECV_ERROR_MSG   ("recv: socket error")

Definition at line 48 of file Peer.cpp.

#define SEND_ERROR_MSG   ("send: socket error")

Definition at line 47 of file Peer.cpp.