nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::Servers Class Referenceabstract

#include <servers.h>

Public Member Functions

virtual ~Servers ()=default
virtual absl::StatusOr< protocol::LoginReply > Ask (const protocol::LoginRequest &request)=0
 The login server's answer to the request.
virtual absl::StatusOr< std::unique_ptr< Link > > Enter (const protocol::WorldListing &world, const std::string &token)=0
 Into the world, as the character the token's for.
virtual absl::StatusOr< std::unique_ptr< Link > > Move (const protocol::Move &move)=0
 To the world's instance its last one handed us over to.

Static Public Member Functions

static absl::StatusOr< std::unique_ptr< Servers > > Create (std::string host, bool udp)

Detailed Description

The login server and the worlds it lists, over the network. In a browser, which gives us no sockets, each says why it can't be reached.

Definition at line 18 of file servers.h.

Constructor & Destructor Documentation

◆ ~Servers()

virtual nanommo::Servers::~Servers ( )
virtualdefault

Member Function Documentation

◆ Ask()

virtual absl::StatusOr< protocol::LoginReply > nanommo::Servers::Ask ( const protocol::LoginRequest & request)
pure virtual

The login server's answer to the request.

◆ Create()

absl::StatusOr< std::unique_ptr< Servers > > nanommo::Servers::Create ( std::string host,
bool udp )
static

The servers, with the login server at host, and the worlds sent over UDP, or TCP. Or why not, such as a certificate that won't load.

Definition at line 75 of file servers.cc.

◆ Enter()

virtual absl::StatusOr< std::unique_ptr< Link > > nanommo::Servers::Enter ( const protocol::WorldListing & world,
const std::string & token )
pure virtual

Into the world, as the character the token's for.

◆ Move()

virtual absl::StatusOr< std::unique_ptr< Link > > nanommo::Servers::Move ( const protocol::Move & move)
pure virtual

To the world's instance its last one handed us over to.


The documentation for this class was generated from the following files: