File: ArClientCommands.h

package info (click to toggle)
libaria 2.8.0%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 13,628 kB
  • ctags: 16,574
  • sloc: cpp: 135,490; makefile: 925; python: 597; java: 570; ansic: 182
file content (24 lines) | stat: -rw-r--r-- 815 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef NLCLIENTCOMMANDS_H
#define NLCLIENTCOMMANDS_H

/**
   The commands from the client to the server
**/

class ArClientCommands
{
public:
  enum ClientCommands {
    SHUTDOWN = 1, ///< Closes the connection
    INTRODUCTION = 2, ///< Introduces the client to the server
    UDP_INTRODUCTION = 3, ///< Udp introduction of the client to the server
    UDP_CONFIRMATION = 4, ///< Confirmation Udp was received from server
    TCP_ONLY = 5, ///< Client tells server to only send TCP
    LIST = 128, ///< Lists the types that can be handled
    REQUEST = 129, ///< Requests packet of a certain type
    REQUESTSTOP = 130 ///< Requests that the server stop sending the given type
    /// You can request any other command once if you know its number just by sending that number
  };
};

#endif // NLCLIENTCOMMANDS_H