1 # Net_Socket - Network Socket Interface
3 [![Build Status](https://travis-ci.org/pear/Net_Socket.svg?branch=master)](https://travis-ci.org/pear/Net_Socket)
6 Net_Socket is a class interface to TCP sockets. It provides blocking
7 and non-blocking operation, with different reading and writing modes
8 (byte-wise, block-wise, line-wise and special formats like network
9 byte-order ip addresses).
11 [Homepage](http://pear.php.net/package/Net_Socket/)
15 For a PEAR installation that downloads from the PEAR channel:
17 `$ pear install pear/net_socket`
19 For a PEAR installation from a previously downloaded tarball:
21 `$ pear install Net_Socket-*.tgz`
23 For a PEAR installation from a code clone:
25 `$ pear install package.xml`
27 For a local composer installation:
31 To add as a dependency to your composer-managed application:
33 `$composer require pear/net_socket`
37 Run the tests from a local composer installation:
39 `$ ./vendor/bin/phpunit`