Public Types | |
enum | TState { ENone = 1, EConnecting, EWaiting, ESending, ENone = 1, EConnecting, EWaiting, ESending } |
enum | TState { ENone = 1, EConnecting, EWaiting, ESending, ENone = 1, EConnecting, EWaiting, ESending } |
Public Member Functions | |
~CConnector () | |
TRequestStatus | ConnectL (THostName aName, TBTDevAddr aAddr, TInt aPort) |
void | Disconnect () |
void | SendData (const TDesC8 &) |
~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) |
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) |
void | RunL () |
void | DoCancel () |
TInt | RunError (TInt aError) |
Definition at line 55 of file Connector.h.
CConnector::~CConnector | ( | ) |
discussion Destroy the object and release all memory objects
Definition at line 71 of file Connector.cpp.
CConnector::~CConnector | ( | ) |
discussion Destroy the object and release all memory objects
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 36 of file Connector.cpp.
CConnector * CConnector::NewLC | ( | MConnectorObserver & | aObserver, | |
RSocketServ & | aSocketServ | |||
) | [static] |
Definition at line 45 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 90 of file Connector.cpp.
void CConnector::Disconnect | ( | ) |
discussion Disconnects connector from slave.
Definition at line 129 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 148 of file Connector.cpp.
void CConnector::RunL | ( | ) | [protected] |
discussion Handle the active objects request completion.
Definition at line 177 of file Connector.cpp.
void CConnector::DoCancel | ( | ) | [protected] |
discussion Cancels the outstanding request on active object.
Definition at line 79 of file Connector.cpp.
static CConnector* CConnector::NewL | ( | MConnectorObserver & | aObserver, | |
RSocketServ & | aSocketServ | |||
) | [static] |
discussion Create new CConnector object return a pointer to the created instance of CConnector
static CConnector* CConnector::NewLC | ( | MConnectorObserver & | aObserver, | |
RSocketServ & | aSocketServ | |||
) | [static] |
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
void CConnector::Disconnect | ( | ) |
discussion Disconnects connector from slave.
void CConnector::SendData | ( | const TDesC8 & | ) |
SendDataL()
discussion Sends given data to slave.
param aData the message to send to slave.
void CConnector::RunL | ( | ) | [protected] |
discussion Handle the active objects request completion.
void CConnector::DoCancel | ( | ) | [protected] |
discussion Cancels the outstanding request on active object.