#include <BluetoothServerSocket.h>
List of all members.
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] |
| virtual Retval zeus::TBluetoothServerSocket::connect |
( |
) |
[inline, virtual] |
| 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: