Man page - xpaopen(3)
Packages contains this manual
- xpaintro(7)
- xpaset(3)
- xpapoll(3)
- xpamacros(3)
- xpainfo(3)
- xpaname(7)
- xpainet(7)
- xpaclient(3)
- xpamainloop(3)
- xpachanges(7)
- xpatemplate(7)
- xpaoom(7)
- xpa(7)
- xpaatexit(3)
- xpaenv(7)
- xpaget(3)
- xpausers(7)
- xpaserver(3)
- xparace(3)
- xpamethod(7)
- xpafree(3)
- xpacode(7)
- xpacommon(7)
- xpanslookup(3)
- xpaopen(3)
- xpacleanup(3)
- xpaaccess(3)
- xpacmdadd(3)
- xpaxt(7)
- xpaacl(7)
- xpanew(3)
- xpagetfd(3)
- xpainfonew(3)
- xpacmddel(3)
- xpaconvert(7)
- xpasetfd(3)
- xpaclose(3)
- xpacmdnew(3)
apt-get install libxpa-dev
Manual
xpaopen
NAMESYNOPSIS
DESCRIPTION
SEE ALSO
NAME
XPAOpen - allocate a persistent client handle
SYNOPSIS
#include
<xpa.h>
XPA XPAOpen(char *mode);
DESCRIPTION
XPAOpen() allocates a persistent XPA struct that can be used with calls to XPAGet() , XPASet() , XPAInfo() , XPAGetFd() , and XPASetFd() . Persistence means that a connection to an XPA server is not closed when one of the above calls is completed but will be re-used on successive calls. Using XPAOpen() therefore saves the time it takes to connect to a server, which could be significant with slow connections or if there will be a large number of exchanges with a given access point. The mode argument currently is ignored ("reserved for future use").
An XPA struct is returned if XPAOpen() was successful; otherwise NULL is returned. This returned struct can be passed as the first argument to XPAGet() , etc. Those calls will update the list of active XPA connections. Already connected servers (from a previous call) are left connected and new servers also will be connected. Old servers (from a previous call) that are no longer needed are disconnected. The connected servers will remain connected when the next call to XPAGet() is made and connections are once again updated.
Example:
#include
<xpa.h>
XPA xpa;
xpa = XPAOpen(NULL);
SEE ALSO
See xpa(n) for a list of XPA help pages