Library: UPnP/SOAP
Package: SOAP
Header: Poco/UPnP/SOAP/Transport.h
The Transport implementation for UPnP SOAP.
This Transport implementation provides SOAP support for UPnP device control.
Direct Base Classes: Poco::RemotingNG::Transport
All Base Classes: Poco::RefCountedObject, Poco::RemotingNG::AttributedObject, Poco::RemotingNG::Transport
Member Functions: beginMessage, beginRequest, connect, connected, disconnect, endPoint, endRequest, getKeepAlive, getKeepAliveTimeout, getTimeout, requireSession, sendMessage, sendRequest, setKeepAlive, setKeepAliveTimeout, setTimeout
Inherited Functions: beginMessage, beginRequest, connect, connected, disconnect, duplicate, endPoint, endRequest, getAttribute, hasAttribute, referenceCount, release, sendMessage, sendRequest, setAttribute
Transport(
bool keepAlive = false
);
Creates a Transport.
If keepAlive is true, enables HTTP 1.1 persistent connections for this Transport connection.
~Transport();
Destroys the Transport.
Poco::RemotingNG::Serializer & beginMessage(
const Poco::RemotingNG::Identifiable::ObjectId & oid,
const Poco::RemotingNG::Identifiable::TypeId & tid,
const std::string & messageName,
Poco::RemotingNG::SerializerBase::MessageType messageType
);
Poco::RemotingNG::Serializer & beginRequest(
const Poco::RemotingNG::Identifiable::ObjectId & oid,
const Poco::RemotingNG::Identifiable::TypeId & tid,
const std::string & messageName,
Poco::RemotingNG::SerializerBase::MessageType messageType
);
void connect(
const std::string & endPoint
);
See also: Poco::RemotingNG::Transport::connect()
bool connected() const;
See also: Poco::RemotingNG::Transport::connected()
void disconnect();
const std::string & endPoint() const;
See also: Poco::RemotingNG::Transport::endPoint()
void endRequest();
bool getKeepAlive() const;
Returns true if and only if HTTP/1.1 persistent connections are enabled.
The Transport must be connected, otherwise a Poco::IllegalStateException will be thrown.
Poco::Timespan getKeepAliveTimeout() const;
Returns the timeout for HTTP/1.1 persistent connections.
The Transport must be connected, otherwise a Poco::IllegalStateException will be thrown.
Poco::Timespan getTimeout() const;
Returns the HTTP timeout.
The Transport must be connected, otherwise a Poco::IllegalStateException will be thrown.
void sendMessage(
const Poco::RemotingNG::Identifiable::ObjectId & oid,
const Poco::RemotingNG::Identifiable::TypeId & tid,
const std::string & messageName,
Poco::RemotingNG::SerializerBase::MessageType messageType
);
Poco::RemotingNG::Deserializer & sendRequest(
const Poco::RemotingNG::Identifiable::ObjectId & oid,
const Poco::RemotingNG::Identifiable::TypeId & tid,
const std::string & messageName,
Poco::RemotingNG::SerializerBase::MessageType messageType
);
void setKeepAlive(
bool enable
);
Enables or disables HTTP/1.1 persistent connections.
The Transport must be connected, otherwise a Poco::IllegalStateException will be thrown.
void setKeepAliveTimeout(
const Poco::Timespan & timeout
);
Sets the timeout for HTTP/1.1 persistent connections.
The Transport must be connected, otherwise a Poco::IllegalStateException will be thrown.
void setTimeout(
const Poco::Timespan & timeout
);
Sets the HTTP timeout.
The Transport must be connected, otherwise a Poco::IllegalStateException will be thrown.
const Poco::Net::HTTPClientSession & requireSession() const;
Poco::Net::HTTPClientSession & requireSession();
static const std::string PROTOCOL;
static const std::string CONTENT_TYPE;
static const std::string SOAPACTION;