Property | Type | Description | |
---|---|---|---|
$socket | resource | The endpoint. |
Method | Description | |
---|---|---|
__construct ( string $host, integer $port = 9100 ) | Create an instance. | |
__destruct ( ) | Destroy an instance. | |
printer ( string $host, integer $port = 9100 ) : self | Create an instance statically. | |
send ( string $zpl ) | Send ZPL data to printer. |
Method | Description | |
---|---|---|
connect ( string $host, integer $port ) : boolean | Connect to printer. | |
disconnect ( ) | Close connection to printer. | |
getLastError ( ) : array | Get the last socket error. |
public __construct ( string $host, integer $port = 9100 ) | ||
$host | string | |
$port | integer |
protected getLastError ( ) : array | ||
return | array |