UniPRT SDK  v1.0.0.0
UniPRT.Sdk.Comm.Communication Class Reference

Static Public Member Functions

static IComm CreateComm (string descriptor)
 Creates a communication object based on the descriptor. Returns null if unable to create. More...
 

Member Function Documentation

◆ CreateComm()

static IComm UniPRT.Sdk.Comm.Communication.CreateComm ( string  descriptor)
static

Creates a communication object based on the descriptor. Returns null if unable to create.

Descriptor should have a <type> prefix. If no prefix is provided, it is assumed to be a "TCP" type.
Supported descriptor types:

  • TcpComm
    • <type>:<ip>:<port> e.g. "TCP:127.0.0.1:9001"
    • If no port is provided, default data port is used.