MultichannelTcpConnection Constructor (DiscoveredPrinter, Int32, Int32, Int32, Int32)
|
Initializes a new instance of the MultichannelTcpConnection class.
Namespace:
Zebra.Sdk.Comm
Assembly:
SdkApi_Core (in SdkApi_Core.dll) Version: 2.13.898
Syntax public MultichannelTcpConnection(
DiscoveredPrinter discoveredPrinter,
int printingChannelMaxTimeoutForRead,
int printingChannelTimeToWaitForMoreData,
int statusChannelMaxTimeoutForRead,
int statusChannelTimeToWaitForMoreData
)
Public Sub New (
discoveredPrinter As DiscoveredPrinter,
printingChannelMaxTimeoutForRead As Integer,
printingChannelTimeToWaitForMoreData As Integer,
statusChannelMaxTimeoutForRead As Integer,
statusChannelTimeToWaitForMoreData As Integer
)
public:
MultichannelTcpConnection(
DiscoveredPrinter^ discoveredPrinter,
int printingChannelMaxTimeoutForRead,
int printingChannelTimeToWaitForMoreData,
int statusChannelMaxTimeoutForRead,
int statusChannelTimeToWaitForMoreData
)
Parameters
- discoveredPrinter
- Type: Zebra.Sdk.Printer.DiscoveryDiscoveredPrinter
The discovered printer. - printingChannelMaxTimeoutForRead
- Type: SystemInt32
The maximum time, in milliseconds, to wait for any data to be received on the printing channel. - printingChannelTimeToWaitForMoreData
- Type: SystemInt32
The maximum time, in milliseconds, to wait in-between reads after the initial read on the printing channel. - statusChannelMaxTimeoutForRead
- Type: SystemInt32
The maximum time, in milliseconds, to wait for any data to be received on the status channel. - statusChannelTimeToWaitForMoreData
- Type: SystemInt32
The maximum time, in milliseconds, to wait in-between reads after the initial read on the status channel.
Exceptions Exception | Condition |
---|
ArgumentException | If discoveredPrinter is not a valid Link-OS printer. |
Remarks
This constructor will use the specified timeouts for
Read for the channels. The timeout is a maximum of
printingChannelMaxTimeoutForRead/statusChannelMaxTimeoutForRead milliseconds for any data to be received on the printing/status
channels respectively.If no more data is available after
printingChannelTimeToWaitForMoreData/statusChannelTimeToWaitForMoreData
milliseconds on the printing/status channels respectively the read operation is assumed to be complete.
See Also