Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xpamacros(3) [debian man page]

xpamacros(3)							SAORD Documentation						      xpamacros(3)

NAME
XPAMacros - XPA Server Callback Macros SYNOPSIS
#include <xpa.h> xpa_class, xpa_name, xpa_method, xpa_cmdfd, xpa_datafd, xpa_sendian, xpa_cendian DESCRIPTION
Server routines have access to information about the XPA being called via the following macros (each of which takes the xpa handle as an argument): macro explanation ------ ----------- xpa_class class of this xpa xpa_name name of this xpa xpa_method method string (inet or local connect info) xpa_cmdfd fd of command socket xpa_datafd fd of data socket xpa_sendian endian-ness of server ("little" or "big") xpa_cendian endian-ness of client ("little" or "big" The argument to these macros is the call_data pointer that is passed to the server procedure. This pointer should be type case to XPA in the server routine: XPA xpa = (XPA)call_data; The most important of these macros is xpa_datafd(). A server routine that sets "fillbuf=false" in receive_mode or send_mode can use this macro to perform I/O directly to/from the client, rather than using buf. The xpa_cendian and xpa_sendian macros can be used together to determine if the data transferred from the client is byte swapped with respect to the server. Values for these macros are: "little", "big", or "?". In order to do a proper conversion, you still need to know the format of the data (i.e., byte swapping is dependent on the size of the data element being converted). SEE ALSO
See xpa(7) for a list of XPA help pages version 2.1.14 June 7, 2012 xpamacros(3)

Check Out this Related Man Page

xpaopen(3)							SAORD Documentation							xpaopen(3)

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(). Per- sistence 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 con- nected 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(7) for a list of XPA help pages version 2.1.14 June 7, 2012 xpaopen(3)
Man Page

4 More Discussions You Might Find Interesting

1. Programming

Big and Little Endian

We are developing an application using TLI for network communication.The Server Code is developed in Sun and client in SCO unix. When we route data from Client to Server we encrypt the data using DES algotithm utility.The problem we are facing that Sun uses Big Endian methodology to store data in... (1 Reply)
Discussion started by: S.P.Prasad
1 Replies

2. Shell Programming and Scripting

big file processeing

hi, i have a very big file that holding data, how could i pick line by line from this file. the following process can illustrate better: file ------------------- 123444444 | 122314567 |-----------data 146689000 | c=123444444 ---------- c is variable process c ... (3 Replies)
Discussion started by: omran
3 Replies

3. Shell Programming and Scripting

Playing with Volume of data

Quick problem statement: How to read/extract data from a big-big file. Details: We are having a big big problemo in the work we are working at. We are using solaris plarform E25. There is a very big file created somewhere around 200 million records anad the lenght of each record is more than... (3 Replies)
Discussion started by: darshanw
3 Replies

4. Red Hat

Du -sh command taking time to calculate the big size files

Hi , My linux server is taking more time to calculate big size from long time. * i am accessing server through ssh * commands # - du -sh * #du -sh * | sort -n | grep G Please guide me for fast way to find big size directories under to / partition Thanks (8 Replies)
Discussion started by: Nats
8 Replies