|
resonance 1.0.1
|
Network address a packet transport serialises: three strings and one word. More...
#include <transportaddress.h>
Public Member Functions | |
| TransportAddress (const HxStr &host, const HxStr &address, const HxStr &service, int nPort) | |
| Construct from copies of the three strings and the word. | |
| virtual | ~TransportAddress () |
| Slot 1. | |
| virtual void | Save (OBStream &stream) |
| Write the three strings through SaveHxStr() and then the word, as four bytes. | |
| virtual void | Load (IBStream &stream) |
| Read back what Save() writes, through LoadHxStr() and a four-byte read. | |
| HxStr | GetHost () |
| Report a copy of the first string. | |
| HxStr | GetAddress () |
| Report a copy of the second string. | |
| HxStr | GetService () |
| Report a copy of the third string. | |
Network address a packet transport serialises: three strings and one word.
Its RTTI descriptor is at 0x0086f6e8. It has no base. The three strings come first, then the word, then the vptr at +0x1c (the position of a vptr in a class with no base). Its table at 0x00814e10 has four entries (the type function at 0x003f4330, the destructor, Save(), and Load()).
No routine of the class has a caller in the image, and no string names a field. The member titles are inferred from the class name and from the options labels Net IP Address and Net Port (an address paired with a port number).
| TransportAddress::TransportAddress | ( | const HxStr & | host, |
| const HxStr & | address, | ||
| const HxStr & | service, | ||
| int | nPort ) |
Construct from copies of the three strings and the word.
| host | The first string. |
| address | The second string. |
| service | The third string. |
| nPort | The word. |
|
virtual |
Slot 1.
The body frees the three string buffers, in reverse order, and nothing else.
|
virtual |
Write the three strings through SaveHxStr() and then the word, as four bytes.
Slot 2. Each write goes to the stream the previous write returned.
| stream | The stream to write to. |
|
virtual |
Read back what Save() writes, through LoadHxStr() and a four-byte read.
Slot 3.
| stream | The stream to read from. |
| HxStr TransportAddress::GetHost | ( | ) |
Report a copy of the first string.
| HxStr TransportAddress::GetAddress | ( | ) |
Report a copy of the second string.
| HxStr TransportAddress::GetService | ( | ) |
Report a copy of the third string.