xlang v5.1 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
StreamSocket类 参考
类 StreamSocket 继承关系图:
Inheritance graph
StreamSocket 的协作图:
Collaboration graph

Public 成员函数

静态 Public 成员函数

静态 Public 属性

额外继承的成员函数

详细描述

StreamSocket类继承自Stream类,提供了网络通信的Socket功能 支持读写操作、连接管理、超时设置等多种网络通信相关功能

在文件 StreamSocket.x5 行定义.

构造及析构函数说明

◆ StreamSocket()

成员函数说明

◆ accept()

◆ available() [1/2]

long available ( bool  ) throws IllegalArgumentException, InterruptedException, IOException

重载 Stream .

◆ available() [2/2]

int available ( long  ,
int   
)

◆ close()

void close ( ) throws IllegalArgumentException

重载 Stream .

◆ connect() [1/2]

bool connect ( InetAddress  ,
int   
) throws InterruptedException, TimeoutException

◆ connect() [2/2]

bool connect ( String  ,
int  ,
int   
) throws InterruptedException, TimeoutException

◆ finalize()

void finalize ( )

◆ flush()

void flush ( ) throws IOException

重载 Stream .

◆ getHandle()

long getHandle ( )

◆ getKeepAlive()

bool getKeepAlive ( )

◆ getLocalInetAddress()

InetAddress getLocalInetAddress ( )

◆ getLocalIpAddress()

String getLocalIpAddress ( )

◆ getLocalPort()

int getLocalPort ( )

◆ getPosition()

long getPosition ( ) throws IllegalArgumentException, IOException

重载 Stream .

◆ getRemoteInetAddress()

InetAddress getRemoteInetAddress ( )

◆ getRemoteIpAddress()

String getRemoteIpAddress ( )

◆ getRemotePort()

int getRemotePort ( )

◆ getReuseAddress()

bool getReuseAddress ( )

◆ getSoLinger()

int getSoLinger ( )

◆ getTcpNoDelay()

bool getTcpNoDelay ( )

◆ isConnected()

bool isConnected ( )

◆ length()

long length ( ) throws IllegalArgumentException, IOException

重载 Stream .

◆ listen()

bool listen ( String  ,
int  ,
int   
)

◆ read() [1/2]

◆ read() [2/2]

重载 Stream .

◆ readAllBytes()

重载 Stream .

◆ readBool()

◆ readBoolLE()

◆ readChar()

◆ readCharLE()

◆ readDouble()

重载 Stream .

◆ readDoubleLE()

重载 Stream .

◆ readFloat()

◆ readFloatLE()

重载 Stream .

◆ readInt()

◆ readIntLE()

◆ readLong()

◆ readLongLE()

◆ readShort()

◆ readShortLE()

重载 Stream .

◆ readString()

◆ readStringLE()

◆ seek()

long seek ( int  ,
long   
) throws IndexOutOfBoundsException, IllegalArgumentException, IOException

重载 Stream .

◆ select()

static final int select ( StreamSocket  [],
int  ,
int  ,
int  ,
int  [],
int   
) throws IndexOutOfBoundsException, IllegalArgumentException, InterruptedException
static

◆ setKeepAlive()

bool setKeepAlive ( bool  )

◆ setReuseAddress()

bool setReuseAddress ( bool  )

◆ setSoLinger()

bool setSoLinger ( bool  ,
int   
)

◆ setSoTimeout()

bool setSoTimeout ( int  )

◆ setTcpNoDelay()

bool setTcpNoDelay ( bool  )

◆ shutdownInput()

void shutdownInput ( )

◆ shutdownOutput()

void shutdownOutput ( )

◆ write() [1/2]

重载 Stream .

◆ write() [2/2]

重载 Stream .

◆ writeBool()

重载 Stream .

◆ writeBoolLE()

final void writeBoolLE ( bool  ) throws IllegalArgumentException, InterruptedException, IOException, TimeoutException

重载 Stream .

◆ writeChar()

重载 Stream .

◆ writeCharLE()

final void writeCharLE ( char  ) throws IllegalArgumentException, InterruptedException, IOException, TimeoutException

重载 Stream .

◆ writeDouble()

final void writeDouble ( double  ) throws IllegalArgumentException, InterruptedException, IOException, TimeoutException

重载 Stream .

◆ writeDoubleLE()

final void writeDoubleLE ( double  ) throws IllegalArgumentException, InterruptedException, IOException, TimeoutException

重载 Stream .

◆ writeFloat()

final void writeFloat ( float  ) throws IllegalArgumentException, InterruptedException, IOException, TimeoutException

重载 Stream .

◆ writeFloatLE()

final void writeFloatLE ( float  ) throws IllegalArgumentException, InterruptedException, IOException, TimeoutException

重载 Stream .

◆ writeInt()

重载 Stream .

◆ writeIntLE()

重载 Stream .

◆ writeLong()

重载 Stream .

◆ writeLongLE()

final void writeLongLE ( long  ) throws IllegalArgumentException, InterruptedException, IOException, TimeoutException

重载 Stream .

◆ writeShort()

final void writeShort ( short  ) throws IllegalArgumentException, InterruptedException, IOException, TimeoutException

重载 Stream .

◆ writeShortLE()

final void writeShortLE ( short  ) throws IllegalArgumentException, InterruptedException, IOException, TimeoutException

重载 Stream .

◆ writeString()

◆ writeStringLE()

重载 Stream .

结构体成员变量说明

◆ FLAGS_EXCEPTION

const int FLAGS_EXCEPTION
static

在文件 StreamSocket.x16 行定义.

◆ FLAGS_READABLE

const int FLAGS_READABLE
static

在文件 StreamSocket.x14 行定义.

◆ FLAGS_WRITEABLE

const int FLAGS_WRITEABLE
static

在文件 StreamSocket.x15 行定义.

◆ SeekBegin

const int SeekBegin
static

在文件 StreamSocket.x8 行定义.

◆ SeekCurrent

const int SeekCurrent
static

在文件 StreamSocket.x9 行定义.

◆ SeekEnd

const int SeekEnd
static

在文件 StreamSocket.x10 行定义.