Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: c32comm.h

Enum TCommAccess

TCommAccess

Description

Specifies the mode in which a port is opened.

We specify the mode when it is opened, and the mode cannot thereafter be changed. If we open the port in Shared mode, other clients of the comms server can use the same port while we have it open. If we open the port in Exclusive mode, then it is locked for our own use and any attempt to access it from another process will fail. Furthermore, our own attempt to open a port in exclusive mode will fail if another process has already opened the port in shared mode.

Infra-red ports using IRCOMM.CSY can be opened in either shared or exclusive mode. However they SHOULD only be opened in Exclusive mode, since opening them any other way warm-boots the computer.

ECommExclusive

Once open, the port cannot be used by any other RComm clients. An attempt to open a port in exclusive mode will fail if another process has already opened the port in shared mode.

ECommShared

The port can be shared by other RComm clients who open in the same mode.

ECommPreemptable

Allows another client to pre-empt the session with an open request in one of the other two modes. The port will be lost if other clients are trying to open it.