This is Library using WIZnet Hardware TCP/IP chip, W5500 and WIZnet TCP/IP Offload Engine, W7500.

Dependents:   HTTP_SDcard_file_server_WIZwiki-W7500 SSD1306_smart_watch TCPEchoServer-WIZwiki-W7500 httpServer-WIZwiki-W7500 ... more

Fork of WIZnetInterface by Soohwan Kim

Embed: (wiki syntax)

« Back to documentation index

Endpoint Class Reference

Endpoint Class Reference

IP Endpoint (address, port) More...

#include <Endpoint.h>

Inherited by TCPSocketConnection.

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 28 of file Endpoint.h.


Constructor & Destructor Documentation

Endpoint ( void   )

IP Endpoint (address, port)

Definition at line 21 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 52 of file Endpoint.cpp.

int get_port ( void   )

Get the port of this endpoint.

Returns:
The port of this endpoint

Definition at line 57 of file Endpoint.cpp.

void reset_address ( void   )

Reset the address of this endpoint.

Definition at line 28 of file Endpoint.cpp.

int set_address ( const char *  host,
const int  port 
)

Set the address of this endpoint.

Parameters:
hostThe endpoint address (it can either be an IP Address or a hostname that will be resolved with DNS).
portThe endpoint port
Returns:
0 on success, -1 on failure (when an hostname cannot be resolved by DNS).

Definition at line 34 of file Endpoint.cpp.