Print this page
8330 Add svc_tp_create_addr to libnsl
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>


 907          *      const rpcprog_t prognum;        -- program number
 908          *      const rpcvers_t versnum;        -- version number
 909          *      const char *nettype;            -- network type
 910          */
 911 
 912 /*
 913  * Generic server creation routine. It takes a netconfig structure
 914  * instead of a nettype.
 915  */
 916 extern SVCXPRT  *svc_tp_create(void (*)(struct svc_req *, SVCXPRT *),
 917                                 const rpcprog_t, const rpcvers_t,
 918                                 const struct netconfig *);
 919         /*
 920          * void (*dispatch)();                  -- dispatch routine
 921          * const rpcprog_t prognum;             -- program number
 922          * const rpcvers_t versnum;             -- version number
 923          * const struct netconfig *nconf;       -- netconfig structure
 924          */
 925 
 926 /*
















 927  * Generic TLI create routine
 928  */
 929 extern  SVCXPRT *svc_tli_create(const int, const struct netconfig *,
 930                                 const struct t_bind *, const uint_t,
 931                                 const uint_t);
 932         /*
 933          *      const int fd;                   -- connection end point
 934          *      const struct netconfig *nconf;  -- netconfig structure
 935          *      const struct t_bind *bindaddr;  -- local bind address
 936          *      const uint_t sendsz;            -- max sendsize
 937          *      const uint_t recvsz;            -- max recvsize
 938          */
 939 
 940 /*
 941  * Connectionless and connectionful create routines.
 942  */
 943 extern SVCXPRT  *svc_vc_create(const int, const uint_t, const uint_t);
 944         /*
 945          *      const int fd;                   -- open connection end point
 946          *      const uint_t sendsize;          -- max send size




 907          *      const rpcprog_t prognum;        -- program number
 908          *      const rpcvers_t versnum;        -- version number
 909          *      const char *nettype;            -- network type
 910          */
 911 
 912 /*
 913  * Generic server creation routine. It takes a netconfig structure
 914  * instead of a nettype.
 915  */
 916 extern SVCXPRT  *svc_tp_create(void (*)(struct svc_req *, SVCXPRT *),
 917                                 const rpcprog_t, const rpcvers_t,
 918                                 const struct netconfig *);
 919         /*
 920          * void (*dispatch)();                  -- dispatch routine
 921          * const rpcprog_t prognum;             -- program number
 922          * const rpcvers_t versnum;             -- version number
 923          * const struct netconfig *nconf;       -- netconfig structure
 924          */
 925 
 926 /*
 927  * Variant of svc_tp_create that accepts a binding address.
 928  * If addr == NULL, this is the same as svc_tp_create().
 929  */
 930 extern SVCXPRT  *svc_tp_create_addr(void (*)(struct svc_req *, SVCXPRT *),
 931                                 const rpcprog_t, const rpcvers_t,
 932                                 const struct netconfig *,
 933                                 const struct netbuf *);
 934         /*
 935          * void (*dispatch)();                  -- dispatch routine
 936          * const rpcprog_t prognum;             -- program number
 937          * const rpcvers_t versnum;             -- version number
 938          * const struct netconfig *nconf;       -- netconfig structure
 939          * const struct netbuf *addr;           -- address to bind
 940          */
 941 
 942 /*
 943  * Generic TLI create routine
 944  */
 945 extern  SVCXPRT *svc_tli_create(const int, const struct netconfig *,
 946                                 const struct t_bind *, const uint_t,
 947                                 const uint_t);
 948         /*
 949          *      const int fd;                   -- connection end point
 950          *      const struct netconfig *nconf;  -- netconfig structure
 951          *      const struct t_bind *bindaddr;  -- local bind address
 952          *      const uint_t sendsz;            -- max sendsize
 953          *      const uint_t recvsz;            -- max recvsize
 954          */
 955 
 956 /*
 957  * Connectionless and connectionful create routines.
 958  */
 959 extern SVCXPRT  *svc_vc_create(const int, const uint_t, const uint_t);
 960         /*
 961          *      const int fd;                   -- open connection end point
 962          *      const uint_t sendsize;          -- max send size