首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > java的一个基本的终端驱动。

java的一个基本的终端驱动。

  • 资源大小:65.11 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

``` The Network Virtual Terminal for Java (NVT4J) is a library which can drive a terminal emulator connected to the application through a telnet session. Usage The API consists of the interface nvt4j.Terminal . The implementation of this class is called nvt4j.impl.Terminal. To allow the user to connect to the application you need to listen for a tcp connection and then wrap a Terminal object around it: ServerSocket serverSocket = new ServerSocket(8000); Socket socket = serverSocket.accept(); Terminal terminal = new nvt4j.impl.Terminal(socket); For example, to run the sample class Example.java from an xterm session, you can do this: user@localhost$ java -classpath nvt4j.jar Example & user@localhost$ telnet localhost 8000 NVT4J uses the Telnet LINEMODE option to put the terminal driver (xterm in this case) in what the posix standard calls "raw" or "non-canonical" mode, so that it can receive all user inputs asap, i

文 件 列 表

META-INF
MANIFEST.MF
nvt4j_1_0a1
nvt4j.jar
RELEASE_NOTES
build.xml
src
README
api
LICENSE

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP