class RCommServ : public RSessionBase |
Represents a session with the serial comms server. Functions are provided for connection to the server and for loading and unloading different comms modules, and services for finding out the name and numbers of the available ports.
Sessions with the serial comms server are not shareable.
Comms modules are also known as "CSY"s due to their ".CSY" extension, derived from the term "Comms SYstem".
This class is not intended for user derivation.
Public Member Functions | |
---|---|
RCommServ() | |
IMPORT_C TInt | Connect() |
IMPORT_C TInt | CreateThreadInCommProc(const TDesC &, const TDesC &, TThreadFunction, TInt, TInt, TInt) |
IMPORT_C TInt | GetPortInfo(const TDesC &, TSerialInfo &) |
IMPORT_C TInt | GetPortInfo(TInt, TDes &, TSerialInfo &) |
IMPORT_C TInt | LoadCommModule(const TDesC &) |
IMPORT_C TInt | NumPorts(TInt &) |
IMPORT_C TInt | UnloadCommModule(const TDesC &) |
IMPORT_C TVersion | Version() |
IMPORT_C TInt | __DbgCheckHeap(TInt) |
IMPORT_C TInt | __DbgFailNext(TInt) |
IMPORT_C TInt | __DbgMarkEnd(TInt) |
IMPORT_C TInt | __DbgMarkHeap() |
IMPORT_C TInt | __DbgSetTraceMask(TC32Trace) |
Private Member Functions | |
---|---|
TBool | IsServerThreadL() |
Inherited Enumerations | |
---|---|
RHandleBase:TAttributes | |
RSessionBase:TAttachMode |
Inherited Attributes | |
---|---|
RHandleBase::iHandle |
IMPORT_C TInt | CreateThreadInCommProc | ( | const TDesC & | aLibraryName, |
const TDesC & | aThreadName, | |||
TThreadFunction | aFunction, | |||
TInt | aStackSize, | |||
TInt | aHeapMinSize, | |||
TInt | aHeapMaxSize | |||
) | [static] |
IMPORT_C TInt | GetPortInfo | ( | const TDesC & | aName, |
TSerialInfo & | aInfo | |||
) |
const TDesC & aName | |
TSerialInfo & aInfo |
IMPORT_C TInt | GetPortInfo | ( | TInt | aIndex, |
TDes & | aModuleName, | |||
TSerialInfo & | aInfo | |||
) |
TInt aIndex | |
TDes & aModuleName | |
TSerialInfo & aInfo |
IMPORT_C TInt | LoadCommModule | ( | const TDesC & | aFileName | ) |
const TDesC & aFileName |