|
Re: Looking for a telnetlib/select package for use in Jython.: msg#00034lang.jython.user
Brian - Thanks for the info. I'm pretty seasoned in Java, but Python (esp Jython) is new to me. So as yet, I'm not really qualified to do any code maintenance. I may be interested in the near future though. I downloaded Select.java. Select as it is right now, does not seem to get along with telnetlib Telnet.read_util expects 1 return value where Select.select is returning 3. Telnet.expect also encounters an error with Select. I didn't dig too deeply into the cause of the problems. If I pursue it further, I will let you know what I find. ----- Original Message ----- From: "brian zimmer" <bzimmer@xxxxxxxxxx> To: "Ype Kingma" <ykingma@xxxxxxxxx>; "Ryan Eberly" <ryane@xxxxxxxxxxxxxxxx>; <jython-users@xxxxxxxxxxxxxxxxxxxxx> Sent: Thursday, February 13, 2003 2:59 PM Subject: RE: [Jython-users] Looking for a telnetlib/select package for use in Jython. > > You can look at > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/zxpy/zxSocket/ for an alpha > version of the select module for Jython. It runs only on 1.4 and there > we're some bugs in the early versions of the JDK on Windows so make sure you > get the latest version. I've not tested in very complicated situations and > I haven't looked at it recently. I was very enthusiastic about it for > awhile but then lost interest in it. If you want to work on it let me know > I can give you access to the code. I'm still interested in seeing it > implemented but I've been very busy lately. > > thanks, > > brian > > > > -----Original Message----- > > From: jython-users-admin@xxxxxxxxxxxxxxxxxxxxx > > [mailto:jython-users-admin@xxxxxxxxxxxxxxxxxxxxx]On Behalf Of Ype Kingma > > Sent: Thursday, February 13, 2003 12:37 PM > > To: Ryan Eberly; jython-users@xxxxxxxxxxxxxxxxxxxxx > > Subject: Re: [Jython-users] Looking for a telnetlib/select package for > > use in Jython. > > > > > > On Thursday 13 February 2003 14:37, Ryan Eberly wrote: > > > > <snip java telnet stuff> > > > > > > > > Yes, I have been pursuing this as a solution. However, what I > > really want > > > is to script telnet in pure python. So the resulting script > > can either be > > > run imbedded in java with Jython, or directly in Python. The underlying > > > Telnet object could be a java object in Jython, but the method signature > > > would have to match the pure Python version of Telnet. > > > > > > I looked at changing the method signatures on these Java Telnet > > packages to > > > match the Python telnetlib package. But some of the python > > Telnet methods > > > return tuples. Is there a way to have a java method return a value that > > > Jython will treat as a tuple? > > > > Two ways: > > - use a wrapper method in python, > > - return an org.core.python.PyTuple (ie a tuple in Jython) from a java > > wrapper method. See the Jython Java API docs on how to do this. > > > > > The other option might be to rewrite the telnetlib package replace where > > > select is used. > > > > > > Does anyone know if someone has already done this? > > > > I don't know. I vaguely recall some talk about implementing the C > > like python > > socket using the new async i/o in Java 1.4. Such a socket might be useful. > > > > Have fun, > > Ype > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > > are you planning your Web Server Security? Click here to get a FREE > > Thawte SSL guide and find the answers to all your SSL security issues. > > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > > _______________________________________________ > > Jython-users mailing list > > Jython-users@xxxxxxxxxxxxxxxxxxxxx > > https://lists.sourceforge.net/lists/listinfo/jython-users > > ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Overloading !=, A Bewes |
|---|---|
| Next by Date: | RE: Looking for a telnetlib/select package for use in Jython., brian zimmer |
| Previous by Thread: | RE: Looking for a telnetlib/select package for use in Jython., brian zimmer |
| Next by Thread: | RE: Looking for a telnetlib/select package for use in Jython., brian zimmer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |