
SDK Programming Guide Version 1.511
ABLELink
R
Ethernet-Serial Server MAXI Series
Example:
#define AP_VERSION_LEN 30
Char buf[AP_VERS1] ;
buf[[AP_VERSION_LEN] = ‘\0’ ;
GetAPSerialNo(buf);
Remarks:
buf must be a characters array of 30 bytes
GetGwModel
Description:
Get the model number
Include:
DAPAPI.H
Usage: void
GetGwModel(char*buf);
Input Parameters:
buf:buffer for storing the model number.
The max. buffer length is 17 bytes (max. model number is 16
char 1 byte null terminator)
Return Value:
None
Example:
#define GW_MODEL_LEN 16
Char buf[GW_MO1] ;
GetGwModel( buf);
Remarks:
buf must be a characters array of 17 bytes
tcp_connect()
Description:
Establish a connection to a peer by client site.
Include:
tcpapi.h, tcpdef.h
Usage:
int tcp_connect (int far *
handle
, unsigned short
fromPort
,
unsigned long
toIPaddr
, unsigned short
toPort
, farFUNC
postfunc
,
char far *
p
arg
)
Input Parameters:
phandle:
the pointer of unique handle of the establishing connection
fromPort:
local TCP socket port number
toIPaddr:
the IP address of remote device which you want to connect to
toPort:
remote TCP socket port number
postfunc:
entry point of the post-function
Copyright © 2004 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.