Poco::RemotingNG::TCP

class ServerTransport

File Information

Library: RemotingNG/TCP
Package: TCP
Header: Poco/RemotingNG/TCP/ServerTransport.h

Description

The ServerTransport implementation for the RemotingNG TCP transport.

Inheritance

Direct Base Classes: Poco::RemotingNG::ServerTransport, Poco::Runnable, Poco::RefCountedObject

All Base Classes: Poco::RefCountedObject, Poco::RemotingNG::AttributedObject, Poco::RemotingNG::ServerTransport, Poco::Runnable

Member Summary

Member Functions: authenticate, authorize, beginRequest, endRequest, run, sendReply, waitReady

Inherited Functions: authenticate, authorize, beginRequest, clearAttributes, countAttributes, duplicate, endRequest, enumerateAttributes, getAttribute, hasAttribute, operator =, referenceCount, release, removeAttribute, reportException, run, sendReply, setAttribute

Types Aliases

Ptr

using Ptr = Poco::AutoPtr < ServerTransport >;

Constructors

ServerTransport

ServerTransport(
    Listener & _listener,
    CredentialsStore::Ptr pCredentialsStore,
    const Poco::SharedPtr < ChannelInputStream > & pRequestStream,
    const Poco::SharedPtr < ChannelOutputStream > & pReplyStream,
    bool compressed,
    bool authenticated
);

Creates a ServerTransport.

Destructor

~ServerTransport virtual

~ServerTransport();

Destroys the ServerTransport().

Member Functions

authenticate virtual

bool authenticate(
    const std::string & method
);

authorize virtual

bool authorize(
    const std::string & method,
    const std::string & permission
);

beginRequest virtual

Deserializer & beginRequest();

endRequest virtual

void endRequest();

run virtual

void run();

sendReply virtual

Serializer & sendReply(
    SerializerBase::MessageType messageType
);

waitReady

void waitReady();

Waits until the server thread is ready.

Securely control IoT edge devices from anywhere   Connect a Device