Re: Sockets ready
| From: | Stephan Seidt | Date: | Sat, 30 Nov 2002 12:10:47 +0000 |
| Subject: | Re: Sockets ready | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-11263@lists.php.net to get a copy of this message | ||
On 29 Nov 2002 08:50:32 +0100
"Stig S. Bakken" <ssb@fast.no> wrote:
> 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?
Yes, but recv, send and so on should be used in a foreach loop.
Did you get my mail ? I wanted to answer to the newsgroup address
but my client is very strange with all these reply buttons..
>
> - 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
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php