telnetd-devel Mailing List for Java Telnet daemon
Brought to you by:
wimpi
You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Singhal, A. (Ankit) <asi...@lu...> - 2004-06-19 04:52:44
|
Hi Dieter
I am a new user of your TelnetD software.I want to embed this to my
software, but I am facing some problems in regard to that.
The problem is being faced while implementing the Shell Class.
I want to implement my own shell class (MyShell.java).In this shell class I
am connecting to some other Software component.
So while implementing that class I have to use available() as a call instead
of read() because i don'nt want to block my program on that.
The problem i am facing is that when the user closes the Telnet client
abrubtly , my Telnet Daemon program doesn't end the conectio thread while if
i am using your DummyShell then this is taken care by you.
I further investigated the code , and i found that you have use EOF
Exception to check this condition. So I put my available() code in try block
and used the same EOF Exception condition to catch it. But it is not coming
in catch block when I forcefully close the telnet client .
Can you please let me know at waht pint am doing the error.
Please find below the snippet of code what i am writing.
try{
while(iss.available()>0) {
System.out.println("Inside avilable");
i=iss.read();
if (i == -1 || i == -2)
{
TelnetD.debuglog.write("Input(Code):" + i);
flag=false;
break;
}
if(channel.isEOF())
{
flag=false;
System.out.println("Disconnected");
break;
}
fout.write(i); //Key Stroke Logging
}
}catch(EOFException)
{
if (m_Connection.isActive()) {
System.out.println("Connection broken forcefully");
TelnetD.debuglog.write("Registering broken connection " +
m_Connection.toString() + " active=" + m_Connection.isActive());
m_ConnectionData.getManager().registerBrokenConnection(m_Connection);
}
Thanks and Regards
Ankit
|
|
From: Shawn B. <sh...@bo...> - 2002-04-17 14:07:24
|
Oops. Just realized I checked in an old version yesterday. The latest version (from last month) is now checked in. Shawn Boyce wrote: > Don't get too excited. I have done anything with the commands received > by the > telnet daemon. Just a basic framework. > > Peter Donald wrote: > >> On Wed, 17 Apr 2002 13:39, Shawn Boyce wrote: >> >>> I created a new scratchpad module in CVS to hold >>> the prototype Avalon-based telnet server I created last month. >>> >> >> wohoo. Off to tak a look. >> > > > > _______________________________________________ > Telnetd-devel mailing list > Tel...@li... > https://lists.sourceforge.net/lists/listinfo/telnetd-devel > |
|
From: Shawn B. <sh...@bo...> - 2002-04-17 12:53:14
|
Don't get too excited. I have done anything with the commands received by the telnet daemon. Just a basic framework. Peter Donald wrote: >On Wed, 17 Apr 2002 13:39, Shawn Boyce wrote: > >>I created a new scratchpad module in CVS to hold >>the prototype Avalon-based telnet server I created last month. >> > >wohoo. Off to tak a look. > |
|
From: Peter D. <pe...@ap...> - 2002-04-17 08:44:09
|
On Wed, 17 Apr 2002 13:39, Shawn Boyce wrote: > I created a new scratchpad module in CVS to hold > the prototype Avalon-based telnet server I created last month. wohoo. Off to tak a look. --=20 Cheers, Peter Donald |
|
From: Shawn B. <sh...@bo...> - 2002-04-17 02:45:29
|
I created a new scratchpad module in CVS to hold the prototype Avalon-based telnet server I created last month. -Shawn |