#include <rfcomm.h>
Public Member Functions | |
rfcomm_secmode_t | GetSecMode (void) const |
Query the security mode of the listening socket. | |
bool | SetSecMode (rfcomm_secmode_t sec, ErrorInfo *error=0) |
Set the security mode of the listening socket. | |
BtHub * | GetHub (void) const |
DispatchInterface * | GetDi (void) const |
BtSession * | GetFirstSession (void) const |
BtSession * | GetNextSession (BtSession *) const |
RfcommService is a proto-service that contains utility code useful for creating a service handler for an RFCOMM profile. It works in conjunction with RfcommSession.
rfcomm_secmode_t GetSecMode | ( | void | ) | const [inline] |
Query the security mode of the listening socket.
bool SetSecMode | ( | rfcomm_secmode_t | sec, | |
ErrorInfo * | error = 0 | |||
) |
Set the security mode of the listening socket.
The security mode of the listening socket sets the security mode of all inbound connections. The RfcommSession and HfpSession objects also apply it to all outbound connections, and it is effectively used as policy for all RFCOMM connections.
[in] | sec | Security mode to be applied |
[out] | error | Error information structure. If this method fails and returns false, and error is not 0, error will be filled out with information on the cause of the failure. |
true | Security mode was successfully applied | |
false | Error attempting to apply security mode |
DispatchInterface* GetDi | ( | void | ) | const [inline, inherited] |
Query the dispatcher interface of the presiding BtHub
BtSession * GetFirstSession | ( | void | ) | const [inherited] |
Query the first session associated with the service
Reimplemented in HfpService.
Enumerate the next session associated with the service