![]() |
Diffusion .NET Classic API - Core and Common
5.9.4
|
Factory class for ConnectionDetails and ServerDetails objects. More...
Static Public Member Functions | |
static IConnectionDetails | CreateConnectionDetails () |
Creates connection details with no server details specified. Server details would need to be set explicitly using the ConnectionDetails.ServerDetails property before the connection details could be used for connection. More... | |
static IConnectionDetails | CreateConnectionDetails (List< IServerDetails > serverDetails) |
Creates connection details given a list of server details objects. More... | |
static IConnectionDetails | CreateConnectionDetails (params string[] urls) |
Creates connection details for a list of URLs. This is a a convenience method which will cause a list of ServerDetails objects to be created which correspond to the specified URLs. More... | |
static IConnectionDetails | CreateConnectionDetails (params IServerDetails[] serverDetails) |
Creates connection details with a list of ServerDetails. More... | |
static IServerDetails | CreateServerDetails (string url="dpt://localhost:8080") |
Creates a ServerDetails object from a URL. More... | |
Factory class for ConnectionDetails and ServerDetails objects.
|
static |
Creates connection details with no server details specified. Server details would need to be set explicitly using the ConnectionDetails.ServerDetails property before the connection details could be used for connection.
|
static |
Creates connection details given a list of server details objects.
serverDetails |
|
static |
Creates connection details for a list of URLs. This is a a convenience method which will cause a list of ServerDetails objects to be created which correspond to the specified URLs.
urls | One or more URLs from which ServerDetails objects will be created. |
|
static |
Creates connection details with a list of ServerDetails.
serverDetails | One or more server specifications. |
|
static |
Creates a ServerDetails object from a URL.
The URL takes the form: scheme://host:port. Where the scheme determines the transport protocol used to send Diffusion messages, and is chosen from the following list:
Scheme | Transport Protocol |
---|---|
ws
| WebSocket. SeeRFC 6455 |
wss
| WebSocket over TLS. |
dpt
| Deprecated since 5.9. "DPT" or Diffusion Protocol. A proprietary TCP protocol. |
dpts
| Deprecated since 5.9. Diffusion Protocol over TLS. |
http
| Deprecated since 5.7.. HTTP Duplex. A proprietary TCP protocol that is sufficiently like HTTP to be acceptable to some third-party network intermediaries. |
https
| Deprecated since 5.7.. HTTP Duplex over TLS. |
We recommend using the WebSocket protocol options (ws
or wss
). There is no measurable performance difference between the DPT and WebSocket protocols.
TLS is Transport Layer Security. TLS-based protocols use cryptography to provide transport-level privacy, authentication, and integrity, and protects against network-sniffing and man-in-the-middle attacks. We recommend using the TLS variants for all communication. For a typical application, only consider not using TLS for unauthenticated("anonymous") client sessions.
The HTTP Duplex protocol was deprecated in version 5.7 and will be removed in a future release of the product.
url | The URL. |