xlang v5.1 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Unsi.x
浏览该文件的文档.
1
5class Unsi {
6 // 默认上下文ID常量
7 public static const int DEFAULT_CONTEXTID;
8 // 禁用监听端口号常量
9 public static const int UNSI_LISTENPORT_DISABLE;
10 // TCP协议类型常量
11 public static const int UNSI_TCP;
12 // UDP协议类型常量
13 public static const int UNSI_UDP;
14
15
16 // 名称列表模式常量
17 public static const int DISABLE_NAMELIST; // 禁用名称列表
18 public static const int BLACK_NAMELIST; // 黑名单模式
19 public static const int WHITE_NAMELIST; // 白名单模式
20
21
22 // 连接状态常量
23 public static const int UNSI_INVALID; // 无效状态
24 public static const int UNSI_CONNECT; // 连接中
25 public static const int UNSI_DISCONNECT; // 断开连接
26 public static const int UNSI_ACCEPT;
27
28
29 // 发送操作常量
30 public static const int UNSI_TCP_SEND; // TCP发送
31 public static const int UNSI_UDP_SEND; // UDP发送
32 public static const int UNSI_UDP_SENDCOMPLETE; // UDP发送完成
33 public static const int UNSI_TCP_SENDCOMPLETE; // TCP发送完成
34 public static const int UNSI_TCP_RECV; // TCP接收
35 public static const int UNSI_UDP_RECV; // UDP接收
36 public static const int UNSI_TCP_RECVCOMPLETE; // TCP接收完成
37 public static const int UNSI_UDP_RECVCOMPLETE; // UDP接收完成
38 // 构造函数
39 public Unsi();
40 // 启动服务
41 public bool start();
42 public bool disconnect(long);
43 public bool config(int, int, int);
44 public @NotNilptr AsyncOutput getAsyncDirectOutput();
45 public bool send(long, long, byte[], int, int)
47 public bool create(AsyncInput, int, int, int)
49 public @NotNilptr InetAddress getRemoteInetAddress(long);
50 public long clone(long);
51 public int getId(long);
52 public bool equalsHandle(long, long);
53 public int getNamelistMode();
54 public void setNamelistMode(int);
55 public bool addToNamelist(String, bool);
56 public long getConnectionNumber();
57 public void finalize();
58};
Definition String.x:5
Definition Unsi.x:5
static const int WHITE_NAMELIST
Definition Unsi.x:19
int getNamelistMode()
void setNamelistMode(int)
static const int UNSI_ACCEPT
Definition Unsi.x:26
static const int UNSI_DISCONNECT
Definition Unsi.x:25
static const int DEFAULT_CONTEXTID
Definition Unsi.x:7
int getId(long)
static const int UNSI_TCP_RECV
Definition Unsi.x:34
bool addToNamelist(String, bool)
void finalize()
static const int UNSI_TCP_SEND
Definition Unsi.x:30
static const int DISABLE_NAMELIST
Definition Unsi.x:17
static const int UNSI_UDP_RECV
Definition Unsi.x:35
static const int UNSI_CONNECT
Definition Unsi.x:24
static const int UNSI_TCP
Definition Unsi.x:11
bool disconnect(long)
long getConnectionNumber()
static const int UNSI_TCP_RECVCOMPLETE
Definition Unsi.x:36
static const int UNSI_LISTENPORT_DISABLE
Definition Unsi.x:9
static const int UNSI_UDP_SENDCOMPLETE
Definition Unsi.x:32
static const int UNSI_UDP
Definition Unsi.x:13
InetAddress getRemoteInetAddress(long)
static const int UNSI_UDP_SEND
Definition Unsi.x:31
Unsi()
bool start()
static const int UNSI_UDP_RECVCOMPLETE
Definition Unsi.x:37
static const int UNSI_TCP_SENDCOMPLETE
Definition Unsi.x:33
static const int UNSI_INVALID
Definition Unsi.x:23
bool create(AsyncInput, int, int, int)
static const int BLACK_NAMELIST
Definition Unsi.x:18
AsyncOutput getAsyncDirectOutput()
long clone(long)
bool send(long, long, byte[], int, int)
bool equalsHandle(long, long)
bool config(int, int, int)