异步输出接口 需要继承
更多...
异步输出接口 需要继承
在文件 AsyncOutput.xcs 第 6 行定义.
◆ cloneContext() [1/2]
long cloneContext |
( |
long |
context | ) |
|
◆ cloneContext() [2/2]
long cloneContext |
( |
long |
| ) |
|
◆ dataDeparture() [1/2]
bool dataDeparture |
( |
AsyncInput |
input, |
|
|
long |
context, |
|
|
long |
bind, |
|
|
byte [] |
data, |
|
|
int |
offset, |
|
|
int |
length |
|
) |
| |
发送数据
- 参数
-
input | 输入接口 |
context | 实例上下文 |
bind | 绑定的id |
data | 数据缓冲区 |
offset | 缓冲区偏移 |
length | 长度 |
- 返回
- 提交结果
◆ dataDeparture() [2/2]
bool dataDeparture |
( |
AsyncInput |
, |
|
|
long |
, |
|
|
long |
, |
|
|
|
byte[], |
|
|
int |
, |
|
|
int |
|
|
) |
| |
◆ deleteInstance() [1/2]
void deleteInstance |
( |
AsyncInput |
input, |
|
|
long |
context |
|
) |
| |
删除实例
- 参数
-
- 返回
- 是否接受该操作 返回false 将拒绝操作
◆ deleteInstance() [2/2]
◆ getInstanceId() [1/2]
long getInstanceId |
( |
long |
context | ) |
|
◆ getInstanceId() [2/2]
long getInstanceId |
( |
long |
| ) |
|
◆ newInstance() [1/2]
异步数据到达通知
- 参数
-
host | 远程地址 |
port | 端口参数 |
bind | 绑定id |
- 返回
- 新实例上下文句柄
◆ newInstance() [2/2]
long newInstance |
( |
AsyncInput |
, |
|
|
|
String, |
|
|
int |
, |
|
|
long |
|
|
) |
| |
◆ releaseContext() [1/2]
void releaseContext |
( |
long |
context | ) |
|
◆ releaseContext() [2/2]
void releaseContext |
( |
long |
| ) |
|