Initializes a new instance of the TcpPrinterConnection class. This constructor will use the default timeouts for Read().
The default timeout is a maximum of 5 seconds for any data to be received.
Namespace:
ZSDK_API.CommIf no more data is available after 500 milliseconds the read operation is assumed to be complete.
To specify timeouts other than the defaults, use:
TcpPrinterConnection(String, Int32, Int32, Int32)Assembly: ZSDK_API (in ZSDK_API.dll) Version: 1.1.123.0
Syntax
C# |
---|
public TcpPrinterConnection( string address, int port ) |
Visual Basic (Declaration) |
---|
Public Sub New ( _ address As String, _ port As Integer _ ) |
Parameters
- address
- Type: System..::.String
The IP address or DNS hostname.
- port
- Type: System..::.Int32
The port number.