Re: Sockets ready
| From: | Stig S. Bakken | Date: | Fri, 29 Nov 2002 07:50:32 +0000 |
| Subject: | Re: Sockets ready | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-11243@lists.php.net to get a copy of this message | ||
Hi,
I like it. +1 on the name "Socket" for this package.
Could you explain what Socket_List does? Does it maintain a list of
sockets and let you select() on them?
- Stig
On Thu, 2002-11-28 at 17:13, Stephan Seidt wrote:
> Hi,
>
> I've been creating a implementation for php's new socket extension.
> (There was a thread open about that (I changed from nntp -> mailing list))
>
> Socket_Base
> Socket_Base([resource])
> connect()
> bind()
> listen()
> accept(resource || object)
> send(message[, length[, flags]])
> recv([length,[ flags]])
> close()
> select([which,[ sec,[ usec]]])
> getSocket()
> setBlock([switch])
> setSilent([switch])
> handleWarning(message)
> handleError(message)
>
> Socket_TCP
> Socket_TCP(address, port)
>
> Socket_UDP
> Socket_UDP(address. port)
>
> Socket_UNIX
> Socket_UNIX(address[, type])
> delete()
>
> Socket_List
> add(resource || object)
> del(resource || object)
> clear()
> setBlock([switch])
> select([which,[ sec,[ usec]]])
> getSockets()
> setSilent([switch])
> handleWarning(message)
> handleError(message)
>
> It consists of 5 files now: Base.php, TCP.php, UDP.php, UNIX.php and List.php.
>
> But what's your opinion about this new Socket stuff now ?
>
> bye