escpos-php
 All Classes Namespaces Functions Variables Pages
Public Member Functions | List of all members
Mike42\Escpos\PrintConnectors\NetworkPrintConnector Class Reference
Inheritance diagram for Mike42\Escpos\PrintConnectors\NetworkPrintConnector:
Inheritance graph
[legend]
Collaboration diagram for Mike42\Escpos\PrintConnectors\NetworkPrintConnector:
Collaboration graph
[legend]

Public Member Functions

 __construct ($ip, $port="9100", $timeout=false)
 
- Public Member Functions inherited from Mike42\Escpos\PrintConnectors\FilePrintConnector
 __construct ($filename)
 
 __destruct ()
 
 finalize ()
 
 read ($len)
 
 write ($data)
 

Additional Inherited Members

- Protected Attributes inherited from Mike42\Escpos\PrintConnectors\FilePrintConnector
 $fp
 

Detailed Description

PrintConnector for directly opening a network socket to a printer to send it commands.

Constructor & Destructor Documentation

Mike42\Escpos\PrintConnectors\NetworkPrintConnector::__construct (   $ip,
  $port = "9100",
  $timeout = false 
)

Construct a new NetworkPrintConnector

Parameters
string$ipIP address or hostname to use.
string$portThe port number to connect on.
string$timeoutThe connection timeout, in seconds.
Exceptions
ExceptionWhere the socket cannot be opened.

The documentation for this class was generated from the following file: