| escpos-php

- Main Page
- Related Pages
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

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:
[legend]
Collaboration diagram for Mike42\Escpos\PrintConnectors\NetworkPrintConnector:
[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 | $ip | IP address or hostname to use.
  string | $port | The port number to connect on.
  string | $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:

- C:/www/aplusnet/incahellas.com/public_html/lib/escpos-php-development/src/Mike42/Escpos/PrintConnectors/NetworkPrintConnector.php