Class ipAddrToAsciiTransaction

Class Documentation

class ipAddrToAsciiTransaction

Class which convert an ipAddr to ascii and call a user-supplied callback when finished.

Public Functions

virtual void release() = 0

Destroy this transaction object and remove from the parent engine object.

virtual void ipAddrToAscii(const osiSockAddr &addrIn, ipAddrToAsciiCallBack &cbIn) = 0

Convert an IP address to ascii, asynchronously.

Note

The ipAddrToAsciiCallBack referenced must remain valid until release() is called on this transaction.

Parameters
  • addrIn – Reference to the address to convert

  • cbIn – Reference to the user supplied callbacks to call when the result is available

virtual osiSockAddr address() const = 0

Get the conversion address currently set.

Returns

Get the last (or current) address converted to ascii

virtual void show(unsigned level) const = 0

Prints the converted IP address.

Prints to stdout

Parameters

level – 0 prints basic info, greater than 0 prints information from the callback’s show() method too

Protected Functions

virtual ~ipAddrToAsciiTransaction() = 0