阅读( 224 ) 我要纠错

5.4 CreateClient函数

   函数

public static extern uint CreateClient(byte[] led_ip,uint led_port,bx_5k_card_type card_type,int tmout_sec,int mode,CallBackClientClose pCloseFunc);

  参数

 

参数

描述

led_ip

控制卡IP

led_port

端口号

card_type

控制卡型号 枚举类型

tmout_sec

创建连接超时时间

mode

显示模式:  0普通模式  1动态模式(动态区优先节目显示)

pCloseFunc

回调函数,参数值为null

  说明

通过网络固定IP模式连接控制卡,设置控制卡IP、端口号、控制卡类型,回调函数:

 

[System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute(System.Runtime.InteropS ervices.CallingConvention.StdCall)]

public delegate void CallBackClientClose(uint hand, int err);



×