|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <gateway.h>
Public Member Functions | |
| Gateway (const Gateway &)=delete | |
| Gateway & | operator= (const Gateway &)=delete |
| uint16_t | port () const |
Static Public Member Functions | |
| static absl::StatusOr< std::unique_ptr< Gateway > > | Create (asio::io_context &io, uint16_t port, asio::ssl::context &tls, Route route) |
| Listens on the port (0 for any), or returns why it can't. | |
Static Public Attributes | |
| static constexpr std::size_t | kMaxMessage = 64 * 1024 |
| A page's message larger than this is refused, as the servers would. | |
Lets a browser's page reach the servers, which a page can't open a socket to: it takes WebSocket connections, and relays each one's messages to a server over TLS, and the server's bytes back, as they are.
|
delete |
|
static |
Listens on the port (0 for any), or returns why it can't.
Definition at line 387 of file gateway.cc.
|
staticconstexpr |