Prasanna Venkatesh

Greenhorn
+ Follow
since Dec 01, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Prasanna Venkatesh

Hi All ,

I am trying to implement Telnet client using Apache common telnet library .

I am trying to connect to telnet server and try to execute some commands over there server ...
Actually I am able to send the user name and when I am sending password, though I send carriage return and new line character at the end of password ,I am getting timeout error from the server . Any suggestion on this ??



This is the code I use to send user name and password . Where

out - outputstream to telnetserver
UserCommand - Password

Thanks and Regards
Prasanna
16 years ago
Hi Ulf ,
Thanks for your suggestion .. Ya we are trying to build application which supports both telnet and SSH ...
Hi Rob ...
Thanks for your reply , I do managed to find out apache thing for Telnet ..but i am not able to find open source libraries ( free to use in my commerical application ) ..thanks for the link ...

Prasanna
Ya interesting problem , It has to be 32 , guess this may be a bug in JVM implementation.
16 years ago
Hi Arjun ,
Ya , It should be possbile to create user defined Immutable classes as String . Please let me know what makes you to think , that it is not possible to create ?? ..We will analyze your thought process

Prasanna
16 years ago
Hi
I do agree the previous comment . But there may be impact if your doing build process conituously .

Two place where I encountered problems

1) Enum - since from 1.5 Enum is keyword , it may through error if it is used as variable name.
2) Generics - The compiler may give warning about type safty .

Though these can be avoided by using proper parameters to JVM , I though of listing out ..Request your comments..

Prasanna
16 years ago
Hey All ,
I am looking out for Opensouce SSH and Telnet Api's to implement SSH and Telnet client for our project . Any help will be appreciated .

Thanks and Regards
Prasanna
The Ideal solution will be using a StringBuffer to concatenate those string and return , because by concatenating String we end up in creating lot of new objects ,since string are immutable . Hope this helps
16 years ago
Hi Guru ,
If your not overriding the equals method , it will just bit compare the object referecenes. So in the first case obviuosly it wont be equal , since they are reffering different object .
If you add some thing like this
obj1 obc= obb;
then always
if ( obb.equals(obc) )
{
System.out.println("obb==obc");
}
else
{
System.out.println("obb!=obc");
}

will return true .since they are reffering same objects. Hope this helps
Hi Safia ..
It means that fucntion will return a instance ( means object) of the specified class or some classes in the same hirarchy (MaleFP)..

Regards
Prasanna
18 years ago
Hi Safian Kishna ,

For me ur input is not clear ...

.

The signature may have significance with the logic used to write the program .Unless until it have document .I will be hard to decode it..

But I can answer ur question by explaning Factory Pattern ..

See we can use the to get an instance of MaleFP class , In more generic term to get instance of PersonFP class .
This is possible because of inheritance .
According to the logic of this program ...

when this line get executed

-Itz constructor get callled
As a result it will displace then supplied..
I hope this helps u.
18 years ago