class MServerSocket extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private String |
charset |
private int |
port |
private ServerSocket |
ss |
private int |
timeout |
| 构造器和说明 |
|---|
MServerSocket(int timeout)
构造
|
MServerSocket(int port,
int timeout)
构造
|
MServerSocket(int port,
int timeout,
String charset)
构造
|
private ServerSocket ss
private int port
private String charset
private int timeout
public MServerSocket(int timeout)
throws IOException
IOExceptionpublic MServerSocket(int port,
int timeout)
throws IOException
port - -- 段口号IOExceptionpublic MServerSocket(int port,
int timeout,
String charset)
throws IOException
port - -- 段口号charset - -- 网络传输的字符集IOExceptionpublic String getCharset()
public void setCharset(String charset)
charset - -- 网络传输字符集public int getPort()
public void setPort(int port)
port - public MSocket accept() throws IOException
IOExceptionpublic void close()
Copyright © 2023. All rights reserved.