|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <cstdint>#include <span>#include "absl/status/status.h"#include "asio/ip/tcp.hpp"#include "asio/ip/udp.hpp"Go to the source code of this file.
Namespaces | |
| namespace | nanommo |
Functions | |
| absl::Status | nanommo::Listen (asio::ip::tcp::acceptor &acceptor, uint16_t port) |
| Opens the acceptor on the port, on all addresses, and starts listening. | |
| absl::Status | nanommo::Bind (asio::ip::udp::socket &socket, uint16_t port) |
| Opens the socket on the port, on all addresses, for datagrams. | |
| absl::Status | nanommo::ListenAndBind (asio::ip::tcp::acceptor &acceptor, asio::ip::udp::socket &socket, std::span< const uint16_t > ports) |