0
|
1 # Net_Socket - Network Socket Interface
|
|
2
|
|
3 [![Build Status](https://travis-ci.org/pear/Net_Socket.svg?branch=master)](https://travis-ci.org/pear/Net_Socket)
|
|
4
|
|
5
|
|
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).
|
|
10
|
|
11 [Homepage](http://pear.php.net/package/Net_Socket/)
|
|
12
|
|
13
|
|
14 ## Installation
|
|
15 For a PEAR installation that downloads from the PEAR channel:
|
|
16
|
|
17 `$ pear install pear/net_socket`
|
|
18
|
|
19 For a PEAR installation from a previously downloaded tarball:
|
|
20
|
|
21 `$ pear install Net_Socket-*.tgz`
|
|
22
|
|
23 For a PEAR installation from a code clone:
|
|
24
|
|
25 `$ pear install package.xml`
|
|
26
|
|
27 For a local composer installation:
|
|
28
|
|
29 `$ composer install`
|
|
30
|
|
31 To add as a dependency to your composer-managed application:
|
|
32
|
|
33 `$composer require pear/net_socket`
|
|
34
|
|
35
|
|
36 ## Tests
|
|
37 Run the tests from a local composer installation:
|
|
38
|
|
39 `$ ./vendor/bin/phpunit`
|
|
40
|
|
41
|
|
42 ## License
|
|
43 BSD-2 license
|