UniPRT SDK  v1.0.0.0
com.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...
 

Static Private Member Functions

static String GetCommType (String descriptor)
 

Member Function Documentation

◆ CreateComm()

static IComm com.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.

References com.UniPRT.Sdk.Comm.TcpConnection.DescriptorPortType.DATA, com.UniPRT.Sdk.Comm.TcpConnection.DescriptorValidate(), and com.UniPRT.Sdk.Comm.Communication.GetCommType().

Referenced by com.UniPRT.Sdk.Json.JsonCommController.JsonConnection.JsonConnection().

◆ GetCommType()

static String com.UniPRT.Sdk.Comm.Communication.GetCommType ( String  descriptor)
staticprivate

The documentation for this class was generated from the following file: