1 16 package org.apache.commons.net.bsd; 17 18 import java.io.IOException ; 19 20 64 65 public class RLoginClient extends RCommandClient 66 { 67 71 public static final int DEFAULT_PORT = 513; 72 73 77 public RLoginClient() 78 { 79 setDefaultPort(DEFAULT_PORT); 80 } 81 82 83 111 public void rlogin(String localUsername, String remoteUsername, 112 String terminalType, int terminalSpeed) 113 throws IOException 114 { 115 rexec(localUsername, remoteUsername, terminalType + "/" + terminalSpeed, 116 false); 117 } 118 119 122 public void rlogin(String localUsername, String remoteUsername, 123 String terminalType) 124 throws IOException 125 { 126 rexec(localUsername, remoteUsername, terminalType, false); 127 } 128 129 } 130 | Popular Tags |