Telnet Server -- Read in strings

I have written a java program that acts as a Telnet server.
The server asks the client a question with the following code:
public final class Server extends Thread{
     Server(){
     public static void main(String args[]) throws Exception{
                new Server();
                Server.serverSocket = new ServerSocket(12345);
                Socket connection = Server.serverSocket.accept();
                connection.setTcpNoDelay(true);
          connection.setSoLinger(false,0);
                PrintStream pout = new PrintStream(connection.getOutputStream());
                pout.println("What is your name?");
}Now I want the server to read in the answer the client writes (in this case, the client would write his name, and the server has to capture this name).
I use putty to connect to my telnet server.
Could anyone give me a clue on how to do this?

I have written a java program that acts as a Telnet server.Not unless it implements the dozens of Telnet RFCs, which this one doesn't even begin to do.
          connection.setSoLinger(false,0);Don't do that.
PrintStream pout = new PrintStream(connection.getOutputStream());
pout.println("What is your name?");So here you got the OutputStream from the socket and wrote to it.
Now I want the server to read in the answer the client writes (in this case, the client would write his name, and the server has to capture this name).So you want to get the input stream from the socket and read from it.

Similar Messages

  • Telnet server

    hello
    i am doing a telnet server in java, and i need to know how to send the escape keys so that when the user enters the password remotely it is hidden.
    can anybody help me?

    A telnet server has nothing to do with what happens at the client end. The client app does that.
    Now a telnet server could just not echo the characters - but that doesn't stop the client from doing so.
    Or a telnet server could send a different char(s) back for each character. On a CUI screen with curses the correct sequence would do something. But that does require that the client supports a curses configuration.
    As for sending "escape keys" sockets send bytes, not keys, chars, strings, nor anything else. So if you figure out the bytes for what you want to send then that is what you send.
    By the way jakarta commons under 'net' has a telnet component which probably means a server and client component.

  • Error connection to Telnet Server from a Java client GUI

    Hi,
    I have developed a GUI in Swing to get the server ip address, user is and password and then connect to the telnet server. When I enter the above details and hit the "Connect" button, The application hangs. I am ot sure, if the application conencts to the server and then hangs or hanging for some other reason. I have given some System.out.printl statements to keep track.
    Below is my code. I would appreciate any help in this regards.
    Thanks in advance.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    public class Login
    private JFrame frm;
    private JTextField serField;
    private JTextField idField;
    private JPasswordField pwdField;
    public static void main(String[] str)
    new Login();
    public Login()
    frm = new JFrame("Login Screen");
         frm.setSize(500,200);
         frm.addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent we)
              System.exit(0);
         frm.getContentPane().setLayout(new FlowLayout());
         addLoginFields();
         frm.setVisible(true);
    private void addLoginFields()
    JPanel idPanel1 = new JPanel();
    JPanel idPanel2 = new JPanel();
    JPanel serverPanel1 = new JPanel();
    JPanel serverPanel2 = new JPanel();
    JPanel pwdPanel1 = new JPanel();
    JPanel pwdPanel2 = new JPanel();
    JPanel connectPanel = new JPanel();
    JPanel cancelPanel = new JPanel();
    JPanel labelPanel = new JPanel(new GridLayout(3,1));
    JPanel fieldPanel = new JPanel(new GridLayout(3,1));
    JPanel buttonPanel = new JPanel();
    JButton connectButton = new JButton("Connect");
    JButton cancelButton = new JButton("Cancel");
    serverPanel1.add(new JLabel("Server "));
    serField = new JTextField("rhosp035",10);
    serverPanel2.setLayout(new FlowLayout(FlowLayout.LEFT));
    serverPanel2.add(serField);
    idPanel1.add(new JLabel("User ID"));
    idField = new JTextField(30);
    idPanel2.add(idField);
    pwdPanel1.add(new JLabel("Password"));
    pwdPanel2.setLayout(new FlowLayout(FlowLayout.LEFT));
    pwdField = new JPasswordField(10);
    pwdPanel2.add(pwdField);
    labelPanel.add(serverPanel1);
    labelPanel.add(idPanel1);
    labelPanel.add(pwdPanel1);
    fieldPanel.add(serverPanel2);
    fieldPanel.add(idPanel2);
    fieldPanel.add(pwdPanel2);
    connectPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));
    connectPanel.add(connectButton);
    cancelPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
    cancelPanel.add(cancelButton);
    buttonPanel.setSize(500,50);
    buttonPanel.setLayout(new FlowLayout(FlowLayout.CENTER));
    buttonPanel.add(connectPanel);
    buttonPanel.add(cancelPanel);
    JPanel infoPanel = new JPanel();
    infoPanel.setSize(500,100);
    infoPanel.add(labelPanel);
    infoPanel.add(fieldPanel);
    frm.getContentPane().add(infoPanel);
    frm.getContentPane().add(buttonPanel);
    connectButton.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent ae)
    connectToUnix();
    cancelButton.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent ae)
    System.out.println("Connection to Unix cancelled");
    System.exit(0);
    private void connectToUnix()
    System.out.println("Connection to Unix to be added");
    Socket clientSocket = null;
    PrintWriter writer = null;
    BufferedReader reader =null;
    int code = 0;
    try{
         clientSocket = new Socket(InetAddress.getByName(serField.getText()),23);
    reader = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
    writer = new PrintWriter(new OutputStreamWriter(clientSocket.getOutputStream()));
    while((code = reader.read()) != 243)
    System.out.println("Server Response : " + code);
    switch(code)
    case 37:
    //System.out.println("user id : " + idField.getText());
         writer.print(idField.getText());
    break;
    case 24:
              //System.out.println("password : " + pwdField.getText());
    writer.print(pwdField.getText());
              System.out.println("code : " + code);
    break;
         case 251:
              System.out.println("********* Login required again code : " + code);
    break;
    default:
    System.out.println("--------------Default option code : " + code);
    break;
    writer.print(132);
    catch(IOException ie)
    System.out.println(ie.toString());
    catch(Exception e)
         System.out.println("Exception : " + e.toString());
    finally
         try{
    reader.close();
    clientSocket.close();
         catch(IOException ie)
    System.out.println("While closing : " + ie.toString());

    Also,
    I would like to know I to check if the user id and password are valid.
    How to disconnect from the client GUI?
    Thanks.

  • The MAC signature found in the HTTP request '***' is not the same as any computed signature. Server used following string to sign: 'POST

    Hi,
    When trying with Postman sending a REST call to Azure Storage Queues I get:
    The MAC signature found in the HTTP request '***' is not the same as any computed signature. Server used following string to sign: 'POST.
    The code I have for creating the Authorization Header:
    var accountName = "my_account";
    string key = ConfigurationManager.AppSettings["my_access_key"];
    DateTime dt = DateTime.Now;
    string formattedDate = String.Format("{0:r}", dt);
    var canonicalizedHeaders = "x-ms-date:" + formattedDate + "\n" + "x-ms-version:2009-09-19" + "\n" ;
    var canonicalizedResource = "/my_account/myqueue/messages";
    var stringToSign = String.Format("POST,\n\n\n\n\n\n\n\n\n\n\n{0}{1}", canonicalizedHeaders, canonicalizedResource);
    stringToSign = HttpUtility.UrlEncode(stringToSign);
    HMACSHA256 hmac = new HMACSHA256(Encoding.UTF8.GetBytes(key));
    var signature = Convert.ToBase64String(hmac.ComputeHash(Encoding.UTF8.GetBytes(stringToSign)));
    var authorizationHeader = String.Format(CultureInfo.InvariantCulture, "SharedKey {0}:{1}", accountName, signature);
    return authorizationHeader;
    Anyone any idea what I'm missing/doing wrong?
    Additional question: do i have to create for every message I want to send a new Authorization header? Or is there an option (as with Service Bus Topics) to create a header that can be used for a certain timeframe?
    Thanks.

    One issue is with this line of code:
    HMACSHA256 hmac = new HMACSHA256(Encoding.UTF8.GetBytes(key));
    Please use the following:
    HMACSHA256 hmac = new HMACSHA256(Convert.FromBase64String(key));
    and that should take care of the problem.
    Regarding your question, "do i have to create for every message I want to send a new Authorization header? Or is there an option (as with Service Bus Topics) to create a header that can be used for a certain timeframe?"
    With your current approach, the answer is yes. What you can do is create a Shared Access Signature on the queue which will be valid for certain duration and then use that for posting messages to a queue using simple HttpWebRequest/HttpWebResponse.
    Hope this helps.

  • How do I connect multiple telnet clients to a telnet server in LabVIEW?

    Good afternoon,
    I'm writing a telnet server in LabView 6.1 that needs to handle multiple clients. To do this, I modified the "viserver\runvi.llb" example to use the telnet VI's from the Internet Toolkit instead of the TCP VI's. Then I changed the Open VI Reference to point to my telnet handler. Right now my handler just echoes the characters received from the client.
    My software works ok for the first connection. After the server accepts two or more connections, characters typed in one client get echoed to all clients. In addition, only one client will accept characters at a time. The client accepting input changes randomly every few seconds as characters are entered.
    Has anyon
    e gotten the telnet VI's to run in parallel? Not sure if they are thread-safe or not. If you have some experience with this, I have attached my llb if you think you can help.
    Thanks!
    Chris Norris
    Carrier Access Corp.
    [email protected]
    (303) 218-5826
    Attachments:
    CAC_Telnet_Server.llb ‏92 KB

    I don't think there's a problem with the TCP/connection portion of things. My feeling is that the problem is lurking somewhere in the timing of the application, or in the way LabVIEW task scheduling/multitasking is working compared to the way you expect it to work.
    For instance, I'm wondering why you stuck with 25 seconds (25000 ms) as the timeout value for the Telnet Read in Telnet Handler.vi. I assume you're expecting LabVIEW to quickly "sleep" that while loop and move on to check on the while loops of any other Telnet Handler.vi instances that might have been spawned as a result of connection requests from other remote clients.
    Instead, it seems to me (on my system, anyway, with three simultaneous connections active) that LabVIEW is not cyc
    ling through the other Telnet Handler.vi instances as you expect, but is only getting to them to read a byte at a time each time the main loop iterates in response to a byte appearing from the first of the three remote clients.
    If you change the Telnet Read timeout to 50 ms instead, the behavior is closer to what you might expect, but still not perfect.
    Because timing/threading/scheduling is a complicated subject in LabVIEW, I'm going to give LabVIEW the benefit of the doubt and assume it's operating as designed. Maybe someone else can provide more insight into what's happening in this particular case, and whether reentrancy or something else is affecting things.
    One option I would consider if I were in your shoes: program a simpler version of things that mimics Date Server.vi and cycles through a queue of connections to service them without relying on spawning new reentrant instances of a handler VI.
    I realize that your version of things (along with the reentrancy example
    that ships with LabVIEW) is expressly intended to handle this daemon-style situation, but simpler may be better for the purposes of debugging and development ease.
    My two cents,
    John Lum
    National Instruments

  • Reading a String with dynamic format.

    Hello,
    I'm learning Java and I'm relatively new to the scene. I decided to make a small free utility with the hope that it will help somebody. The utility is a Game Server (Call of Duty 4) connector that will help Administrators to connect to the server and execute commands without the need of running the game.
    I have made a progress so far by searching these (very useful) forums but I came across a point that I can't by pass.
    The only way to learn "Who Is" from the server is the rcon command "status". Using this command the server returns you the current map and the players playing with all their information. This is the part of the code that I need help at:
    public static void StatusReader(String StatusInput) throws IOException {
                     ArrayList line = new ArrayList();
                        BufferedReader br = new BufferedReader(new StringReader(StatusInput));
                       String s = null;
                       int l=0;
                  dokimi = StatusInput.split("\n");
             //    for(int j=0;j<9;j++){
              //        int i=0;
              //        dokimi2 = new String[0][0];
              //        dokimi2[0][0] = dokimi[0];
              //        System.out.println(dokimi2[0][0]);
                  System.arraycopy(dokimi, 0, dokimi2, 0, 1);
                for(int i=0;i<(dokimi.length/9);i++){
                        for(int j=0;j<9;j++){    
                       dokimi2 = new String[i][j];
                       System.arraycopy(dokimi, 0, dokimi2[i][j], 0, 1);
                       System.out.println(dokimi2[i][j]);
             //     while ((s = br.readLine()) != null)
                  //     line.add(s);
                   //  StatusOutput = new String[line.size()][];
                  //     for (int i = 0; i < StatusOutput.length; i++) {
                  //               s = (String) line.get(i);
                       //          StringTokenizer st = new StringTokenizer(s, "");
                  //               String[] arr = new String[st.countTokens()];
    //                       for (int j = 0; j < arr.length; j++)
      //                                arr[j] = st.nextToken();
            //               StatusOutput[i] = arr;
               //          for (int i = 0; i < StatusOutput.length; i++) {
          //                    for (int j = 0; j < StatusOutput.length; j++)
    //                         System.out.print(StatusOutput[i][j] + " ");
         //                    System.out.println();
    }I've been messing a lot with the code. +_What I want to do is to read this string that the server is sending,split it, and then place it in a 2D Array that I will attach on a table._+ So far I've made the StringTokenizer method to be able to , kind of, sort that String and put it in an array. However I usually get outofbounds errors because not always the lines have the same length. This is an example of the format that the server sends after executing the "status" command:map: mp_crossfire
    num score ping guid name lastmsg address qport rate
    2 1 84 b5e9d93e88670c6f811a033a7f925117 Davis^7 0 84.185.183.210:-1482 21249 25000
    4 15 100 e0d7c91fa7ba9549444ccab3a0e3de62 =HPX= Anogianos^7 0 91.140.25.93:28960 -10752 25000
    5 5 68 5d68298d9e16d7491d5700e6e236214f AsChIkUtAbU^7 50 84.60.215.190:17502 26401 25000
    6 115 44 cc503f50d990e27eeb990826c2cf1193 Donnergroll^7 50 91.64.153.240:28960 10086 25000
    7 141 79 cbd095d37abdc728671e2923296aa9cf souL^7 50 87.78.179.242:-10509 8432 25000
    8 116 83 4d0d1a067179516e209ef89cb0a79755 suodeth^7 0 84.250.214.156:27185 -29970 25000
    9 11 117 fc3c6777b3d9bf99df1e55b321b75e9e shpalman^7 50 62.101.126.209:-17420 -25455 25000
    10 5 82 fb2f20a9f46a212b896baf9ab4ea3eb0 =HPX=Gringo^7 50 213.5.170.94:-619 20175 25000
    11 95 68 d3d542b17ab56d9fbf107da39f245269 aga^7 50 78.2.42.253:28960 22173 25000
    12 10 100 8e6d08aec08591fb319081d0b40dedd2 madmax^7 0 79.166.47.145:2960 -7933 25000
    13 110 77 4fc4d0e24faa634dbce5c4bb4131bc4a Thunderstorm^7 50 87.78.113.218:28960 4512 25000
    14 55 67 f789227fcb95853b857115e68741df8d Robbino^7 0 89.217.12.113:28960 -192 25000
    15 118 85 b7be8ce58324d0f25c45f5cb372b30a1 Paranoid^7 50 78.1.26.32:28960 27294 25000
    16 11 90 38b59f3bbd3aa0ce3c95fccb26858931 $Hockz^7 50 87.181.101.96:-2984 24219 25000
    19 16 45 720f2abf81189890851d3e41fcbe4e21 ERASER^7 50 83.236.63.150:-32135 24704 25000
    20 145 37 a78f43bc3d3705743a190de45d37fc6a KintaKunte^7 50 88.68.237.239:28960 23539 25000
    21 60 49 a96d6a55049d11c5d7cd1c35c4d497c3 #sD|-HaZarD-^7 50 87.78.179.242:-10509 8432 25000
    8 116 83 4d0d1a067179516e209ef89cb0a79755 suodeth^7 0 84.250.214.156:27185 -29970 25000
    9 11 117 fc3c6777b3d9bf99df1e55b321b75e9e shpalman^7 50 62.101.126.209:-17420 -25455 25000
    10 5 82 fb2f20a9f46a212b896baf9ab4ea3eb0 =HPX=Gringo^7 50 213.5.170.94:-619 20175 25000
    11 95 68 d3d542b17ab56d9fbf107da39f245269 aga^7 50 78.2.42.253:28960 22173 25000
    12 10 100 8e6d08aec08591fb319081d0b40dedd2 madmax^7 0 79.166.47.145:2 0 91.3.110.248:-1185 6274 25000
    23 116 109 bfffdf9ff93425d284796532ef214bd0 ze_meedles^7 50 85.243.221.116:28960 24936 25000
    95853b857115e68741df8d Robbino^7 0 89.217.12.113:28960 -192 25000
    15 118 85 b7be8ce58324d0f25c45f5cb372b30a1 Paranoid^7 50 78.1.26.32:28960 27294 25000
    16 11 90 38b59f3bbd3aa0ce3c95fccb26858931 $Hockz^7 50 87.181.101.96:-2984 24219 25000
    19 16 45 720f2abf81189890851d3e41fcbe4e21 ERASER^7 50 83.236.63.150:-32135 24704 25000
    20 145 37 a78f43bc3d3705743a190de45d37fc6a KintaKunte^7 50 88.68.237.239:28960 23539 25000
    21 60 49 a96d6a55049d11c5d7cd1c35c4d497c3 #sD|-HaZarD-^7 50 87.78.179.242:-10509 8432 25000
    8 116 83 4d0d1a067179516e209ef89cb0a79755 suodeth^7 0 84.250.214.156:27185 -29970 25000
    9 11 117 fc3c6777b3d9bf99df1e55b321b75e9e shpalman^7 50 62.101.126.209:-17420 -25455 25000
    10 5 82 fb2f20a9f46a212b896baf9ab4ea3eb0 =HPX=Gringo^7 50 213.5.170.94:-619 20175 25000
    11 95 68 d3d542b17ab56d9fbf107da39f245269 aga^7 50 78.2.42.253:28960 22173 25000
    12 10 100 8e6d08aec08591fb319081d0b40dedd2 madmax^7 0 79.166.47.145:2As you can see the problem is that the server sends some information twice *but* it splits them with a blank line. In addition some nicknames contain spaces something that makes me wonder how I can set the nicknames to belong to the same position of the array. Something that i know is that all nicknames end with "^7" which is the in-game colour definition. Any help would be much appreciated. Thanks in advance.
    Edited by: m33ts4k0z on Dec 21, 2007 11:36 AM
    Edited by: m33ts4k0z on Dec 21, 2007 11:43 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    m33ts4k0z wrote:
    Hello DeltaGeek and thanks for your answer.
    I have 2 questions for you since you mentioned what the real problem is. The first question is how can I join 2 cells that will contain the 2 parts of the nickname in case of a space? Can I just check if the cell number x,y contains "^7" and then just copy that cell the x,y-1? Ive tried that but then I also have to move the rest of the columns to y-1 as well. Any idea how to do that?
    I was assuming you'd be processing the split string anyways, and not just tossing it into your 2-d structure. If you want to use .split(), yes. you would need to merge those cells into the original name. System.arrayCopy() would likely be useful for doing most of the heavy lifting.
    Another option you have is to tokenize the string using Scanner. That would let you pull each column out of the string individually. You'll need to populate the array manually (instead of just using what .split() gives you), but allows you to change the token delimiter between pulls.
    As for the junk lines, I can just check if they don't much the tokens number and then just not add them to the array I suppose, am I right or....?That's certainly one option. I don't know what's being given back to you, it may be important.

  • Java.io.Reader to String conversion

    I am working on a SOAP project with Jaxm and I retreive the result as a Reader, but I need to convert it into a String.
    I did the following code but it is incredibely slow with a big reply (280kb) as I retrieve each character one after each other.
    Does a faster solution exist ?
    // Soap call
    SOAPMessage reply = m_conn.call(message, endpoint);
    java.util.Iterator it = reply.getAttachments();
    // First attachment returned by the server hold my result
    AttachmentPart resultAttachment = (AttachmentPart) it.next();
    StreamSource resultStreamSource = (StreamSource) resultAttachment.getContent();
    // Converts java.io.Reader to String
    java.io.Reader resultReader = resultStreamSource.getReader();
    String result = "";
    int charValue = 0;
    while ((charValue = resultReader.read()) != -1) {
       result = result + (char) charValue;

    use a BufferedReader and create a large char[] (64k or something)
    then use
    char[] cbuf = new char[65536];
    StringBuffer stringbuf = new StringBuffer();
    int read_this_time = 0;
    while (read_this_time != -1) {
    read_this_time = BufferedReader.read(cbuf,0,65536);
    stringbuf.append(cbuf,0,read_this_time);
    }//end while
    StringBuffer is faster than String concatenation because when java concatenates strings it creates a new object every time. StringBuffer just stores and appends the string without creating new objects.

  • No telnet server in Windows 10 tech preview

    When I went to enable a telnet server in Windows 10 preview by going to "Turn Windows features on or off," I noticed that there is no option for Telnet Server like there is in Windows 8.1. Running tlntadmn on the command line produces nothing,
    as does searching for it in on my drive. Is Telnet Server just not available for this OS yet?
    KeepMyIdentities, Your Key to Password Security. Available now on the Windows Store: http://apps.microsoft.com/webpdp/en-US/app/keepmyidentities/61a9f340-97ac-4666-beab-39f9246cb6fa

    I just want to mention that by removing Telnet server Microsoft has just broken, from our organization alone, close to a thousand automated tests for verifying our drivers
    work with the OS.  I am sure this is being repeated at hundreds of businesses around the world.  Additionally, there are thousands of system administrators who have automated scripts using Telnet for managing their PCs.   
    Offering Remote Desktop as an alternative is beyond ridiculous.  At the very least, Microsoft should offer SSH as an alternative.  While
    this requires a lot of rework, at least it is an option.  Personally, I am tired of having to find, download, and install 3rd party software in order to do my job. 

  • Telnet Client fails to detect Telnet Server reboot

    Hello All,
    I have written a telnet client that establishes a telnet session with the help of org.apache.commons.net.telnet.TelnetClient to the server and it monitors a particular file. It reads the latest contents written to that file using the tail -F command . The problem I am facing is that the blocking call inputStream.read(int) does not throw an exception even when the telnet server machine reboots, but When network cable is unplugged we are getting an IOException. Due to this behavior my program fails to receive the updates from the file after a machine reboot. Even the telnetClientObject.isConnected() returns true while the machine is rebooting.
    Can you please suggest ways to rectify this issue?
    Thanks,
    Naveen

    Set a socket read timeout.

  • Telnet Server or Command Line Applications

    Hi,
    Bit of a random question to ask seeing as no one has asked it before...but...
    Is there a TELNET SERVER or command line application around for the N series phones? I'm keen on doing some console work with my N82 to explore the symbian interface more.
    Any ideas?
    Owned: Nokia 3510i, Nokia 3120, Nokia 6230i, Nokia 6233, Nokia N73, Nokia N82.
    Current: Nokia N900!

    24-Mar-2008 02:25 PM
    psychomania wrote:
    This has been posted a few times recently for other models and I think someone posted a link to a useful app that works.
    Are you sure of this, Psycho?
    I've seen links to telnet and ssh CLIENTS for S60 here, not for servers.
    Message Edited by grschinon on 24-Mar-2008 02:38 PM
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • Telnet server for SAPConsole

    Hi,
    We are implementing SAPConsole and we are evaluating some telnet server software.
    I would like to know the advantages or disadvantages of using Georgiasoftware or seattle labs telnet software .
    Has there anyone who can share their experience regarding these two telnet servers
    Thanks for your help.
    Raju

    we also are using georgia softworks.
    support was great setting it up. Plus, they have a replacement for the terminal engine that is FANTASTIC!
    the terminal engine (additional $) allows you to set up auto-tab and auto enter, and do other things. We have been extremely happy with it, and as the other person said, it is one thing we never worry about. it just runs.
    I have not had any experience with SL.

  • Telnet server sends IAC(255) DONT(254) 37(Authentication)

    Hi,
    I am trying to implement a Telnet client in Java with GUI front end. I am trying to pass the userid and password from the GUI. When I checked for the command sent by the Server, I find that the server sends
    255 254 37. Even if I send IAC WILL 37, the server is not accepting. How do I pass the userid and password from GUI to Telnet Server? Also, I need to notify in the GUI, if the userid and password combination is not correct and many no. of attempts with wrong password was done(so that the password will expire in our server). Any help is appreciated.
    Thanks in advance.

    I have examined that code.
    I will explain the condtion I am facing. The server host to which I am trying to telnet is allowing only a certain no. of wrong password entry. After the limit, it gives message to contact the system administrator to reset the password. So, the user has to contact the sys. admin and reset his/her password to the default ont. Then, using the default password, the user has to login and then enter the new password which will be prompted immediately. Re-confirmation to new password prompt is also provided. I have to provide this facility in my GUI, so that when then password is reset, I have to pop another screen to login using the default password and set the new password. I wondering how to interpret the server's message to re-enter the login information or to contact the server admin. Any help is appreciated.
    Thanks in advance.

  • Reading Each String From a text File

    Hello everyone...,
    I've a doubt in File...cos am not aware of File.....Could anyone
    plz tell me how do i read each String from a text file and store those Strings in each File...For example if a file contains "Java Tchnology forums, File handling in Java"...
    The output should be like this... Each file should contains each String....i.e..., Java-File1,Technology-File2...and so on....Plz anyone help me

    The Java� Tutorials > Essential Classes: Basic I/O

  • Read AVI string in matlab

    I have saved string data in an AVI file with ''IMAQ AVI Write Frame". I have checked the saved data in Labview and when I read this AVI file with "AVI read data" it is possible to read the sting.
    However, I want to read the data into Matlab and cannot find a way to extract the string data from the AVI file. AVI data can be read with 'VideoReader', but this doesn't read the string data. Does anybody knows a method to read the string data into matlab?
    If anyone can help me it would be really great!

    Dear researchIC,
    I do not know what are the possibilities in Matlab to deal with AVI file.
    However, what I can tell you is that the data which is included in the file with the "IMAQ AVI Write Frame" is not encrypted or anything. It is simply included in a standard data stream of the AVI file. It is then potentialy possible to read back the data in a third-party application.
    The best advice I can give you is then to inform you about the AVI file format and see how you can retrieve the information contained in a stream.
    Cédric | NI Belgium

  • Reading a string.

    Hi experts.
    how can i read a string at a specified character.
    For ex: i have  astring like this.
    str = 'YUGFHKGHKHDKHHHGJK8HJBFXJKKFKJFJKFHJH'.
    so i have to read n.of charecters from starting of the string to charecter 8.
    Not with search option.
    Regards

    Hi,
    Thank you all.
    I know all these but in my program it is not workig..Don't know why...
    either split or search.Pls see the below sample code.
    DATA  : i_files like spflist occurs 0 with header line,
    DATA: w_files LIKE LINE OF  i_files.
    data: str1(200) type c,
          str2(200) type c.
    LOOP AT i_files INTO w_files.
        str = w_files-line.
        lin1 = STRLEN( str ).
        lin1 = lin1 - 1.(this is because there is one more '#' at the end of string)
        str = str+0(lin1).
        lin2 = STRLEN( str ).
        search str for '#'.
        split str at '#' into str1 atr2.    
        w_files-line = str.
        MODIFY i_files FROM w_files.
        CLEAR lin1.
      ENDLOOP.
    Suppose here str contains:
    str = '00000003379#212RegVNegNoticeHLA.aspx.xml'.
    So i am getting sy-subrc = 4 after search.
    and after split there are no values in str2..and str1 contains full string..
    Can any body tell me what may be the problem..?
    Regards

Maybe you are looking for