Skip to content

Commit

Permalink
Getting ready for release.
Browse files Browse the repository at this point in the history
  • Loading branch information
boenrobot committed Oct 15, 2011
1 parent 5b39200 commit c8b6cbc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Wrapper for stream functionality.
This package provides data integrity to stream functionality, particularly useful for sockets.
Wrapper for network stream functionality.
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).
2 changes: 1 addition & 1 deletion RELEASE-1.0.0a2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Lots of reorganization and initial test suite.
* Renamed all "Socket*Transmitter" classes to "Tcp*".
* Added test suite with nearly complete code coverage. Remaining coverage is due to forward compatibility issues.
* Added FilterCollection, in turn allowing for the same filter to be applied more than once.
* Added NetworkStream, and made Tpc* classes inherit from it. This new class contains a new method called shutdown().
* Added NetworkStream, and made Tcp* classes inherit from it. This new class contains a new method called shutdown().
* IPv6 addresses must now be written literally, without the surrounding "[" and "]".
* TcpServerConnection can now accept IPv6 connections.
* Merged sendStream() into send().
Expand Down
9 changes: 9 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
<tasks:replace type="package-info" from="~~description~~" to="description"/>
<tasks:replace type="package-info" from="SVN: $WCREV$" to="version"/>
</file>
<file name="PEAR2/Net/Transmitter/NetworkStream.php" role="php">
<tasks:replace type="package-info" from="~~summary~~" to="summary"/>
<tasks:replace type="package-info" from="~~description~~" to="description"/>
<tasks:replace type="package-info" from="SVN: $WCREV$" to="version"/>
</file>
<file name="PEAR2/Net/Transmitter/SocketException.php" role="php">
<tasks:replace type="package-info" from="~~summary~~" to="summary"/>
<tasks:replace type="package-info" from="~~description~~" to="description"/>
Expand Down Expand Up @@ -106,6 +111,10 @@
name="src/PEAR2/Net/Transmitter/Exception.php"
as="PEAR2/Net/Transmitter/Exception.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"
Expand Down

0 comments on commit c8b6cbc

Please sign in to comment.