From: Kero Date: 2005-03-29T01:49:47+09:00 Subject: Re: TCPServer >> > Why is TCPServer inheriting from TCPSocket? What methods on it might >> > be used >> > other than accept, and close? >> >> A TCP Server is just a socket you called listen(2) on: >> >> To accept connections, a socket is first created with socket(2), a >> will- >> ingness to accept incoming connections and a queue limit for >> incoming >> connections are specified with listen(), and then the connections >> are >> accepted with accept(2). The listen() call applies only to >> sockets of >> type SOCK_STREAM or SOCK_SEQPACKET. > > Exactly my point. So why does it inherit from TCPSocket, and more importanly > IO? read, write and all the variations are all not applicable, as far as I > can tell. select() works on it, iirc. +--- Kero ----------------------- kero@chello@nl ---+ | all the meaningless and empty words I spoke | | Promises -- The Cranberries | +--- M38c --- http://httpd.chello.nl/k.vangelder ---+