![]() |
Qore Programming Language
0.9.16
|
a helper class for getting socket origination information More...
#include <QoreSocket.h>
Public Member Methods | |
| DLLEXPORT | SocketSource () |
| creates an empty object | |
| DLLEXPORT | ~SocketSource () |
| destroys the object and frees all memory | |
| const DLLEXPORT char * | getAddress () const |
| returns the host address string as a C string More... | |
| const DLLEXPORT char * | getHostName () const |
| returns the hostname string as a C string More... | |
| DLLEXPORT QoreStringNode * | takeAddress () |
| returns the host address string field and leaves the object's host address field empty; the caller owns the QoreStringNode reference count returned More... | |
| DLLEXPORT QoreStringNode * | takeHostName () |
| returns the hostname string field and leaves the object's hostname field empty; the caller owns the QoreStringNode reference count returned More... | |
a helper class for getting socket origination information
objects of this class are used in some QoreSocket functions
| const DLLEXPORT char* SocketSource::getAddress | ( | ) | const |
returns the host address string as a C string
| const DLLEXPORT char* SocketSource::getHostName | ( | ) | const |
returns the hostname string as a C string
| DLLEXPORT QoreStringNode* SocketSource::takeAddress | ( | ) |
returns the host address string field and leaves the object's host address field empty; the caller owns the QoreStringNode reference count returned
| DLLEXPORT QoreStringNode* SocketSource::takeHostName | ( | ) |
returns the hostname string field and leaves the object's hostname field empty; the caller owns the QoreStringNode reference count returned