CConnector Class Reference

List of all members.

Public Types

enum  TState {
  ENone = 1, EConnecting, EWaiting, ESending,
  ENone = 1, EConnecting, EWaiting, ESending,
  ENone = 1, EConnecting, EWaiting, ESending
}
enum  TState {
  ENone = 1, EConnecting, EWaiting, ESending,
  ENone = 1, EConnecting, EWaiting, ESending,
  ENone = 1, EConnecting, EWaiting, ESending
}
enum  TState {
  ENone = 1, EConnecting, EWaiting, ESending,
  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 &)
 ~CConnector ()
TRequestStatus ConnectL (THostName aName, TBTDevAddr aAddr, TInt aPort)
void Disconnect ()
void SendData (const TDesC8 &)

Static Public Member Functions

static CConnectorNewL (MConnectorObserver &aObserver, RSocketServ &aSocketServ)
static CConnectorNewLC (MConnectorObserver &aObserver, RSocketServ &aSocketServ)
static CConnectorNewL (MConnectorObserver &aObserver, RSocketServ &aSocketServ)
static CConnectorNewLC (MConnectorObserver &aObserver, RSocketServ &aSocketServ)
static CConnectorNewL (MConnectorObserver &aObserver, RSocketServ &aSocketServ)
static CConnectorNewLC (MConnectorObserver &aObserver, RSocketServ &aSocketServ)

Public Attributes

THostName iName
TBTDevAddr iAddr
TInt iPort
RSocket iSock
TBuf8< 40 > iBuffer
TSockXfrLength iLen
MConnectorObserveriObserver
RSocketServ & iSocketServ
TState iState

Protected Member Functions

void RunL ()
void DoCancel ()
TInt RunError (TInt aError)
void RunL ()
void DoCancel ()
TInt RunError (TInt aError)
void RunL ()
void DoCancel ()
TInt RunError (TInt aError)

Detailed Description

Definition at line 55 of file Connector.h.


Constructor & Destructor Documentation

CConnector::~CConnector (  ) 

~CConnector()

discussion Destroy the object and release all memory objects

Definition at line 71 of file Connector.cpp.

CConnector::~CConnector (  ) 

~CConnector()

discussion Destroy the object and release all memory objects

CConnector::~CConnector (  ) 

~CConnector()

discussion Destroy the object and release all memory objects


Member Function Documentation

CConnector * CConnector::NewL ( MConnectorObserver aObserver,
RSocketServ &  aSocketServ 
) [static]

NewL()

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]

NewLC()

Definition at line 45 of file Connector.cpp.

TRequestStatus CConnector::ConnectL ( THostName  aName,
TBTDevAddr  aAddr,
TInt  aPort 
)

ConnectL()

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 (  ) 

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]

RunL()

discussion Handle the active objects request completion.

Definition at line 177 of file Connector.cpp.

void CConnector::DoCancel (  )  [protected]

DoCancel()

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]

NewL()

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 
)

ConnectL()

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 (  ) 

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]

RunL()

discussion Handle the active objects request completion.

void CConnector::DoCancel (  )  [protected]

DoCancel()

discussion Cancels the outstanding request on active object.

static CConnector* CConnector::NewL ( MConnectorObserver aObserver,
RSocketServ &  aSocketServ 
) [static]

NewL()

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 
)

ConnectL()

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 (  ) 

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]

RunL()

discussion Handle the active objects request completion.

void CConnector::DoCancel (  )  [protected]

DoCancel()

discussion Cancels the outstanding request on active object.


Generated by  doxygen 1.6.2