Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

xdr_int(3)

xdr_bytes(3)

xdr_getpos(3)

xdr_pointer(3)

xdrrec_create(3)

xdr_array(3)

xdr_destroy(3)

xdr_free(3)

xdr_inline(3)

xdrmem_create(3)

xdr_opaque(3)

xdr_union(3)

xdr_vector(3)

xdr_void(3)



  svc_getargs(3)                      CLIX                      svc_getargs(3)



  NAME

    svc_getargs, svc_freeargs - Library functions for remote procedure calls

  LIBRARY

    Berkeley Software Distribution Library (libbsd.a)

  SYNOPSIS

    svc_getargs(
      SVCXPRT *xprt ,
      xdrproc_t inproc ,
      char *in );

    svc_freeargs(
      SVCXPRT *xprt ,
      xdrproc_t inproc ,
      char *in );

  PARAMETERS

    xprt     Specifies the address of the RPC transport handle.

    inproc   Specifies the XDR filter routine used to decode arguments.

    in       Specifies the address of the buffer used to hold decoded
             arguments.

  DESCRIPTION

    The svc_getargs() and svc_freeargs() functions allow C programs to make
    procedure calls on other machines across the network.  First, the client
    calls a procedure to send a data packet to the server.  Upon receipt of
    the packet, the server calls a dispatch routine to perform the requested
    service, and then sends back a reply.  Finally, the procedure call returns
    to the client.

    The svc_getargs() function is a macro that decodes the arguments of an RPC
    request associated with the RPC service transport handle, xprt.  The in
    parameter is the address where the arguments will be placed.  The inproc
    parameter is the XDR routine used to decode the arguments.

    The svc_freeargs() function is a macro that frees any data allocated by
    the RPC/XDR system when it decoded the arguments to a service procedure
    using svc_getargs().

  RETURN VALUES

    The svc_getargs() function returns 1 if decoding succeeds, and 0
    otherwise.



  2/94 - Intergraph Corporation                                              1






  svc_getargs(3)                      CLIX                      svc_getargs(3)



    The svc_freeargs() function returns 1 if the results were successfully
    freed, and 0 otherwise.

  RELATED INFORMATION

    Functions:  xdr_int(3), xdr_bytes(3), xdr_getpos(3), xdr_pointer(3),
    xdrrec_create(3), xdr_array(3), xdr_destroy(3), xdr_free(3),
    xdr_inline(3), xdrmem_create(3), xdr_opaque(3), xdr_union(3),
    xdr_vector(3), xdr_void(3)

    CLIX Programming Guide











































  2                                              Intergraph Corporation - 2/94




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026