Socket address class encapsulating an IP/internet address.
More...
#include <SocketAddress.h>
List of all members.
Detailed Description
Socket address class encapsulating an IP/internet address.
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
[in] | nPort | Number of the port to use |
Copy constructor.
- Parameters:
-
[in] | cSource | Socket address to copy from |
Constructor.
- Parameters:
-
[in] | sAddress | Host address |
[in] | nPort | Number of the port to use |
Member Function Documentation
Returns the host address.
- Returns:
- The host address
Sets the host address.
- Parameters:
-
[in] | sAddress | New host address (if empty, set to any host address) |
Sets the host address by using the name of the host.
- Parameters:
-
[in] | sHostName | Name of the host |
- Returns:
- 'true' if all went fine, else 'false'
Returns the host port number.
- Returns:
- The host port number
Sets the host port number.
- Parameters:
-
[in] | nPort | Number of the port to use |
- Returns:
- 'true' if all went fine, else 'false'
Copy operator.
- Parameters:
-
[in] | cSource | Socket address to copy from |
- Returns:
- Reference to this socket address
PLCORE_API bool PLCore::SocketAddress::operator== |
( |
const SocketAddress & |
cSource | ) |
const |
Compare operator.
- Parameters:
-
[in] | cSource | Socket address to compare with |
- Returns:
- 'true' if both socket addresses are equal, else 'false'
PLCORE_API bool PLCore::SocketAddress::operator!= |
( |
const SocketAddress & |
cSource | ) |
const |
Compare operator.
- Parameters:
-
[in] | cSource | Socket address to compare with |
- Returns:
- 'true' if both socket addresses are not equal, else 'false'
The documentation for this class was generated from the following file: