|
API New Year
1.0
API for the project ZIA, EPITECH 2017.
|
Base class representing minimum information needed for sockets. More...
#include <ISocket.h>

Public Member Functions | |
| virtual SOCKET | getSocket (void) const =0 |
| Base class representing minimum information needed for sockets. More... | |
| virtual void | setSocket (SOCKET sd)=0 |
| Setter for socket. More... | |
| virtual const std::string & | getIp (void) const =0 |
| Getter for IP address. More... | |
| virtual const std::string & | getHost (void) const =0 |
| Getter for Hostname. More... | |
| virtual int | getPort (void) const =0 |
| Getter for Port number. More... | |
| virtual const struct sockaddr * | getSockInfo () const =0 |
| Getter for sockaddr used by the socket. More... | |
| virtual void | setSockInfo (struct sockaddr *)=0 |
| Setter for sockaddr used by the socket. More... | |
Base class representing minimum information needed for sockets.
Establishes the base architecture for Sockets used by the server.
|
pure virtual |
Getter for Hostname.
ISocket get Hostname of the corresponding client.
|
pure virtual |
Getter for IP address.
ISocket get IP address of client using socket.
|
pure virtual |
Getter for Port number.
ISocket get Port number used by socket.
|
pure virtual |
Base class representing minimum information needed for sockets.
Establishes the base architecture for Sockets used by the server.
|
pure virtual |
Getter for sockaddr used by the socket.
ISocket get the sockaddr used by the socket
|
pure virtual |
|
pure virtual |
Setter for sockaddr used by the socket.
ISocket set the sockaddr used by the socket.
| sockaddr | pointer to the sockaddr |