xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Public 成员函数
AsyncInput类 参考

异步输入接口 需要继承 更多...

Public 成员函数

详细描述

异步输入接口 需要继承

在文件 AsyncInput.xcs6 行定义.

成员函数说明

◆ dataArrives() [1/2]

bool dataArrives ( AsyncOutput  output,
long  context,
byte []  data 
)

异步数据到达通知

参数
output输出接口
context实例上下文
data数据内容
返回
是否接受该操作 返回false 将拒绝操作

◆ dataArrives() [2/2]

bool dataArrives ( AsyncOutput  ,
long  ,
  byte[],
int  ,
int   
)

◆ deleteInstance() [1/2]

bool deleteInstance ( AsyncOutput  output,
long  context 
)

实例删除通知

参数
output输出接口
context实例上下文
返回
是否接受该操作 返回false 将拒绝操作

◆ deleteInstance() [2/2]

bool deleteInstance ( AsyncOutput  ,
long   
)

◆ inactiveTimeout()

bool inactiveTimeout ( AsyncOutput  ,
long   
)

◆ inactiveTimeoutVerify()

bool inactiveTimeoutVerify ( AsyncOutput  output,
long  context 
)

实例超时通知

参数
output输出接口
context实例上下文
返回
是否接受该操作 返回false 将拒绝操作

◆ newInstance() [1/2]

bool newInstance ( AsyncOutput  output,
int  type,
long  bind,
long  context 
)

新实例创建回调

参数
output输出接口
type操作类型
bind绑定的id
context实例上下文
返回
是否接受该操作 返回false 将拒绝操作

◆ newInstance() [2/2]

bool newInstance ( AsyncOutput  ,
int  ,
long  ,
long   
)

◆ notify() [1/2]

void notify ( AsyncOutput  output,
int  type,
long  bind,
bool  bsucceed,
long  context,
int  length 
)

通知回调函数

参数
output输出接口
type操作类型
bind绑定的id
bsucceed处理结果
context实例上下文
length处理的长度
返回
提交结果

◆ notify() [2/2]

void notify ( AsyncOutput  ,
int  ,
long  ,
bool  ,
long  ,
int   
)