Publisher review:Simple Server provides an interface for implementing TCP socket servers by handling the connections, sending and retrieving data to the clients that connect to the server. This class provides an interface for implementing TCP socket servers by handling the connections, sending and retrieving data to the clients that connect to the server. The class has the ability buffer the data received from the clients. The data may be returned to the calling script in smaller chunks split by a given divider character sequence.
This is convinient for line oriented protocols with which the line break and line feed character sequence is used to delimit the protocol commands. But in your opinion you can choose any character to split or deactivate splitting. You can build servers that handle the protocol dialogs in loops, but you can also create servers that are just waiting for one connection and then they shut down when they are that with that connection. Now there is also a second class inside this package (SimpleServerCallback) which allows you to create simplified callback based TCP Deamons.
It is very easy to handle this way, a example for this is also included. But you should note that the Callback Interface is testing and not stable yet!
Simple Server is a PHP script for PHP Classes scripts design by MC Breit.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris