This interface is implemented by a local bridge device.
interface IBridgePortDevice extends ${IDevice} {
// Properties
${bridgePort}: number;
${bridgeServer}: string;
readonly ${isLocal}: boolean;
readonly ${isListening}: boolean;
${remoteLogin}: string;
${remoteDomain}: string;
${remotePassword}: string;
readonly ${securityDescriptor}: string;
${emulateBaudrate}: boolean;
${emulateTxOverflow}: boolean;
${crossoverProbability}: number;
${DTR}: ${DestinationPins};
${DSR}: ${DestinationPins};
${DCD}: ${DestinationPins};
${RTS}: ${DestinationPins};
${CTS}: ${DestinationPins};
${RI}: ${DestinationPins};
// Methods
${restoreDefaultPins}(): void;
${startListening}(securityDescriptor?: string): void;
}
public interface IBridgePortDevice : ${IDevice}
{
// Properties
uint ${bridgePort} { get; set; }
string ${bridgeServer} { get; set; }
bool ${isLocal} { get; }
bool ${isListening} { get; }
string ${remoteLogin} { get; set; }
string ${remoteDomain} { get; set; }
string ${remotePassword} { get; set; }
string ${securityDescriptor} { get; }
bool ${emulateBaudrate} { get; set; }
bool ${emulateTxOverflow} { get; set; }
double ${crossoverProbability} { get; set; }
${DestinationPins} ${DTR} { get; set; }
${DestinationPins} ${DSR} { get; set; }
${DestinationPins} ${DCD} { get; set; }
${DestinationPins} ${RTS} { get; set; }
${DestinationPins} ${CTS} { get; set; }
${DestinationPins} ${RI} { get; set; }
// Methods
void ${restoreDefaultPins}();
void ${startListening}(string securityDescriptor);
}
struct IBridgePortDevice : IDevice
{
// Properties
unsigned ${bridgePort}; // get set
_bstr_t ${bridgeServer}; // get set
VARIANT_BOOL ${isLocal}; // get
VARIANT_BOOL ${isListening}; // get
_bstr_t ${remoteLogin}; // get set
_bstr_t ${remoteDomain}; // get set
_bstr_t ${remotePassword}; // get set
_bstr_t ${securityDescriptor}; // get
VARIANT_BOOL ${emulateBaudrate}; // get set
VARIANT_BOOL ${emulateTxOverflow}; // get set
double ${crossoverProbability}; // get set
${DestinationPins} ${DTR}; // get set
${DestinationPins} ${DSR}; // get set
${DestinationPins} ${DCD}; // get set
${DestinationPins} ${RTS}; // get set
${DestinationPins} ${CTS}; // get set
${DestinationPins} ${RI}; // get set
// Methods
HRESULT ${restoreDefaultPins}();
HRESULT ${startListening}(_bstr_t securityDescriptor);
};
bridgePort: number;
uint bridgePort { get; set; }
unsigned bridgePort; // get set
Port number of other side of the local or remote bridge.
bridgeServer: string;
string bridgeServer { get; set; }
_bstr_t bridgeServer; // get set
Name or address of the remote server on which a listening port is created. Do not set this property to create a local bridge.
readonly isLocal: boolean;
bool isLocal { get; }
VARIANT_BOOL isLocal; // get
True if this device is part of a local bridge or false otherwise. If isListening
property is true
, this property would be false
.
readonly isListening: boolean;
bool isListening { get; }
VARIANT_BOOL isListening; // get
True if this device is in a listening state (that is, “server” side of a remote bridge).
remoteLogin: string;
string remoteLogin { get; set; }
_bstr_t remoteLogin; // get set
Optional user name or login to use when connecting to a remote listening port (do not set this property for local bridges).
remoteDomain: string;
string remoteDomain { get; set; }
_bstr_t remoteDomain; // get set
Optional domain name to use when connecting to a remote listening port (do not set this property for local bridges). Can be empty to use default remote computer domain.
remotePassword: string;
string remotePassword { get; set; }
_bstr_t remotePassword; // get set
Optional user password to use when connecting to a remote listening port (do not set this property for local bridges).
This property is write-only.
readonly securityDescriptor: string;
string securityDescriptor { get; }
_bstr_t securityDescriptor; // get
This read-only property returns a copy of listening's port security descriptor, in string SD format.
emulateBaudrate: boolean;
bool emulateBaudrate { get; set; }
VARIANT_BOOL emulateBaudrate; // get set
Turn emulation of baud rate on or off.
By default, Virtual Serial Port Tools does not emulate baud rate.
emulateTxOverflow: boolean;
bool emulateTxOverflow { get; set; }
VARIANT_BOOL emulateTxOverflow; // get set
Turn emulation of output buffer overflow on or off.
By default, Virtual Serial Port Tools does not emulate output buffer overflow.
crossoverProbability: number;
double crossoverProbability { get; set; }
double crossoverProbability; // get set
Single bit crossover probability. May be a floating-point number between 0 and 0.5 (inclusive). Value 0 disables line noise emulation.
By default, Virtual Serial Port Tools does not emulate line noise. Change the value of this property to enable line noise emulation.
DTR: ${DestinationPins};
${DestinationPins} DTR { get; set; }
${DestinationPins} DTR; // get set
Allows configuration of custom pin-out for a local DTR line.
DSR: ${DestinationPins};
${DestinationPins} DSR { get; set; }
${DestinationPins} DSR; // get set
Allows configuration of custom pin-out for a local DSR line.
DCD: ${DestinationPins};
${DestinationPins} DCD { get; set; }
${DestinationPins} DCD; // get set
Allows configuration of custom pin-out for a local DCD line.
RTS: ${DestinationPins};
${DestinationPins} RTS { get; set; }
${DestinationPins} RTS; // get set
Allows configuration of custom pin-out for a local RTS line.
CTS: ${DestinationPins};
${DestinationPins} CTS { get; set; }
${DestinationPins} CTS; // get set
Allows configuration of custom pin-out for a local CTS line.
RI: ${DestinationPins};
${DestinationPins} RI { get; set; }
${DestinationPins} RI; // get set
Allows configuration of custom pin-out for a local RI line.
restoreDefaultPins(): void;
void restoreDefaultPins();
HRESULT restoreDefaultPins();
This method restores default pin-out assignment.
startListening(securityDescriptor?: string): void;
void startListening(string securityDescriptor);
HRESULT startListening(_bstr_t securityDescriptor);
securityDescriptor
Starts listening port, optionally applying passed security descriptor. After this method returns, a remote bridge device may connect to this listening port.
Note that the actual connection occurs only when the client bridge port is opened by some application.