|
ImagingTools Core SDK
|
ACF component implementation of IServerConnectionInterface with default port configuration. More...
#include <CServerConnectionInterfaceParamComp.h>
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. | |
Public Member Functions inherited from imtcom::CServerConnectionInterfaceParam | |
| CServerConnectionInterfaceParam () | |
| Default constructor. | |
| void | RegisterProtocol (ProtocolType protocol) |
| Register a protocol as supported. | |
ACF component implementation of IServerConnectionInterface with default port configuration.
CServerConnectionInterfaceParamComp extends CServerConnectionInterfaceParam with ACF component infrastructure and provides sensible default port numbers for common protocols. This is the recommended class to use in ImtCore applications requiring server connection configuration.
Default Port Configuration:
ACF Component Integration:
SSL Configuration Integration:
Component Lifecycle:
| Attribute | Type | Description | Default |
|---|---|---|---|
| DefaultHost | QString | Default server host name | "localhost" |
| DefaultWebSocketPort | int | Default WebSocket port | 9000 |
| DefaultHttpPort | int | Default HTTP port | 9001 |
| DefaultgRPCPort | int | Default gRPC port | 50101 |
| Reference | Interface | Description |
|---|---|---|
| ExternalEnableSSL | iprm::IEnableableParam | External SSL configuration control |
When ExternalEnableSSL is set and enabled, GetConnectionFlags() returns CF_SECURE. Otherwise, it returns the manually set connection flags.
The default port numbers are chosen to:
Default Ports:
| Feature | CServerConnectionInterfaceParam | CServerConnectionInterfaceParamComp |
|---|---|---|
| ACF Component | ❌ No | ✅ Yes |
| Default Ports | ❌ Manual configuration required | ✅ HTTP: 9001, WS: 9000, gRPC: 50101 |
| Default Host | ❌ Empty string | ✅ "localhost" |
| Attribute Support | ❌ No | ✅ Yes |
| SSL Integration | ❌ Manual flags only | ✅ IEnableableParam integration |
| Factory Creation | ❌ No | ✅ Yes |
| Recommended Use | Non-ACF contexts | ✅ All ImtCore applications |
Definition at line 204 of file CServerConnectionInterfaceParamComp.h.