Public Types | |
enum | TState { ENone = 1, EConnecting, EWaiting, ESending } |
Public Member Functions | |
~CConnector () | |
TRequestStatus | ConnectL (THostName aName, TBTDevAddr aAddr, TInt aPort) |
void | Disconnect () |
void | SendData (const TDesC8 &) |
Static Public Member Functions | |
static CConnector * | NewL (MConnectorObserver &aObserver, RSocketServ &aSocketServ) |
static CConnector * | NewLC (MConnectorObserver &aObserver, RSocketServ &aSocketServ) |
Public Attributes | |
THostName | iName |
TBTDevAddr | iAddr |
TInt | iPort |
RSocket | iSock |
TBuf8< 40 > | iBuffer |
TSockXfrLength | iLen |
MConnectorObserver & | iObserver |
RSocketServ & | iSocketServ |
TState | iState |
Protected Member Functions | |
void | RunL () |
void | DoCancel () |
TInt | RunError (TInt aError) |
Definition at line 30 of file Connector.h.
CConnector::~CConnector | ( | ) |
discussion Destroy the object and release all memory objects
Definition at line 46 of file Connector.cpp.
CConnector * CConnector::NewL | ( | MConnectorObserver & | aObserver, | |
RSocketServ & | aSocketServ | |||
) | [static] |
discussion Create new CConnector object return a pointer to the created instance of CConnector
Definition at line 11 of file Connector.cpp.
CConnector * CConnector::NewLC | ( | MConnectorObserver & | aObserver, | |
RSocketServ & | aSocketServ | |||
) | [static] |
Definition at line 20 of file Connector.cpp.
TRequestStatus CConnector::ConnectL | ( | THostName | aName, | |
TBTDevAddr | aAddr, | |||
TInt | aPort | |||
) |
discussion Creates a connection to given remote address on given port.
param aName the name of the slave to connect to. param aAddr the address of the slave to connect to. param aPort the port on slave to connect to.
return the status of connection attempt
Definition at line 65 of file Connector.cpp.
void CConnector::Disconnect | ( | ) |
discussion Disconnects connector from slave.
Definition at line 104 of file Connector.cpp.
void CConnector::SendData | ( | const TDesC8 & | aData | ) |
SendDataL()
discussion Sends given data to slave.
param aData the message to send to slave.
Definition at line 123 of file Connector.cpp.
void CConnector::RunL | ( | ) | [protected] |
discussion Handle the active objects request completion.
Definition at line 152 of file Connector.cpp.
void CConnector::DoCancel | ( | ) | [protected] |
discussion Cancels the outstanding request on active object.
Definition at line 54 of file Connector.cpp.