|
Jpp 20.0.0-27-g39925593c-D
the software that should make you happy
|
Auxiliary data structure for hostname and port number. More...
#include <JHostname.hh>
Public Member Functions | |
| JHostname () | |
| Default constructor. | |
| JHostname (const std::string &buffer) | |
| Constructor. | |
| JHostname (const std::string &hostname, const int port) | |
| Constructor. | |
| bool | equals (const JHostname &hostname) const |
| Equal method. | |
| void | set (const std::string &buffer) |
| Set hostname and port number. | |
Public Attributes | |
| std::string | hostname |
| int | port |
Static Public Attributes | |
| static const char | SEPARATOR = ':' |
| Separation character between hostname and port number. | |
Friends | |
| std::istream & | operator>> (std::istream &in, JHostname &object) |
| Read hostname from input stream. | |
| std::ostream & | operator<< (std::ostream &out, const JHostname &object) |
| Write hostname to output stream. | |
Auxiliary data structure for hostname and port number.
Definition at line 33 of file JHostname.hh.
|
inline |
|
inline |
Constructor.
The argument correponds to the hostname and an optional port number of the server. The syntax is hostname[:port]. The default port number is DISPATCH_PORT. If the complete buffer corresponds to an integer value, it is interpreted as the port number.
| buffer | host name and optional port number |
Definition at line 61 of file JHostname.hh.
Constructor.
| hostname | hostname |
| port | port number |
Definition at line 73 of file JHostname.hh.
Equal method.
| hostname | host name and port |
Definition at line 87 of file JHostname.hh.
Set hostname and port number.
The argument correponds to the hostname and an optional port number of the server.
The syntax is hostname[:port]. The default port number is DISPATCH_PORT.
If the complete buffer corresponds to an integer value, it is interpreted as the port number.
| buffer | host name and optional port number |
Definition at line 104 of file JHostname.hh.
Read hostname from input stream.
| in | input stream |
| object | hostname |
Definition at line 146 of file JHostname.hh.
Write hostname to output stream.
| out | output stream |
| object | hostname |
Definition at line 165 of file JHostname.hh.
Separation character between hostname and port number.
Definition at line 39 of file JHostname.hh.
| std::string JNET::JHostname::hostname |
Definition at line 171 of file JHostname.hh.
| int JNET::JHostname::port |
Definition at line 172 of file JHostname.hh.