PEAR2_Net_Transmitterpackage.xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://pear.php.net/dtd/package-2.1" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0     http://pear.php.net/dtd/tasks-1.0.xsd     http://pear.php.net/dtd/package-2.1     http://pear.php.net/dtd/package-2.1.xsd" packagerversion="2.0.0">
 <name>PEAR2_Net_Transmitter</name>
 <channel>pear2.php.net</channel>
 <summary>Wrapper for network stream functionality.</summary>
 <description>PHP has built in support for various types of network streams, such as HTTP and TCP sockets. One problem that arises with them is the fact that a single fread/fwrite call might not read/write all the data you intended, regardless of whether you're in blocking mode or not. While the PHP manual offers a workaround in the form of a loop with a few variables, using it every single time you want to read/write can be tedious.

This package abstracts this away, so that when you want to get exactly N amount of bytes, you can be sure the upper levels of your app will be dealing with N bytes. Oh, and the functionality is nicely wrapped in an object (but that's just the icing on the cake).</description>
 <lead>
  <name>Vasil Rangelov</name>
  <user>boen_robot</user>
  <email>boen.robot@gmail.com</email>
  <active>yes</active>
 </lead>
 <date>2014-11-02</date>
 <time>07:03:22</time>
 <version>
  <release>1.0.0a5</release>
  <api>1.0.0</api>
 </version>
 <stability>
  <release>alpha</release>
  <api>alpha</api>
 </stability>
 <license uri="http://www.gnu.org/copyleft/lesser.html">LGPL License 2.1</license>
 <notes>* Added fragments to exceptions, allowing retrieval of incomplete receives' contents, and byte count on incomplete sends.
* Changed Stream to use an fread/fwrite duo instead of stream_copy_to_stream() for the sake of stability.
* Tweaked Stream::isAcceptingData() and NetworkStream::isAvailable(), in order to work around a reproducible hang on Linux.
* Doc fixes.</notes>
 <contents>
  <dir name="/">
   <file role="test" name="tests/UnconnectedTest.php"/>
   <file role="test" name="tests/ServerTest.php"/>
   <file role="test" name="tests/ServerEncryptedTest.php"/>
   <file role="test" name="tests/selfSigned.cer"/>
   <file role="test" name="tests/secondaryPeer.xml">
    <tasks:replace type="pear-config" to="php_dir" from="../src"/>
   </file>
   <file role="test" name="tests/secondaryPeer.bat">
    <tasks:windowseol/>
   </file>
   <file role="test" name="tests/phpunit.xml">
    <tasks:replace type="pear-config" to="php_dir" from="../src"/>
   </file>
   <file role="test" name="tests/ClientTest.php"/>
   <file role="test" name="tests/ClientEncryptedTest.php"/>
   <file role="test" name="tests/bootstrap.php">
    <tasks:replace type="pear-config" to="php_dir" from="../src"/>
    <tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
   </file>
   <file role="php" name="src/PEAR2/Net/Transmitter/TcpServerConnection.php">
    <tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
    <tasks:replace type="package-info" to="summary" from="~~summary~~"/>
    <tasks:replace type="package-info" to="description" from="~~description~~"/>
   </file>
   <file role="php" name="src/PEAR2/Net/Transmitter/TcpClient.php">
    <tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
    <tasks:replace type="package-info" to="summary" from="~~summary~~"/>
    <tasks:replace type="package-info" to="description" from="~~description~~"/>
   </file>
   <file role="php" name="src/PEAR2/Net/Transmitter/StreamException.php">
    <tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
    <tasks:replace type="package-info" to="summary" from="~~summary~~"/>
    <tasks:replace type="package-info" to="description" from="~~description~~"/>
   </file>
   <file role="php" name="src/PEAR2/Net/Transmitter/Stream.php">
    <tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
    <tasks:replace type="package-info" to="summary" from="~~summary~~"/>
    <tasks:replace type="package-info" to="description" from="~~description~~"/>
   </file>
   <file role="php" name="src/PEAR2/Net/Transmitter/SocketException.php">
    <tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
    <tasks:replace type="package-info" to="summary" from="~~summary~~"/>
    <tasks:replace type="package-info" to="description" from="~~description~~"/>
   </file>
   <file role="php" name="src/PEAR2/Net/Transmitter/NetworkStream.php">
    <tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
    <tasks:replace type="package-info" to="summary" from="~~summary~~"/>
    <tasks:replace type="package-info" to="description" from="~~description~~"/>
   </file>
   <file role="php" name="src/PEAR2/Net/Transmitter/LockException.php">
    <tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
    <tasks:replace type="package-info" to="summary" from="~~summary~~"/>
    <tasks:replace type="package-info" to="description" from="~~description~~"/>
   </file>
   <file role="php" name="src/PEAR2/Net/Transmitter/FilterCollection.php">
    <tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
    <tasks:replace type="package-info" to="summary" from="~~summary~~"/>
    <tasks:replace type="package-info" to="description" from="~~description~~"/>
   </file>
   <file role="php" name="src/PEAR2/Net/Transmitter/Exception.php">
    <tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
    <tasks:replace type="package-info" to="summary" from="~~summary~~"/>
    <tasks:replace type="package-info" to="description" from="~~description~~"/>
   </file>
   <file role="doc" name="docs/phpdoc.dist.xml">
    <tasks:replace type="pear-config" to="php_dir" from="../src"/>
   </file>
   <file role="doc" name="docs/doxygen.ini">
    <tasks:replace type="pear-config" to="php_dir" from="../src"/>
    <tasks:replace type="package-info" to="version" from="GIT: $Id$"/>
   </file>
   <file role="doc" name="docs/apigen.neon">
    <tasks:replace type="pear-config" to="php_dir" from="../src"/>
   </file>
  </dir>
 </contents>
 <dependencies>
  <required>
   <php>
    <min>5.3.0</min>
   </php>
   <pearinstaller>
    <min>1.4.0</min>
   </pearinstaller>
  </required>
  <optional>
   <package>
    <name>PEAR2_Autoload</name>
    <channel>pear2.php.net</channel>
    <min>0.2.4</min>
   </package>
   <package>
    <name>PEAR2_Cache_SHM</name>
    <channel>pear2.php.net</channel>
    <min>0.1.3</min>
   </package>
   <extension>
    <name>openssl</name>
   </extension>
  </optional>
 </dependencies>
 <phprelease>
  <filelist>
   <install name="docs/apigen.neon" as="apigen.neon"/>
   <install name="docs/doxygen.ini" as="doxygen.ini"/>
   <install name="docs/phpdoc.dist.xml" as="phpdoc.dist.xml"/>
   <install name="src/PEAR2/Net/Transmitter/Exception.php" as="PEAR2/Net/Transmitter/Exception.php"/>
   <install name="src/PEAR2/Net/Transmitter/FilterCollection.php" as="PEAR2/Net/Transmitter/FilterCollection.php"/>
   <install name="src/PEAR2/Net/Transmitter/LockException.php" as="PEAR2/Net/Transmitter/LockException.php"/>
   <install name="src/PEAR2/Net/Transmitter/NetworkStream.php" as="PEAR2/Net/Transmitter/NetworkStream.php"/>
   <install name="src/PEAR2/Net/Transmitter/SocketException.php" as="PEAR2/Net/Transmitter/SocketException.php"/>
   <install name="src/PEAR2/Net/Transmitter/Stream.php" as="PEAR2/Net/Transmitter/Stream.php"/>
   <install name="src/PEAR2/Net/Transmitter/StreamException.php" as="PEAR2/Net/Transmitter/StreamException.php"/>
   <install name="src/PEAR2/Net/Transmitter/TcpClient.php" as="PEAR2/Net/Transmitter/TcpClient.php"/>
   <install name="src/PEAR2/Net/Transmitter/TcpServerConnection.php" as="PEAR2/Net/Transmitter/TcpServerConnection.php"/>
   <install name="tests/bootstrap.php" as="bootstrap.php"/>
   <install name="tests/ClientEncryptedTest.php" as="ClientEncryptedTest.php"/>
   <install name="tests/ClientTest.php" as="ClientTest.php"/>
   <install name="tests/phpunit.xml" as="phpunit.xml"/>
   <install name="tests/secondaryPeer.bat" as="secondaryPeer.bat"/>
   <install name="tests/secondaryPeer.xml" as="secondaryPeer.xml"/>
   <install name="tests/selfSigned.cer" as="selfSigned.cer"/>
   <install name="tests/ServerEncryptedTest.php" as="ServerEncryptedTest.php"/>
   <install name="tests/ServerTest.php" as="ServerTest.php"/>
   <install name="tests/UnconnectedTest.php" as="UnconnectedTest.php"/>
  </filelist>
 </phprelease>
</package>
EOF