[Twisted-Python] Is X.25 supported?
Eric C. Newton
ecn at metaslash.com
Tue Sep 17 20:00:48 EDT 2002
Oops ... that should read:
"Twisted does _not_ prevent it..."
Twisted is great. Eric is an idiot.
Some more details for the internet to record for posterity:
The X.25 interface under Linux is socket based. You can use your
friends listen/connect/accept/send/recv with the underlying X.25
drivers. The X.25 API on Sun and IBM AIX is SysV Streams
based, and you interact with the X.25 device with different system
As you know, twisted works great for sockets, and it _seems_ like
it would be simple enough to do. But Python does not quite support
the interface necessary to create real X.25 connections. With
some simple C extensions you can expose the API. The main problem
is that the format of a X.25 address is quite different from a
Once you get a file descriptor, it can be integrated with the Reactor.
My only problems with Twisted were trying to make the X.25 API
as full-featured as a TCP/IP connection. With some effort, I'm
sure it can be done.
I've successfully used X.25 against the Linux loopback device,
and on the real hardware under Solaris and AIX. I've done all three
with Python. If you want any other help with this, please contact
me off list.
ecn at metaslash.com
On Tue, Sep 17, 2002 at 02:20:42PM -0400, Eric C. Newton wrote:
> Twisted does prevent it, but there is no built-in support. This is
> not suprising since X.25 APIs are different on nearly every platform.
> I tried re-patching my changes back in recently and had little
> success. I may come back to this in a couple of months.
> On Tue, Sep 17, 2002 at 06:51:26PM +0200, Sergio Lobo wrote:
> > Hello,
> > I just found the article below on the web. Would anybody please let me know if
> > Twisted-Python provides any support for the X.25 protocol?
> > Kind regards
> > Sergio Lobo
> > [Twisted-Python] adding a new connection type
> > Eric C. Newton twisted-python at twistedmatrix.com
> > Sun, 26 May 2002 22:30:45 -0400
> > * Previous message: [Twisted-Python] adding a new connection type
> > * Next message: [Twisted-Python] adding a new connection type
> > * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> > Itamar Shtull-Trauring <twisted at itamarst.org> writes:
> > > Well, first of all, what does it run over?
> > X.25. Be afraid.
> > > And in what languages is it written?
> > It runs in Python of course.
> > > And, what is it good for?
> > X.25 is an international standard for wide area communications widely
> > adopted by companies in the 1970's and early 80's using
> > packet-oriented, synchronous serial communications devices.
> > I'm using Linux, and playing with 2-year-old patches for version 2.4
> > of the kernel which enables me to play with the API over a loopback
> > device.
> > Sometimes it even works.
> > _______________________________________________
> > Twisted-Python mailing list
> > Twisted-Python at twistedmatrix.com
> > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
More information about the Twisted-Python