Public Member Functions | |
| __init__ (self) | |
| int | GetBytesAvailable (self) |
| Get the bytes available. | |
| bool | Connected (self) |
| Is connected with the NET. | |
| Read (self, buffer, size) | |
| Read data through the NET from printer. | |
| Write (self, data_out, data_size) | |
| Write data through the NET to printer. | |
| WriteAndWaitForResponse (self, data_out, data_size, response_start_time_out, response_end_time_out, completion_token) | |
| Write byte data to output stream and return data received. | |
| Close (self) | |
| Disconnect the printer. | |
| StopAsyncListening (self) | |
| Open (self) | |
| Open the printer through the NET. | |
| SendPrintFile (self, ipAddress, fileName) | |
| Send file through the NET. | |
| SendPrintString (self, ipAddress, data, iDataSize) | |
| Send the string through the NET. | |
| TcpConnection (self, str ipAddress, int port) | |
| Connect to the selected NET device. | |
| Union[CObject, None] | GetComm (self) |
| Get the pointer of communicating I/F. | |
Public Attributes | |
| giComm | |
Protected Attributes | |
| _socket | |
| CommSDK.CommSDK.__init__ | ( | self | ) |
| CommSDK.CommSDK.Close | ( | self | ) |
Disconnect the printer.
| bool CommSDK.CommSDK.Connected | ( | self | ) |
Is connected with the NET.
| int CommSDK.CommSDK.GetBytesAvailable | ( | self | ) |
Get the bytes available.
| Union[CObject, None] CommSDK.CommSDK.GetComm | ( | self | ) |
Get the pointer of communicating I/F.
| CommSDK.CommSDK.Open | ( | self | ) |
Open the printer through the NET.
| CommSDK.CommSDK.Read | ( | self, | |
| buffer, | |||
| size ) |
Read data through the NET from printer.
| [in] | buffer | The buffer to store data |
| [in] | size | The size of the buffer |
| CommSDK.CommSDK.SendPrintFile | ( | self, | |
| ipAddress, | |||
| fileName ) |
Send file through the NET.
| [in] | ipAddress | IP address |
| [in] | fileName | File path |
| CommSDK.CommSDK.SendPrintString | ( | self, | |
| ipAddress, | |||
| data, | |||
| iDataSize ) |
Send the string through the NET.
| [in] | ipAddress | IP address |
| [in] | data | The data to send to the printer |
| [in] | iDataSize | The size of the data |
| CommSDK.CommSDK.StopAsyncListening | ( | self | ) |
| CommSDK.CommSDK.TcpConnection | ( | self, | |
| str | ipAddress, | ||
| int | port ) |
Connect to the selected NET device.
| [in] | ipAddress | IP address |
| [in] | port | Port number (e.g., 9100) |
| CommSDK.CommSDK.Write | ( | self, | |
| data_out, | |||
| data_size ) |
Write data through the NET to printer.
| [in] | data_out | The data to write to printer |
| [in] | data_size | The size of the data to write to printer |
| CommSDK.CommSDK.WriteAndWaitForResponse | ( | self, | |
| data_out, | |||
| data_size, | |||
| response_start_time_out, | |||
| response_end_time_out, | |||
| completion_token ) |
Write byte data to output stream and return data received.
Data returned is any data received or up to completion token if received. Wait for response timeout before returning.
| [in] | data_out | The data to write to printer |
| [in] | data_size | The size of the data to write to printer |
| [in] | response_start_time_out | Timeout to wait for first data to be received. Time to first byte |
| [in] | response_end_time_out | Timeout of no new data received. Time after last byte |
| [in] | completion_token | String token denoting the end of the response expected. This can be an empty string if simply want to wait for response after writing data to connection. |
|
protected |
| CommSDK.CommSDK.giComm |