TJsonProtocolFactory

TProtocolFactory creating a TJsonProtocol instance for passed in transports.

The optional Transports template tuple parameter can be used to specify one or more TTransport implementations to specifically instantiate TJsonProtocol for. If the actual transport types encountered at runtime match one of the transports in the list, a specialized protocol instance is created. Otherwise, a generic TTransport version is used.

class TJsonProtocolFactory : TProtocolFactory (
Transports...
) if (
allSatisfy!(isTTransport, Transports)
) {}

Members

Functions

getProtocol
TProtocol getProtocol(TTransport trans)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From TProtocolFactory

getProtocol
TProtocol getProtocol(TTransport trans)

Meta