public class RobotLocalServer extends Object
Constructor and Description |
---|
RobotLocalServer() |
Modifier and Type | Method and Description |
---|---|
static com.sun.net.httpserver.HttpServer |
start(int port,
int backlog,
String encode)
开启服务
|
public static com.sun.net.httpserver.HttpServer start(int port, int backlog, String encode) throws IOException
port
- 端口号backlog
- TCP连接最大并发数, 传 0 或负数表示使用默认值encode
- 编码IOException
Copyright © 2020. All rights reserved.