EXPORT_C CSecureSocket* CSecureSocket::NewL(MGenericSecureSocket& aSocket,const TDesC& aProtocol) /** * Creates and returns a pointer to a new secure socket. * * A reference to a socket derived from MGenericSecureSocket should be passed in, * along with a descriptor that contains the protocol name. * * @param aSocket A reference to an MGenericSecureSocket derived object. * @param aProtocol A constant descriptor containing the protocol name. * @return A pointer to the newly created secure socket, or NULL if the creation failed. */ { CSecureSocket* self = new(ELeave) CSecureSocket; CleanupStack::PushL( self ); self->ConstructL(aSocket,aProtocol); CleanupStack::Pop(); return self; }