Skip to content

Commit c8b6cbc

Browse files
committed
Getting ready for release.
1 parent 5b39200 commit c8b6cbc

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

README

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
Wrapper for stream functionality.
2-
This package provides data integrity to stream functionality, particularly useful for sockets.
1+
Wrapper for network stream functionality.
2+
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.
3+
4+
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).

RELEASE-1.0.0a2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Lots of reorganization and initial test suite.
33
* Renamed all "Socket*Transmitter" classes to "Tcp*".
44
* Added test suite with nearly complete code coverage. Remaining coverage is due to forward compatibility issues.
55
* Added FilterCollection, in turn allowing for the same filter to be applied more than once.
6-
* Added NetworkStream, and made Tpc* classes inherit from it. This new class contains a new method called shutdown().
6+
* Added NetworkStream, and made Tcp* classes inherit from it. This new class contains a new method called shutdown().
77
* IPv6 addresses must now be written literally, without the surrounding "[" and "]".
88
* TcpServerConnection can now accept IPv6 connections.
99
* Merged sendStream() into send().

package.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
<tasks:replace type="package-info" from="~~description~~" to="description"/>
4444
<tasks:replace type="package-info" from="SVN: $WCREV$" to="version"/>
4545
</file>
46+
<file name="PEAR2/Net/Transmitter/NetworkStream.php" role="php">
47+
<tasks:replace type="package-info" from="~~summary~~" to="summary"/>
48+
<tasks:replace type="package-info" from="~~description~~" to="description"/>
49+
<tasks:replace type="package-info" from="SVN: $WCREV$" to="version"/>
50+
</file>
4651
<file name="PEAR2/Net/Transmitter/SocketException.php" role="php">
4752
<tasks:replace type="package-info" from="~~summary~~" to="summary"/>
4853
<tasks:replace type="package-info" from="~~description~~" to="description"/>
@@ -106,6 +111,10 @@
106111
name="src/PEAR2/Net/Transmitter/Exception.php"
107112
as="PEAR2/Net/Transmitter/Exception.php"
108113
/>
114+
<install
115+
name="src/PEAR2/Net/Transmitter/NetworkStream.php"
116+
as="PEAR2/Net/Transmitter/NetworkStream.php"
117+
/>
109118
<install
110119
name="src/PEAR2/Net/Transmitter/SocketException.php"
111120
as="PEAR2/Net/Transmitter/SocketException.php"

0 commit comments

Comments
 (0)