![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <nat-helper.hpp>

Public Member Functions | |
| NatHelper () | |
| NatHelper (int port) | |
| ~NatHelper ()=default | |
| void | run (bool async=true) |
| void | stop () |
Private Member Functions | |
| void | cleanEmptyRooms () |
| void | onClientDesc (Client &client, CompletionStatus status) |
| void | onConnectionAccepted (const std::error_code &ec) |
| void | worker () |
Private Attributes | |
| asio::ip::tcp::acceptor | acceptor |
| std::map< Client *, std::shared_ptr< Client > > | incomingClients |
| asio::io_service | io_service |
| asio::ip::tcp::socket | pendingSocket |
| int | port |
| std::map< std::string, std::shared_ptr< Room > > | rooms |
| std::thread | worker_thread |
Definition at line 47 of file nat-helper.hpp.
| NatHelper::NatHelper | ( | ) |
Definition at line 50 of file nat-helper.cpp.
| NatHelper::NatHelper | ( | int | port | ) |
Definition at line 41 of file nat-helper.cpp.
|
default |
|
private |
Definition at line 104 of file nat-helper.cpp.
References rooms.
Referenced by onClientDesc().
|
private |
Definition at line 115 of file nat-helper.cpp.
References cleanEmptyRooms(), first, incomingClients, rooms, and Success.
Referenced by onConnectionAccepted().

|
private |
Definition at line 87 of file nat-helper.cpp.
References acceptor, incomingClients, onClientDesc(), onConnectionAccepted(), and pendingSocket.
Referenced by onConnectionAccepted(), and run().

| void NatHelper::run | ( | bool | async = true | ) |
Definition at line 62 of file nat-helper.cpp.
References acceptor, onConnectionAccepted(), pendingSocket, port, worker(), and worker_thread.
Referenced by main(), and worker().

| void NatHelper::stop | ( | ) |
Definition at line 81 of file nat-helper.cpp.
References io_service, and worker_thread.
|
private |
Definition at line 56 of file nat-helper.cpp.
References io_service, and run().
Referenced by run().

|
private |
Definition at line 70 of file nat-helper.hpp.
Referenced by onConnectionAccepted(), and run().
Definition at line 73 of file nat-helper.hpp.
Referenced by onClientDesc(), and onConnectionAccepted().
|
private |
Definition at line 66 of file nat-helper.hpp.
|
private |
Definition at line 71 of file nat-helper.hpp.
Referenced by onConnectionAccepted(), and run().
|
private |
Definition at line 64 of file nat-helper.hpp.
Referenced by run().
|
private |
Definition at line 74 of file nat-helper.hpp.
Referenced by cleanEmptyRooms(), and onClientDesc().
|
private |
Definition at line 68 of file nat-helper.hpp.