BLE mbed Endpoint network stack for mbedConnectorInterface. The stack makes use of a special BLE Socket abstraction to create socket() semantics over BLE.
Dependencies: libnsdl_m0 BLE_API Base64 nRF51822 SplitterAssembler
Endpoint Class Reference
IP Endpoint (address, port) More...
#include <Endpoint.h>
Public Member Functions | |
Endpoint (void) | |
IP Endpoint (address, port) | |
void | reset_address (void) |
Reset the address of this endpoint. | |
int | set_address (const char *host, const int port) |
Set the address of this endpoint. | |
char * | get_address (void) |
Get the IP address of this endpoint. | |
int | get_port (void) |
Get the port of this endpoint. | |
Friends | |
class | UDPSocket |
Detailed Description
IP Endpoint (address, port)
Definition at line 26 of file Endpoint.h.
Constructor & Destructor Documentation
Endpoint | ( | void | ) |
IP Endpoint (address, port)
Definition at line 27 of file Endpoint.cpp.
Member Function Documentation
char * get_address | ( | void | ) |
Get the IP address of this endpoint.
- Returns:
- The IP address of this endpoint.
Definition at line 56 of file Endpoint.cpp.
int get_port | ( | void | ) |
Get the port of this endpoint.
- Returns:
- The port of this endpoint
Definition at line 60 of file Endpoint.cpp.
void reset_address | ( | void | ) |
Reset the address of this endpoint.
Definition at line 32 of file Endpoint.cpp.
int set_address | ( | const char * | host, |
const int | port | ||
) |
Set the address of this endpoint.
- Parameters:
-
host The endpoint address (it can either be an IP Address or a hostname that will be resolved with DNS). port The endpoint port
- Returns:
- 0 on success, -1 on failure (when an hostname cannot be resolved by DNS).
Definition at line 39 of file Endpoint.cpp.
Generated on Sun Jul 17 2022 05:11:06 by 1.7.2