Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


How to define a protocol module entry point

Each module should export a function as ordinal 1 is called by the socket server to create an instance of a CProtocolFamilyBase derived object. The exact name of the function is unimportant.

Each protocol module should only ever be expected to create a single CProtocolFamilyBase derived class, even if it supports multiple protocols.

If this function cannot create the protocol family, it should leave with an informative error code.

        EXPORT_C CProtocolFamilyBase* InstallIPC()
//
// Create a new protocol family
//
    {
    return CIpcProtocolFamily::NewL();
    }