xlang v5.1 Release
程序设计语言基础库文档
|
Public 成员函数 |
静态 Public 成员函数 |
静态 Public 属性 |
额外继承的成员函数 |
StreamSocket类继承自Stream类,提供了网络通信的Socket功能 支持读写操作、连接管理、超时设置等多种网络通信相关功能
在文件 StreamSocket.x 第 5 行定义.
StreamSocket | ( | ) | throws IllegalArgumentException |
StreamSocket accept | ( | ) | throws IllegalArgumentException |
long available | ( | bool | ) | throws IllegalArgumentException, InterruptedException, IOException |
重载 Stream .
int available | ( | long | , |
int | |||
) |
void close | ( | ) | throws IllegalArgumentException |
重载 Stream .
bool connect | ( | InetAddress | , |
int | |||
) | throws InterruptedException, TimeoutException |
bool connect | ( | String | , |
int | , | ||
int | |||
) | throws InterruptedException, TimeoutException |
void finalize | ( | ) |
void flush | ( | ) | throws IOException |
重载 Stream .
long getHandle | ( | ) |
bool getKeepAlive | ( | ) |
InetAddress getLocalInetAddress | ( | ) |
String getLocalIpAddress | ( | ) |
int getLocalPort | ( | ) |
long getPosition | ( | ) | throws IllegalArgumentException, IOException |
重载 Stream .
InetAddress getRemoteInetAddress | ( | ) |
String getRemoteIpAddress | ( | ) |
int getRemotePort | ( | ) |
bool getReuseAddress | ( | ) |
int getSoLinger | ( | ) |
bool getTcpNoDelay | ( | ) |
bool isConnected | ( | ) |
long length | ( | ) | throws IllegalArgumentException, IOException |
重载 Stream .
bool listen | ( | String | , |
int | , | ||
int | |||
) |
final byte read | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
int read | ( | byte | [], |
int | , | ||
int | |||
) | throws IndexOutOfBoundsException, IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final byte [] readAllBytes | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final bool readBool | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final bool readBoolLE | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final char readChar | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final char readCharLE | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final double readDouble | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final double readDoubleLE | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final float readFloat | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final float readFloatLE | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final int readInt | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final int readIntLE | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final long readLong | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final long readLongLE | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final short readShort | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final short readShortLE | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final String readString | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final String readStringLE | ( | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
long seek | ( | int | , |
long | |||
) | throws IndexOutOfBoundsException, IllegalArgumentException, IOException |
重载 Stream .
|
static |
bool setKeepAlive | ( | bool | ) |
bool setReuseAddress | ( | bool | ) |
bool setSoLinger | ( | bool | , |
int | |||
) |
bool setSoTimeout | ( | int | ) |
bool setTcpNoDelay | ( | bool | ) |
void shutdownInput | ( | ) |
void shutdownOutput | ( | ) |
final void write | ( | byte | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
int write | ( | byte | [], |
int | , | ||
int | |||
) | throws IndexOutOfBoundsException, IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final void writeBool | ( | bool | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final void writeBoolLE | ( | bool | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final void writeChar | ( | char | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final void writeCharLE | ( | char | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final void writeDouble | ( | double | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final void writeDoubleLE | ( | double | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final void writeFloat | ( | float | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final void writeFloatLE | ( | float | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final void writeInt | ( | int | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final void writeIntLE | ( | int | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final void writeLong | ( | long | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final void writeLongLE | ( | long | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final void writeShort | ( | short | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final void writeShortLE | ( | short | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final void writeString | ( | String | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
final void writeStringLE | ( | String | ) | throws IllegalArgumentException, InterruptedException, IOException, TimeoutException |
重载 Stream .
|
static |
在文件 StreamSocket.x 第 16 行定义.
|
static |
在文件 StreamSocket.x 第 14 行定义.
|
static |
在文件 StreamSocket.x 第 15 行定义.
|
static |
在文件 StreamSocket.x 第 8 行定义.
|
static |
在文件 StreamSocket.x 第 9 行定义.
|
static |
在文件 StreamSocket.x 第 10 行定义.