|
ImagingTools Core SDK
|
Basic implementation of IServerConnectionInterface with protocol-port mapping. More...
#include <CServerConnectionInterfaceParam.h>
Public Member Functions | |
| CServerConnectionInterfaceParam () | |
| Default constructor. | |
| void | RegisterProtocol (ProtocolType protocol) |
| Register a protocol as supported. | |
Additional Inherited Members | |
Public Types inherited from imtcom::IServerConnectionInterface | |
| enum | ProtocolType { PT_UNKNOWN , PT_HTTP , PT_WEBSOCKET , PT_FILE , PT_GRPC } |
| Communication protocols supported by server connections. More... | |
| enum | ConnectionFlags { CF_DEFAULT = 0x1 , CF_SECURE = 0x2 } |
| Flags controlling connection security and behavior. More... | |
| typedef QList< ProtocolType > | ProtocolTypes |
| List of protocol types for querying supported protocols. | |
Basic implementation of IServerConnectionInterface with protocol-port mapping.
CServerConnectionInterfaceParam provides the core data storage and logic for server connection configuration. It maintains a map of protocols to port numbers and implements all methods defined by IServerConnectionInterface.
This class serves as the base for CServerConnectionInterfaceParamComp and can be used directly in non-ACF contexts where component infrastructure is not needed.
Protocol Registration:
Port Mapping:
URL Generation:
Serialization:
Change Management:
The class serializes the following data:
This class is not thread-safe. If accessed from multiple threads, external synchronization is required. Consider using CServerConnectionInterfaceParamComp which may provide additional thread safety through component framework.
Definition at line 101 of file CServerConnectionInterfaceParam.h.
| imtcom::CServerConnectionInterfaceParam::CServerConnectionInterfaceParam | ( | ) |
Default constructor.
Initializes the connection parameter with:
| void imtcom::CServerConnectionInterfaceParam::RegisterProtocol | ( | ProtocolType | protocol | ) |
Register a protocol as supported.
Adds the specified protocol to the list of supported protocols. Once registered, the protocol can be configured with SetPort() and queried with GetPort() and GetUrl().
Registering a protocol does not set a port - you must call SetPort() separately to configure the port number.
| protocol | Protocol type to register. |