TcpipSocket Class
- Updated2026-08-05
- 2 minute(s) read
Provides access to the TCP/IP socket functionality available in VISA.
Derives from
- MessageBasedSession
- ITcpipSocketSession
- ITcpipSocketSession2
Syntax
Namespace: NationalInstruments.Visa
public class TcpipSocket : MessageBasedSession, ITcpipSocketSession, ITcpipSocketSession2
Constructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| 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. |
| 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. |
| TlsCipherSuite | Gets a string that indicates the cipher suite used by TLS, which tells the user something about the security of the connection. |
Methods
| Name | Description |
|---|---|
| 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. |