|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
A world server, over TLS, with the worlds over UDP or TCP. More...
#include <connection.h>
Public Member Functions | |
| Connection (const Connection &)=delete | |
| Connection & | operator= (const Connection &)=delete |
| void | Poll () override |
| Takes in what's arrived, without waiting. | |
| void | Send (const protocol::Input &input) override |
| bool | connected () const override |
| const protocol::World & | world () const override |
| const std::deque< protocol::Chat > & | chat () const override |
| The newest lines said in the world, oldest first. | |
| int64_t | whole () const override |
| const std::optional< protocol::Move > & | move () const override |
| Where the world's instance told us to go, once it hands its players over. | |
| const protocol::Inventory & | inventory () const override |
| What we carry and wear, as the world last sent it. | |
| const protocol::Quests & | quests () const override |
| const protocol::Guild & | guild () const override |
| Our guild, with no name for none. | |
| const protocol::Trade & | trade () const override |
| Our trade, with nobody in it for none. | |
| const protocol::Duel & | duel () const override |
| Our duel, the same. | |
| std::vector< protocol::Event > | TakeEvents () override |
| std::optional< protocol::GuildInvite > | TakeInvite () override |
| The guild that asked us to join since the last time, once. | |
| Public Member Functions inherited from nanommo::Link | |
| virtual | ~Link ()=default |
Static Public Member Functions | |
| static absl::StatusOr< std::unique_ptr< Connection > > | Create (const std::string &host, uint16_t port, asio::ssl::context &tls, const std::string &token, bool udp) |
| Connects to the server over TLS, or returns why it couldn't. | |
A world server, over TLS, with the worlds over UDP or TCP.
Definition at line 28 of file connection.h.
|
delete |
|
inlineoverridevirtual |
The newest lines said in the world, oldest first.
Implements nanommo::Link.
Definition at line 42 of file connection.h.
|
inlineoverridevirtual |
Implements nanommo::Link.
Definition at line 40 of file connection.h.
|
static |
Connects to the server over TLS, or returns why it couldn't.
Definition at line 19 of file connection.cc.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Our guild, with no name for none.
Implements nanommo::Link.
Definition at line 53 of file connection.h.
|
inlineoverridevirtual |
What we carry and wear, as the world last sent it.
Implements nanommo::Link.
Definition at line 49 of file connection.h.
|
inlineoverridevirtual |
Where the world's instance told us to go, once it hands its players over.
Implements nanommo::Link.
Definition at line 46 of file connection.h.
|
delete |
|
overridevirtual |
Takes in what's arrived, without waiting.
Implements nanommo::Link.
Definition at line 81 of file connection.cc.
|
inlineoverridevirtual |
Implements nanommo::Link.
Definition at line 52 of file connection.h.
|
overridevirtual |
Implements nanommo::Link.
Definition at line 83 of file connection.cc.
|
inlineoverridevirtual |
What happened near us since the last time, oldest first, which it hands over, as each event comes once.
Implements nanommo::Link.
Definition at line 56 of file connection.h.
|
inlineoverridevirtual |
The guild that asked us to join since the last time, once.
Implements nanommo::Link.
Definition at line 59 of file connection.h.
|
inlineoverridevirtual |
Our trade, with nobody in it for none.
Implements nanommo::Link.
Definition at line 54 of file connection.h.
|
inlineoverridevirtual |
The newest world that's come whole, by when it was sent, for the server to leave out what hasn't changed since.
Implements nanommo::Link.
Definition at line 45 of file connection.h.
|
inlineoverridevirtual |
Implements nanommo::Link.
Definition at line 41 of file connection.h.