HP-UX Reference (11i v2 03/08) - 3 Library Functions N-Z (vol 7)
s
spray(3N) spray(3N)
NAME
spray - scatter data in order to check the network
SYNOPSIS
#include <time.h>
#include <rpcsvc/spray.h>
DESCRIPTION
This reference page describes the data structures and XDR routines used by the spray (1M) program. A
spray() function call does not exist. Refer to spray(1M) for more information.
RPC Information
Program number:
SPRAYPROG
XDR routines:
xdr_sprayarr(xdrs, arr);
XDR *xdrs;
struct sprayarr *arr;
xdr_spraycumul(xdrs, cumul);
XDR *xdrs;
struct spraycumul *cumul;
Procedures:
SPRAYPROC_SPRAY
Takes no arguments, returns no value. Increments a counter in server daemon. The server
does not return this call, so the caller should have a timeout of 0. The sprayarr is only used by
the caller, to vary the size of the UDP packets sent.
SPRAYPROC_GET
Takes no arguments, returns struct spraycumul with the values of counter and clock set to
reflect the number of SPRAYPROC_SPRAY
calls, and the total time (seconds and
microseconds) elapsed since the last
SPRAYPROC_CLEAR
request.
SPRAYPROC_CLEAR
Takes no arguments and returns no value. Zeros out counter and clock in preparation for calls
to
SPRAYPROC_SPRAY
.
Versions:
SPRAYVERS_ORIG
Structures:
struct spraycumul {
unsigned counter;
struct timeval clock;
};
struct sprayarr {
int *data;
int lnth;
};
WARNINGS
User applications that call this routine must be linked with /usr/include/librpcsvc.a
.For
example,
cc my_source.c -lrpcsvc
AUTHOR
spray was developed by Sun Microsystems, Inc.
SEE ALSO
spray(1M), sprayd(1M).
Section 3−−974 Hewlett-Packard Company − 1 − HP-UX 11i Version 2: August 2003