Provides access to the TCP/IP socket functionality available in VISA.

Derives from

Syntax

Namespace: NationalInstruments.Visa

public class TcpipSocket : MessageBasedSession, ITcpipSocketSession, ITcpipSocketSession2

Constructors

NameDescription
TcpipSocket(string)

Initializes a new instance of the TcpipSocket object from the specified resource name.

TcpipSocket(string, AccessModes, int)

Initializes a new instance of the TcpipSocket object from the specified resource name, access modes, and initialization timeout value.

TcpipSocket(string, AccessModes, int, bool)

Initializes a new instance of the TcpipSocket object from the specified resource name, access modes, initialization timeout value, and resource name validation flag.

Properties

NameDescription
Address

Gets the TCP/IP address of the device to which the session is connected, in IPv4 dot-notation or IPv6 representation.

HostName

Gets the host name of the device.

KeepAlive

Specifies whether the TCP/IP provider enables the use of keep-alive packets on TCP connections.

NoDelay

Specifies whether the Nagle algorithm is disabled.

Port

Gets the port number for the TCP/IP address of this resource.

ServerCertificate

Gets the full text of the server certificate in RFC 5652 PEM format.

ServerCertificateExpirationDate

Gets the expiration date of the server certificate.

ServerCertificateIsPerpetual

Gets a value indicating whether the certificate does not expire.
Note that this may indicate that the certificate is from an IDevID.

ServerCertificateIssuerName

The name of the CA that signed the certificate. For an LDevId this will indicate the name of the PKI CA.

ServerCertificateSubjectName

Gets the subject field from the certificate.
That is, the entity associated with the public key in the certificate.

TlsCipherSuite

Gets a string that indicates the cipher suite used by TLS, which tells the user something about the security of the connection.
For details, refer to https://www.iana.org/assignments/tls-parameters/tls-parameters.xml.

Methods

NameDescription
Flush(IOBuffers, bool)

Flushes the read and write buffers associated with the TCPIP connection.

SetBufferSize(IOBuffers, int)

Sets the size of the read and/or write buffer for TCPIP communication.