[Twisted-Python] What the hell?
Chris Clearwater
chris at detriment.org
Fri Aug 31 12:57:15 MDT 2001
OOPS! I just switched ISPs and was figuring out my mail relay and the
message got sent three times! /me curses exim.
On Fri, Aug 31, 2001 at 11:51:45AM -0700, Chris Clearwater wrote:
> I agree. The transport for a client or server should probally not be
> generalized to a socket at all. Maybe this calls for the creation of
> twisted.transport ? I am not familiar much with the twisted codebase, so
> don't kill me if something like this already exists :)
>
> On Fri, Aug 31, 2001 at 01:15:16PM -0400, Itamar wrote:
> > From tcp.py:
> >
> > ============
> > class Client(Connection):
> > """A client for TCP (and similiar) sockets.
> > """
> > def __init__(self, host, port, protocol):
> > """Initialize the client, setting up its socket, and request to
> > connect.
> > """
> > if host == 'unix':
> > # "port" in this case is really a filename
> > ...
> > ============
> >
> > That is sooo wrong. What if my computer is named 'unix'? Why does the
> > TCP code deal with files?
> >
> >
> >
> >
> > _______________________________________________
> > Twisted-Python mailing list
> > Twisted-Python at twistedmatrix.com
> > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
> --
> python -c "print reduce(lambda x,y: x+y,map(lambda x: chr((23069453891\
> 36636418523668102630431981680355427L>>(x*8))&0xFF),xrange(0,19)))"
--
python -c "print reduce(lambda x,y: x+y,map(lambda x: chr((23069453891\
36636418523668102630431981680355427L>>(x*8))&0xFF),xrange(0,19)))"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20010831/35b1b36c/attachment.sig>
More information about the Twisted-Python
mailing list