• Main Page
  • Related Pages
  • Classes
  • Files
  • File List

src/Protocol.hh

00001 /*
00002  * Copyright Staffan Gimåker 2006-2009.
00003  *
00004  * ---
00005  *
00006  * Distributed under the Boost Software License, Version 1.0.
00007  * (See accompanying file LICENSE_1_0.txt or copy at
00008  * http://www.boost.org/LICENSE_1_0.txt)
00009  */
00010 
00011 #ifndef PEEKABOT_PROTOCOL_HH_INCLUDED
00012 #define PEEKABOT_PROTOCOL_HH_INCLUDED
00013 
00014 
00015 #include "Types.hh"
00016 
00017 
00018 namespace peekabot
00019 {
00020     namespace protocol
00021     {
00022         extern const uint32_t PROTOCOL_VERSION;
00023 
00024         extern const uint32_t UNIQUE_ID;
00025 
00026         extern const unsigned int AUTHENTICATION_TIMEOUT;
00027 
00028         enum AuthenticationResult
00029         {
00030             AUTH_SUCCEEDED = 0,
00031             AUTH_NO_MORE_CONNECTIONS = 1,
00032             AUTH_INCOMPAT_PEEKABOT_VERSION = 2,
00033             AUTH_INCOMPAT_PROTOCOL_VERSION = 3,
00034             AUTH_CLIENT_RECEIVED_UNEXPECTED_DATA = 4,
00035             AUTH_SERVER_RECEIVED_UNEXPECTED_DATA = 5,
00036             //
00037             AUTH_UNEXPECTED_DATA_RECEIVED = 6,
00038             AUTH_AUTHENTICATION_TIMED_OUT = 7,
00039             AUTH_CONNECTION_CLOSED_BY_PEER = 8
00040         };
00041 
00042 
00043         /*enum AuthenticationStatus
00044         {
00045             AUTHENTICATION_SUCCESSFUL = 0,
00046             AUTHENTICATION_FAILED = 1,
00047             NO_MORE_CONNECTIONS = 2,
00048             UNSUPPORTED_VERSION = 3,
00049             UNSUPPORTED_PROTOCOL = 4
00050         };*/
00051     }
00052 }
00053 
00054 
00055 #endif // PEEKABOT_PROTOCOL_HH_INCLUDED

Generated on Sun Jan 30 2011 for peekabot by  doxygen 1.7.1