YW_TCPIPConnectReader
使用TCPIP连接读卡器

参数列表:

int stdcall YW_TCPIPConnectReader(

char *IPAddress, 

int Port)


参数含义:

参数

类型

方向

含义

IPAddress

char *

IN

目标读卡器的IP地址

Port

int

OUT

读卡器的TCPIP端口号,读卡器默认23


C++声明(VC++和C++ Builder):

extern "C" __declspec(dllimport) int __stdcall YW_TCPIPConnectReader(char *IPAddress, int Port);


Delphi声明:

function YW_TCPIPConnectReader(IPAddress: PChar;Port: Integer): Integer;stdcall;external 'YW60x.dll';


VB声明:

Public Declare Function YW_TCPIPConnectReader Lib "YW60x.dll" (ByVal IPAddress As String, ByVal Port As Integer) As Long


JAVA声明:

public int  YW_TCPIPConnectReader(Pointer IPAddress,int Port)

{

int ret;

try

        {

                JNative fuc = new JNative("YW60x.dll", "YW_TCPIPConnectReader");

                fuc.setRetVal(Type.INT);

                fuc.setParameter(0, IPAddress);

                fuc.setParameter(1,Port);

                fuc.invoke();

                ret = fuc.getRetValAsInt();

        

        }

        catch(NativeException e)

        {

              ret = -11;

        }

        catch(IllegalAccessException e)

        {

                ret = -21;

        }


        return ret;

}


C#声明:

[DllImport("YW60x.dll")]

 public static extern int YW_TCPIPConnectReader(char[] IPAddress, int Port);


Power Builder 9 声明:

public FUNCTION long YW_TCPIPConnectReader(string IPAddress, long Port) library "YW60x.dll"  


支持的RFID读写器:
YW-615