Public Member Functions | Protected Member Functions

zeus::TBluetoothServerSocket Class Reference

#include <BluetoothServerSocket.h>

Inheritance diagram for zeus::TBluetoothServerSocket:
zeus::TAbstractSocket zeus::TZObject zeus::IZUnknown

List of all members.

Public Member Functions

 TBluetoothServerSocket ()
bool hasAuthentication () const
bool hasEncryption () const
void setAuthentication (bool bMode)
void setEncryption (bool bMode)
virtual Retval accept (TBluetoothSocket *&rpClient)
virtual Retval acceptTO (TBluetoothSocket *&rpClient, Float fTimeOut)
virtual Retval connect ()
virtual Retval bind ()
bool isBound () const

Protected Member Functions

virtual ~TBluetoothServerSocket ()

Detailed Description

Implements the bluetooth socket


Constructor & Destructor Documentation

TBluetoothServerSocket::TBluetoothServerSocket (  )

Creates the bluetooth socket

TBluetoothServerSocket::~TBluetoothServerSocket (  ) [protected, virtual]

Destroys the bluetooth socket


Member Function Documentation

Retval zeus::TBluetoothServerSocket::accept ( TBluetoothSocket *&  rpClient ) [inline, virtual]

Accepts a incomming connection to a client socket. The Socket will be wrapped into a TSocket Object. This method blocks the calling thread unitl a client connects to this server socket. For non blocking server sockets this method will return imediately.

Note:
If the server socket is used in a child thread of the applications its important that the socket is non blocking, otherwise the thread will hang.
Parameters:
rpClient: return parameter of the client
Returns:
see TAbstractSocket::getErrorCode()
Retval zeus::TBluetoothServerSocket::acceptTO ( TBluetoothSocket *&  rpClient,
Float  fTimeOut 
) [inline, virtual]

Same as the accept() method, but with a timeout. The time is only effective if the socket is non blocking. To use non blocking call setBlockable(false). For blocking server sockets this method is identical to accept().

Parameters:
rpClient: return parameter of the client
fTimeOut: The time out in seconds
Returns:
see TAbstractSocket::getErrorCode()
Retval TBluetoothServerSocket::bind (  ) [virtual]

binds the bluetooth

virtual Retval zeus::TBluetoothServerSocket::connect (  ) [inline, virtual]

Implements zeus::TAbstractSocket.

bool zeus::TBluetoothServerSocket::hasAuthentication (  ) const [inline]

Checks if the authentication is switched on

bool zeus::TBluetoothServerSocket::hasEncryption (  ) const [inline]

Checks if the encryption is switched on

bool zeus::TBluetoothServerSocket::isBound (  ) const [inline]

Checks if the server socket is bound to an address. This returns the same as the isConnected() method, in the understanding that the server is connected to its local socket.

void zeus::TBluetoothServerSocket::setAuthentication ( bool  bMode ) [inline]

Enables or disables the authentication of the bluetooth connection

void zeus::TBluetoothServerSocket::setEncryption ( bool  bMode ) [inline]

Enables or disables the encryption of the bluetooth connection


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Sun Jan 22 2012 15:28:27