LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Namespaces | Enumerations
LogCabin::Protocol::Common Namespace Reference

Namespaces

namespace  VersionMessage
 

Defines request and response types for messages sent using ID VERSION_MESSAGE_ID, used to check which versions of the MessageSocket framing protocol the server supports.


namespace  ServiceId

Enumerations

enum  { DEFAULT_PORT }
 The default TCP port on which LogCabin servers serve RPCs. More...
enum  {
  PING_MESSAGE_ID,
  VERSION_MESSAGE_ID
}
 Reserved MessageSocket::MessageID values. More...
enum  { MAX_MESSAGE_LENGTH }
 The maximum number of bytes per RPC request or response, including these headers. More...

Enumeration Type Documentation

anonymous enum

The default TCP port on which LogCabin servers serve RPCs.

TCP port 5254 is reserved by IANA for LogCabin as of April 2015.

Enumerator:
DEFAULT_PORT 

Definition at line 34 of file Common.h.

anonymous enum

Reserved MessageSocket::MessageID values.

No application-level RPCs will ever be assigned these IDs.

Enumerator:
PING_MESSAGE_ID 

Messages that are used to check the server's liveness.

VERSION_MESSAGE_ID 

Messages used to check which versions of the MessageSocket framing protocol the server supports.

Definition at line 40 of file Common.h.

anonymous enum

The maximum number of bytes per RPC request or response, including these headers.

This is set to slightly over 1 MB because the maximum size of log entries is 1 MB.

Enumerator:
MAX_MESSAGE_LENGTH 

Definition at line 78 of file Common.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines