TCP/IP network socket.
More...
#include <network_socket.h>
|
| | NetworkSocket (std::string ipAddress, uint16_t port) |
| | Constructor.
|
| |
|
|
const std::string | IpAddress |
| | Listening/Connecting IP address for server/client.
|
| |
|
const uint16_t | Port |
| | Listening/Connecting port number for server/client.
|
| |
|
int | FileDescriptor |
| | File descriptor.
|
| |
|
| int | Descriptor () const noexcept |
| | File descriptor.
|
| |
| virtual int | Connection () const noexcept=0 |
| | Connection descriptor for sending and receiving.
|
| |
| virtual bool | TrySetup () noexcept=0 |
| | Try to setup the communicator.
|
| |
| virtual bool | TryClose () noexcept |
| | Try to close the communicator.
|
| |
◆ NetworkSocket()
| AsyncBsdSocketLib::NetworkSocket::NetworkSocket |
( |
std::string | ipAddress, |
|
|
uint16_t | port ) |
|
protected |
Constructor.
- Parameters
-
| ipAddress | Binding IPv4 address |
| port | Binding port number |