PrintConnector for directly opening a network socket to a printer to send it commands.
More...
|
|
| $fp |
| | The file pointer to send data to.
|
| |
PrintConnector for directly opening a network socket to a printer to send it commands.
◆ __construct()
| Mike42\Escpos\PrintConnectors\NetworkPrintConnector::__construct |
( |
string |
$ip, |
|
|
int |
$port = 9100, |
|
|
int |
$timeout = -1 |
|
) |
| |
Construct a new NetworkPrintConnector.
- Parameters
-
| string | $ip | IP address or hostname to use. |
| int | $port | The port number to connect on. |
| int | $timeout | The connection timeout, in seconds. |
- Exceptions
-
| Exception | Where the socket cannot be opened. |
The documentation for this class was generated from the following file:
- src/Mike42/Escpos/PrintConnectors/NetworkPrintConnector.php