SyncServer 1000 allows you to control multiple X.25 virtual circuits from a single program using the API functions X25lookatone(), X25looksel(), X25poll(). Programmers wishing to use threads should refer to the Multi-thread Application Note for Linux and Multi-threaded Application Note for Win32 for further information.
The X25look series of functions, after having been initialized with X25lookinit(), allow you to add multiple CALLTs to wait on using X25lookadd() and wait for activity on all these CALLTs by calling X25looksel(). CALLTs can be removed from this list by calling X25lookdel(). Calling X25lookclose() de-allocates any internal memory used by the above functions.
SyncServer 1000 supports the X25_STATS ioctl(). This command is used to return operating statistics into a passed-in buffer pointer. The following sample code illustrates how to use this command in a program:
struct strioctl str;
struct x25stats x25s;
extern int netid;
CALLT *ct
ct = X25open(netid);
x25s.x_nid = netid;
str.ic_cmd = X25_STATS;
str.ic_timout = 0;
str.ic_len = sizeof(struct x25stats);
str.ic_dp = (char *) &x25s;
ioctl(X25_fd(ct), I_STR, (char *) &str);
printf("link up/down flag is %d\n", x25s.x_frmstats.link_up);
Copyright © 1997-2004 The Software Group
Limited. All Rights Reserved.
® Netcom is a registered trademark of The Software
Group Limited.