|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--com.dalsemi.shell.server.Server | +--com.dalsemi.shell.server.telnet.TelnetServer
A simple server that uses the Telnet protocol as described in RFC 854. This server uses a ServerSocket to listen on the specified port (defaults to port 23) for Telnet connection requests. For each connection made, a Telnet session is created. All command processing is handled by the Telnet session, not this server.
Fields inherited from class com.dalsemi.shell.server.Server |
sessions,
shutdown |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
Constructor Summary | |
TelnetServer()
Prepares the Telnet server to listen on the well known Telnet port (23). |
|
TelnetServer(int port)
Prepares the Telnet server to listen on an arbitrary port. |
Method Summary | |
protected Session |
acceptNewSession()
Listens on the connection port for connection requests. |
protected void |
closeAllPorts()
Closes the ServerSocket used to listen for connections. |
static java.lang.String |
getWelcomeFile()
Gets the name of the file to be displayed when after a user logs in to this server. |
static boolean |
isRootAllowed()
Indicates whether root access is allowed to this Telnet server. |
Methods inherited from class com.dalsemi.shell.server.Server |
broadcast,
checkForNewSessions,
getConnectedUsers,
run,
sessionEnded,
shutDown |
Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
toString,
yield |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public TelnetServer() throws java.io.IOException
run()
method is executed.public TelnetServer(int port) throws java.io.IOException
run()
method is executed.Method Detail |
public static java.lang.String getWelcomeFile()
null
if no welcome file was specifiedpublic static boolean isRootAllowed()
true
and root logins will be accepted.
This method will always return the value the variable had when the server
was constructed. Changing the value of environment variable after
creating the server will have no effect.true
if root is allowed to loginprotected Session acceptNewSession()
TelnetSession
protected void closeAllPorts() throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |