#include <BoapSimple.h>
Inheritance diagram for BoapClientObject:

Public Member Functions | |
| BoapClientObject (BString name="") | |
| virtual | ~BoapClientObject () |
| BError | connectService (BString name) |
| Connects to the named service. | |
| BError | disconnectService () |
| Disconnects from the named service. | |
| BString | getServiceName () |
| Get the name of the service. | |
| BError | ping (BUInt32 &apiVersion) |
| Pings the connection and finds the remotes version number. | |
| BError | setConnectionPriority (BoapPriority priority) |
| Sets the connection priority. | |
| void | setMaxLength (BUInt32 maxLength) |
| Sets the maximum packet length. | |
| void | setTimeout (int timeout) |
| Sets the timeout in micro seconds. -1 is wait indefinitely. | |
| BoapClientObject (BString name) | |
| BError | connectService (BString name) |
Protected Member Functions | |
| BError | pingLocked (BUInt32 &apiVersion) |
| BError | checkApiVersion () |
| BError | performCall (BoapPacket &tx, BoapPacket &rx) |
| Performs a RPC call to the named service. | |
| BError | performSend (BoapPacket &tx) |
| Performs a send to the named service. | |
| BError | performRecv (BoapPacket &rx) |
| Performs a receive. | |
| virtual BError | handleReconnect (BError err) |
| Handle a reconnect performing autorisaztion if required. | |
| BError | performSend (BoapPacket &tx) |
| BError | performRecv (BoapPacket &rx) |
| BError | performCall (BoapPacket &tx, BoapPacket &rx) |
Protected Attributes | |
| BString | oname |
| BUInt32 | oapiVersion |
| BoapPriority | opriority |
| BoapService | oservice |
| int | oconnected |
| BUInt32 | omaxLength |
| BoapPacket | otx |
| BoapPacket | orx |
| BMutex | olock |
| int | otimeout |
| int | oreconnect |
| Handle an automatic reconnect on timeout. | |
| BoapClientObject::BoapClientObject | ( | BString | name = "" |
) |
| BoapClientObject::~BoapClientObject | ( | ) | [virtual] |
| BoapClientObject::BoapClientObject | ( | BString | name | ) |
| BError BoapClientObject::checkApiVersion | ( | ) | [protected] |
| BError BoapClientObject::disconnectService | ( | ) |
Disconnects from the named service.
| BString BoapClientObject::getServiceName | ( | ) |
Get the name of the service.
Handle a reconnect performing autorisaztion if required.
| BError BoapClientObject::performCall | ( | BoapPacket & | tx, | |
| BoapPacket & | rx | |||
| ) | [protected] |
| BError BoapClientObject::performCall | ( | BoapPacket & | tx, | |
| BoapPacket & | rx | |||
| ) | [protected] |
Performs a RPC call to the named service.
| BError BoapClientObject::performRecv | ( | BoapPacket & | rx | ) | [protected] |
| BError BoapClientObject::performRecv | ( | BoapPacket & | rx | ) | [protected] |
Performs a receive.
| BError BoapClientObject::performSend | ( | BoapPacket & | tx | ) | [protected] |
| BError BoapClientObject::performSend | ( | BoapPacket & | tx | ) | [protected] |
Performs a send to the named service.
Pings the connection and finds the remotes version number.
| BError BoapClientObject::setConnectionPriority | ( | BoapPriority | priority | ) |
Sets the connection priority.
| void BoapClientObject::setMaxLength | ( | BUInt32 | maxLength | ) |
Sets the maximum packet length.
| void BoapClientObject::setTimeout | ( | int | timeout | ) |
Sets the timeout in micro seconds. -1 is wait indefinitely.
BUInt32 BoapClientObject::oapiVersion [protected] |
int BoapClientObject::oconnected [protected] |
BMutex BoapClientObject::olock [protected] |
BUInt32 BoapClientObject::omaxLength [protected] |
BString BoapClientObject::oname [protected] |
BoapPriority BoapClientObject::opriority [protected] |
int BoapClientObject::oreconnect [protected] |
Handle an automatic reconnect on timeout.
BoapPacket BoapClientObject::orx [protected] |
BoapService BoapClientObject::oservice [protected] |
int BoapClientObject::otimeout [protected] |
BoapPacket BoapClientObject::otx [protected] |
1.4.7