HPlogo HP-UX Reference Volume 4 of 5 > s

spray(3N)

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

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; };

WARNING

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.

© Hewlett-Packard Development Company, L.P.