rpc_soc.3 (108037) | rpc_soc.3 (108087) |
---|---|
1.\" @(#)rpc.3n 2.4 88/08/08 4.0 RPCSRC; from 1.19 88/06/24 SMI 2.\" $NetBSD: rpc_soc.3,v 1.2 2000/06/07 13:39:43 simonb Exp $ | 1.\" @(#)rpc.3n 2.4 88/08/08 4.0 RPCSRC; from 1.19 88/06/24 SMI 2.\" $NetBSD: rpc_soc.3,v 1.2 2000/06/07 13:39:43 simonb Exp $ |
3.\" $FreeBSD: head/lib/libc/rpc/rpc_soc.3 108037 2002-12-18 12:45:11Z ru $ | 3.\" $FreeBSD: head/lib/libc/rpc/rpc_soc.3 108087 2002-12-19 09:40:28Z ru $ |
4.\" 5.Dd February 16, 1988 6.Dt RPC_SOC 3 7.Os 8.Sh NAME 9.Nm rpc_soc , 10.Nm auth_destroy , 11.Nm authnone_create , --- 139 unchanged lines hidden (view full) --- 151.Fn authunix_create "char *host" "int uid" "int gid" "int len" "int *aup_gids" 152.Xc 153.Pp 154Create and return an 155.Tn RPC 156authentication handle that contains 157.Ux 158authentication information. | 4.\" 5.Dd February 16, 1988 6.Dt RPC_SOC 3 7.Os 8.Sh NAME 9.Nm rpc_soc , 10.Nm auth_destroy , 11.Nm authnone_create , --- 139 unchanged lines hidden (view full) --- 151.Fn authunix_create "char *host" "int uid" "int gid" "int len" "int *aup_gids" 152.Xc 153.Pp 154Create and return an 155.Tn RPC 156authentication handle that contains 157.Ux 158authentication information. |
159The parameter | 159The |
160.Fa host | 160.Fa host |
161argument |
|
161is the name of the machine on which the information was 162created; 163.Fa uid 164is the user's user ID; 165.Fa gid 166is the user's current group ID; 167.Fa len 168and --- 5 unchanged lines hidden (view full) --- 174.Ft "AUTH *" 175.Xc 176.It Xo 177.Fn authunix_create_default 178.Xc 179.Pp 180Calls 181.Fn authunix_create | 162is the name of the machine on which the information was 163created; 164.Fa uid 165is the user's user ID; 166.Fa gid 167is the user's current group ID; 168.Fa len 169and --- 5 unchanged lines hidden (view full) --- 175.Ft "AUTH *" 176.Xc 177.It Xo 178.Fn authunix_create_default 179.Xc 180.Pp 181Calls 182.Fn authunix_create |
182with the appropriate parameters. | 183with the appropriate arguments. |
183.Pp 184.It Xo 185.Ft int 186.Fo callrpc 187.Fa "char *host" 188.Fa "u_long prognum" 189.Fa "u_long versnum" 190.Fa "u_long procnum" --- 6 unchanged lines hidden (view full) --- 197.Pp 198Call the remote procedure associated with 199.Fa prognum , 200.Fa versnum , 201and 202.Fa procnum 203on the machine 204.Fa host . | 184.Pp 185.It Xo 186.Ft int 187.Fo callrpc 188.Fa "char *host" 189.Fa "u_long prognum" 190.Fa "u_long versnum" 191.Fa "u_long procnum" --- 6 unchanged lines hidden (view full) --- 198.Pp 199Call the remote procedure associated with 200.Fa prognum , 201.Fa versnum , 202and 203.Fa procnum 204on the machine 205.Fa host . |
205The parameter | 206The |
206.Fa in | 207.Fa in |
208argument |
|
207is the address of the procedure's argument(s), and 208.Fa out 209is the address of where to place the result(s); 210.Fa inproc | 209is the address of the procedure's argument(s), and 210.Fa out 211is the address of where to place the result(s); 212.Fa inproc |
211is used to encode the procedure's parameters, and | 213is used to encode the procedure's arguments, and |
212.Fa outproc 213is used to decode the procedure's results. 214This routine returns zero if it succeeds, or the value of 215.Vt "enum clnt_stat" 216cast to an integer if it fails. 217The routine 218.Fn clnt_perrno 219is handy for translating failure statuses into messages. --- 75 unchanged lines hidden (view full) --- 295A macro that calls the remote procedure 296.Fa procnum 297associated with the client handle, 298.Fa clnt , 299which is obtained with an 300.Tn RPC 301client creation routine such as 302.Fn clnt_create . | 214.Fa outproc 215is used to decode the procedure's results. 216This routine returns zero if it succeeds, or the value of 217.Vt "enum clnt_stat" 218cast to an integer if it fails. 219The routine 220.Fn clnt_perrno 221is handy for translating failure statuses into messages. --- 75 unchanged lines hidden (view full) --- 297A macro that calls the remote procedure 298.Fa procnum 299associated with the client handle, 300.Fa clnt , 301which is obtained with an 302.Tn RPC 303client creation routine such as 304.Fn clnt_create . |
303The parameter | 305The |
304.Fa in | 306.Fa in |
307argument |
|
305is the address of the procedure's argument(s), and 306.Fa out 307is the address of where to place the result(s); 308.Fa inproc | 308is the address of the procedure's argument(s), and 309.Fa out 310is the address of where to place the result(s); 311.Fa inproc |
309is used to encode the procedure's parameters, and | 312is used to encode the procedure's arguments, and |
310.Fa outproc 311is used to decode the procedure's results; 312.Fa tout 313is the time allowed for results to come back. 314.Pp 315.It Xo 316.Ft void 317.Fn clnt_destroy "CLIENT *clnt" --- 18 unchanged lines hidden (view full) --- 336.It Xo 337.Ft CLIENT * 338.Xc 339.It Xo 340.Fn clnt_create "char *host" "u_long prog" "u_long vers" "char *proto" 341.Xc 342.Pp 343Generic client creation routine. | 313.Fa outproc 314is used to decode the procedure's results; 315.Fa tout 316is the time allowed for results to come back. 317.Pp 318.It Xo 319.Ft void 320.Fn clnt_destroy "CLIENT *clnt" --- 18 unchanged lines hidden (view full) --- 339.It Xo 340.Ft CLIENT * 341.Xc 342.It Xo 343.Fn clnt_create "char *host" "u_long prog" "u_long vers" "char *proto" 344.Xc 345.Pp 346Generic client creation routine. |
347The |
|
344.Fa host | 348.Fa host |
349argument |
|
345identifies the name of the remote host where the server 346is located. | 350identifies the name of the remote host where the server 351is located. |
352The |
|
347.Fa proto | 353.Fa proto |
354argument |
|
348indicates which kind of transport protocol to use. 349The 350currently supported values for this field are 351.Qq Li udp 352and 353.Qq Li tcp . 354Default timeouts are set, but can be modified using 355.Fn clnt_control . --- 12 unchanged lines hidden (view full) --- 368.Ft bool_t 369.Xc 370.It Xo 371.Fn clnt_control "CLIENT *cl" "u_int req" "char *info" 372.Xc 373.Pp 374A macro used to change or retrieve various information 375about a client object. | 355indicates which kind of transport protocol to use. 356The 357currently supported values for this field are 358.Qq Li udp 359and 360.Qq Li tcp . 361Default timeouts are set, but can be modified using 362.Fn clnt_control . --- 12 unchanged lines hidden (view full) --- 375.Ft bool_t 376.Xc 377.It Xo 378.Fn clnt_control "CLIENT *cl" "u_int req" "char *info" 379.Xc 380.Pp 381A macro used to change or retrieve various information 382about a client object. |
383The |
|
376.Fa req | 384.Fa req |
385argument |
|
377indicates the type of operation, and 378.Fa info 379is a pointer to the information. 380For both 381.Tn UDP 382and 383.Tn TCP , 384the supported values of --- 5 unchanged lines hidden (view full) --- 390.Xc 391.It Dv CLGET_TIMEOUT Ta Xo 392.Vt "struct timeval" Ta "get total timeout" 393.Xc 394.El 395.Pp 396Note: if you set the timeout using 397.Fn clnt_control , | 386indicates the type of operation, and 387.Fa info 388is a pointer to the information. 389For both 390.Tn UDP 391and 392.Tn TCP , 393the supported values of --- 5 unchanged lines hidden (view full) --- 399.Xc 400.It Dv CLGET_TIMEOUT Ta Xo 401.Vt "struct timeval" Ta "get total timeout" 402.Xc 403.El 404.Pp 405Note: if you set the timeout using 406.Fn clnt_control , |
398the timeout parameter passed to | 407the timeout argument passed to |
399.Fn clnt_call 400will be ignored in all future calls. 401.Bl -column "CLSET_RETRY_TIMEOUT" "struct sockaddr_in" 402.It Dv CLGET_SERVER_ADDR Ta Xo 403.Vt "struct sockaddr_in" Ta "get server's address" 404.Xc 405.El 406.Pp --- 19 unchanged lines hidden (view full) --- 426.Fn clnt_freeres "CLIENT *clnt" "xdrproc_t outproc" "char *out" 427.Xc 428.Pp 429A macro that frees any data allocated by the 430.Tn RPC/XDR 431system when it decoded the results of an 432.Tn RPC 433call. | 408.Fn clnt_call 409will be ignored in all future calls. 410.Bl -column "CLSET_RETRY_TIMEOUT" "struct sockaddr_in" 411.It Dv CLGET_SERVER_ADDR Ta Xo 412.Vt "struct sockaddr_in" Ta "get server's address" 413.Xc 414.El 415.Pp --- 19 unchanged lines hidden (view full) --- 435.Fn clnt_freeres "CLIENT *clnt" "xdrproc_t outproc" "char *out" 436.Xc 437.Pp 438A macro that frees any data allocated by the 439.Tn RPC/XDR 440system when it decoded the results of an 441.Tn RPC 442call. |
434The parameter | 443The |
435.Fa out | 444.Fa out |
445argument |
|
436is the address of the results, and 437.Fa outproc 438is the 439.Tn XDR 440routine describing the results. 441This routine returns one if the results were successfully 442freed, 443and zero otherwise. --- 188 unchanged lines hidden (view full) --- 632address 633.Fa addr . 634If 635.Fa addr\->sin_port 636is zero, then it is set to the actual port that the remote 637program is listening on (the remote 638.Xr rpcbind 8 639service is consulted for this information). | 446is the address of the results, and 447.Fa outproc 448is the 449.Tn XDR 450routine describing the results. 451This routine returns one if the results were successfully 452freed, 453and zero otherwise. --- 188 unchanged lines hidden (view full) --- 642address 643.Fa addr . 644If 645.Fa addr\->sin_port 646is zero, then it is set to the actual port that the remote 647program is listening on (the remote 648.Xr rpcbind 8 649service is consulted for this information). |
640The parameter | 650The |
641.Fa sockp | 651.Fa sockp |
652argument |
|
642is a socket; if it is 643.Dv RPC_ANYSOCK , 644then this routine opens a new one and sets 645.Fa sockp . 646Since 647.Tn TCP Ns \-based 648.Tn RPC 649uses buffered 650.Tn I/O , 651the user may specify the size of the send and receive buffers | 653is a socket; if it is 654.Dv RPC_ANYSOCK , 655then this routine opens a new one and sets 656.Fa sockp . 657Since 658.Tn TCP Ns \-based 659.Tn RPC 660uses buffered 661.Tn I/O , 662the user may specify the size of the send and receive buffers |
652with the parameters | 663with the |
653.Fa sendsz 654and | 664.Fa sendsz 665and |
655.Fa recvsz ; | 666.Fa recvsz 667arguments; |
656values of zero choose suitable defaults. 657This routine returns 658.Dv NULL 659if it fails. 660.Pp 661.It Xo 662.Ft "CLIENT *" 663.Xc --- 20 unchanged lines hidden (view full) --- 684address 685.Fa addr . 686If 687.Fa addr\->sin_port 688is zero, then it is set to actual port that the remote 689program is listening on (the remote 690.Xr rpcbind 8 691service is consulted for this information). | 668values of zero choose suitable defaults. 669This routine returns 670.Dv NULL 671if it fails. 672.Pp 673.It Xo 674.Ft "CLIENT *" 675.Xc --- 20 unchanged lines hidden (view full) --- 696address 697.Fa addr . 698If 699.Fa addr\->sin_port 700is zero, then it is set to actual port that the remote 701program is listening on (the remote 702.Xr rpcbind 8 703service is consulted for this information). |
692The parameter | 704The |
693.Fa sockp | 705.Fa sockp |
706argument |
|
694is a socket; if it is 695.Dv RPC_ANYSOCK , 696then this routine opens a new one and sets 697.Fa sockp . 698The 699.Tn UDP 700transport resends the call message in intervals of 701.Fa wait --- 37 unchanged lines hidden (view full) --- 739address 740.Fa addr . 741If 742.Fa addr\->sin_port 743is zero, then it is set to actual port that the remote 744program is listening on (the remote 745.Xr rpcbind 8 746service is consulted for this information). | 707is a socket; if it is 708.Dv RPC_ANYSOCK , 709then this routine opens a new one and sets 710.Fa sockp . 711The 712.Tn UDP 713transport resends the call message in intervals of 714.Fa wait --- 37 unchanged lines hidden (view full) --- 752address 753.Fa addr . 754If 755.Fa addr\->sin_port 756is zero, then it is set to actual port that the remote 757program is listening on (the remote 758.Xr rpcbind 8 759service is consulted for this information). |
747The parameter | 760The |
748.Fa sockp | 761.Fa sockp |
762argument |
|
749is a socket; if it is 750.Dv RPC_ANYSOCK , 751then this routine opens a new one and sets 752.Fa sockp . 753The 754.Tn UDP 755transport resends the call message in intervals of 756.Fa wait --- 29 unchanged lines hidden (view full) --- 786.Fa prognum , 787version 788.Fa versnum ; 789the client uses 790.Ux Ns -domain 791sockets as a transport. 792The local program is located at the 793.Fa *raddr . | 763is a socket; if it is 764.Dv RPC_ANYSOCK , 765then this routine opens a new one and sets 766.Fa sockp . 767The 768.Tn UDP 769transport resends the call message in intervals of 770.Fa wait --- 29 unchanged lines hidden (view full) --- 800.Fa prognum , 801version 802.Fa versnum ; 803the client uses 804.Ux Ns -domain 805sockets as a transport. 806The local program is located at the 807.Fa *raddr . |
794The parameter | 808The |
795.Fa sockp | 809.Fa sockp |
810argument |
|
796is a socket; if it is 797.Dv RPC_ANYSOCK , 798then this routine opens a new one and sets 799.Fa sockp . 800Since 801.Ux Ns -based 802.Tn RPC 803uses buffered 804.Tn I/O , 805the user may specify the size of the send and receive buffers | 811is a socket; if it is 812.Dv RPC_ANYSOCK , 813then this routine opens a new one and sets 814.Fa sockp . 815Since 816.Ux Ns -based 817.Tn RPC 818uses buffered 819.Tn I/O , 820the user may specify the size of the send and receive buffers |
806with the parameters | 821with the |
807.Fa sendsz 808and | 822.Fa sendsz 823and |
809.Fa recvsz ; | 824.Fa recvsz 825arguments; |
810values of zero choose suitable defaults. 811This routine returns 812.Dv NULL 813if it fails. 814.Pp 815.It Xo 816.Ft int 817.Xc --- 97 unchanged lines hidden (view full) --- 915.Xr rpcbind 8 916on the host at 917.Tn IP 918address 919.Fa addr 920to make an 921.Tn RPC 922call on your behalf to a procedure on that host. | 826values of zero choose suitable defaults. 827This routine returns 828.Dv NULL 829if it fails. 830.Pp 831.It Xo 832.Ft int 833.Xc --- 97 unchanged lines hidden (view full) --- 931.Xr rpcbind 8 932on the host at 933.Tn IP 934address 935.Fa addr 936to make an 937.Tn RPC 938call on your behalf to a procedure on that host. |
923The parameter | 939The |
924.Fa portp | 940.Fa portp |
941argument |
|
925will be modified to the program's port number if the 926procedure 927succeeds. | 942will be modified to the program's port number if the 943procedure 944succeeds. |
928The definitions of other parameters are discussed | 945The definitions of other arguments are discussed |
929in 930.Fn callrpc 931and 932.Fn clnt_call . 933This procedure should be used for a 934.Dq ping 935and nothing 936else. --- 60 unchanged lines hidden (view full) --- 997service package. 998If a request arrives for program 999.Fa prognum , 1000version 1001.Fa versnum , 1002and procedure 1003.Fa procnum , 1004.Fa procname | 946in 947.Fn callrpc 948and 949.Fn clnt_call . 950This procedure should be used for a 951.Dq ping 952and nothing 953else. --- 60 unchanged lines hidden (view full) --- 1014service package. 1015If a request arrives for program 1016.Fa prognum , 1017version 1018.Fa versnum , 1019and procedure 1020.Fa procnum , 1021.Fa procname |
1005is called with a pointer to its parameter(s); | 1022is called with a pointer to its argument(s); |
1006.Fa progname 1007should return a pointer to its static result(s); 1008.Fa inproc | 1023.Fa progname 1024should return a pointer to its static result(s); 1025.Fa inproc |
1009is used to decode the parameters while | 1026is used to decode the arguments while |
1010.Fa outproc 1011is used to encode the results. 1012This routine returns zero if the registration succeeded, \-1 1013otherwise. 1014.Pp 1015Warning: remote procedures registered in this form 1016are accessed using the 1017.Tn UDP/IP --- 32 unchanged lines hidden (view full) --- 1050.Pp 1051.It Xo 1052.Vt fd_set svc_fdset ; 1053.Xc 1054.Pp 1055A global variable reflecting the 1056.Tn RPC 1057service side's | 1027.Fa outproc 1028is used to encode the results. 1029This routine returns zero if the registration succeeded, \-1 1030otherwise. 1031.Pp 1032Warning: remote procedures registered in this form 1033are accessed using the 1034.Tn UDP/IP --- 32 unchanged lines hidden (view full) --- 1067.Pp 1068.It Xo 1069.Vt fd_set svc_fdset ; 1070.Xc 1071.Pp 1072A global variable reflecting the 1073.Tn RPC 1074service side's |
1058read file descriptor bit mask; it is suitable as a template parameter | 1075read file descriptor bit mask; it is suitable as a template argument |
1059to the 1060.Xr select 2 1061system call. 1062This is only of interest 1063if a service implementor does not call 1064.Fn svc_run , 1065but rather does his own asynchronous event processing. 1066This variable is read\-only (do not pass its address to --- 40 unchanged lines hidden (view full) --- 1107.Pp 1108A macro that decodes the arguments of an 1109.Tn RPC 1110request 1111associated with the 1112.Tn RPC 1113service transport handle, 1114.Fa xprt . | 1076to the 1077.Xr select 2 1078system call. 1079This is only of interest 1080if a service implementor does not call 1081.Fn svc_run , 1082but rather does his own asynchronous event processing. 1083This variable is read\-only (do not pass its address to --- 40 unchanged lines hidden (view full) --- 1124.Pp 1125A macro that decodes the arguments of an 1126.Tn RPC 1127request 1128associated with the 1129.Tn RPC 1130service transport handle, 1131.Fa xprt . |
1115The parameter | 1132The |
1116.Fa in | 1133.Fa in |
1134argument |
|
1117is the address where the arguments will be placed; 1118.Fa inproc 1119is the 1120.Tn XDR 1121routine used to decode the arguments. 1122This routine returns one if decoding succeeds, and zero 1123otherwise. 1124.Pp --- 111 unchanged lines hidden (view full) --- 1236.Ft bool_t 1237.Fn svc_sendreply "SVCXPRT *xprt" "xdrproc_t outproc" "char *out" 1238.Xc 1239.Pp 1240Called by an 1241.Tn RPC 1242service's dispatch routine to send the results of a 1243remote procedure call. | 1135is the address where the arguments will be placed; 1136.Fa inproc 1137is the 1138.Tn XDR 1139routine used to decode the arguments. 1140This routine returns one if decoding succeeds, and zero 1141otherwise. 1142.Pp --- 111 unchanged lines hidden (view full) --- 1254.Ft bool_t 1255.Fn svc_sendreply "SVCXPRT *xprt" "xdrproc_t outproc" "char *out" 1256.Xc 1257.Pp 1258Called by an 1259.Tn RPC 1260service's dispatch routine to send the results of a 1261remote procedure call. |
1244The parameter | 1262The |
1245.Fa xprt | 1263.Fa xprt |
1264argument |
|
1246is the request's associated transport handle; 1247.Fa outproc 1248is the 1249.Tn XDR 1250routine which is used to encode the results; and 1251.Fa out 1252is the address of the results. 1253This routine returns one if it succeeds, zero otherwise. --- 24 unchanged lines hidden (view full) --- 1278.It Xo 1279.Ft void 1280.Xc 1281.It Xo 1282.Fn svcerr_decode "SVCXPRT *xprt" 1283.Xc 1284.Pp 1285Called by a service dispatch routine that cannot successfully | 1265is the request's associated transport handle; 1266.Fa outproc 1267is the 1268.Tn XDR 1269routine which is used to encode the results; and 1270.Fa out 1271is the address of the results. 1272This routine returns one if it succeeds, zero otherwise. --- 24 unchanged lines hidden (view full) --- 1297.It Xo 1298.Ft void 1299.Xc 1300.It Xo 1301.Fn svcerr_decode "SVCXPRT *xprt" 1302.Xc 1303.Pp 1304Called by a service dispatch routine that cannot successfully |
1286decode its parameters. | 1305decode its arguments. |
1287See also 1288.Fn svc_getargs . 1289.Pp 1290.It Xo 1291.Ft void 1292.Xc 1293.It Xo 1294.Fn svcerr_noproc "SVCXPRT *xprt" --- 44 unchanged lines hidden (view full) --- 1339.Ft void 1340.Xc 1341.It Xo 1342.Fn svcerr_weakauth "SVCXPRT *xprt" 1343.Xc 1344.Pp 1345Called by a service dispatch routine that refuses to perform 1346a remote procedure call due to insufficient | 1306See also 1307.Fn svc_getargs . 1308.Pp 1309.It Xo 1310.Ft void 1311.Xc 1312.It Xo 1313.Fn svcerr_noproc "SVCXPRT *xprt" --- 44 unchanged lines hidden (view full) --- 1358.Ft void 1359.Xc 1360.It Xo 1361.Fn svcerr_weakauth "SVCXPRT *xprt" 1362.Xc 1363.Pp 1364Called by a service dispatch routine that refuses to perform 1365a remote procedure call due to insufficient |
1347authentication parameters. | 1366authentication arguments. |
1348The routine calls 1349.Fn svcerr_auth xprt AUTH_TOOWEAK . 1350.Pp 1351.It Xo 1352.Ft "SVCXPRT *" 1353.Xc 1354.It Xo 1355.Fn svcraw_create void --- 66 unchanged lines hidden (view full) --- 1422.Ux Ns -based 1423.Tn RPC 1424service transport, to which it returns a pointer. 1425The transport is associated with the socket 1426.Fa sock , 1427which may be 1428.Dv RPC_ANYSOCK , 1429in which case a new socket is created. | 1367The routine calls 1368.Fn svcerr_auth xprt AUTH_TOOWEAK . 1369.Pp 1370.It Xo 1371.Ft "SVCXPRT *" 1372.Xc 1373.It Xo 1374.Fn svcraw_create void --- 66 unchanged lines hidden (view full) --- 1441.Ux Ns -based 1442.Tn RPC 1443service transport, to which it returns a pointer. 1444The transport is associated with the socket 1445.Fa sock , 1446which may be 1447.Dv RPC_ANYSOCK , 1448in which case a new socket is created. |
1449The |
|
1430.Fa *path | 1450.Fa *path |
1451argument |
|
1431is a variable-length file system pathname of 1432at most 104 characters. 1433This file is 1434.Em not 1435removed when the socket is closed. 1436.Xr unlink 2 1437must be used to remove the file. 1438Upon completion, --- 13 unchanged lines hidden (view full) --- 1452.It Xo 1453.Ft "SVCXPRT *" 1454.Xc 1455.It Xo 1456.Fn svcunixfd_create "int fd" "u_int sendsize" "u_int recvsize" 1457.Xc 1458.Pp 1459Create a service on top of any open descriptor. | 1452is a variable-length file system pathname of 1453at most 104 characters. 1454This file is 1455.Em not 1456removed when the socket is closed. 1457.Xr unlink 2 1458must be used to remove the file. 1459Upon completion, --- 13 unchanged lines hidden (view full) --- 1473.It Xo 1474.Ft "SVCXPRT *" 1475.Xc 1476.It Xo 1477.Fn svcunixfd_create "int fd" "u_int sendsize" "u_int recvsize" 1478.Xc 1479.Pp 1480Create a service on top of any open descriptor. |
1481The |
|
1460.Fa sendsize 1461and 1462.Fa recvsize | 1482.Fa sendsize 1483and 1484.Fa recvsize |
1485arguments |
|
1463indicate sizes for the send and receive buffers. 1464If they are 1465zero, a reasonable default is chosen. 1466.Pp 1467.It Xo 1468.Ft "SVCXPRT *" 1469.Xc 1470.It Xo 1471.Fn svcfd_create "int fd" "u_int sendsize" "u_int recvsize" 1472.Xc 1473.Pp 1474Create a service on top of any open descriptor. 1475Typically, 1476this 1477descriptor is a connected socket for a stream protocol such 1478as 1479.Tn TCP . | 1486indicate sizes for the send and receive buffers. 1487If they are 1488zero, a reasonable default is chosen. 1489.Pp 1490.It Xo 1491.Ft "SVCXPRT *" 1492.Xc 1493.It Xo 1494.Fn svcfd_create "int fd" "u_int sendsize" "u_int recvsize" 1495.Xc 1496.Pp 1497Create a service on top of any open descriptor. 1498Typically, 1499this 1500descriptor is a connected socket for a stream protocol such 1501as 1502.Tn TCP . |
1503The |
|
1480.Fa sendsize 1481and 1482.Fa recvsize | 1504.Fa sendsize 1505and 1506.Fa recvsize |
1507arguments |
|
1483indicate sizes for the send and receive buffers. 1484If they are 1485zero, a reasonable default is chosen. 1486.Pp 1487.It Xo 1488.Ft "SVCXPRT *" 1489.Xc 1490.It Xo --- 104 unchanged lines hidden (view full) --- 1595.It Xo 1596.Vt struct pmap ; 1597.Xc 1598.It Xo 1599.Ft bool_t 1600.Fn xdr_pmap "XDR *xdrs" "struct pmap *regs" 1601.Xc 1602.Pp | 1508indicate sizes for the send and receive buffers. 1509If they are 1510zero, a reasonable default is chosen. 1511.Pp 1512.It Xo 1513.Ft "SVCXPRT *" 1514.Xc 1515.It Xo --- 104 unchanged lines hidden (view full) --- 1620.It Xo 1621.Vt struct pmap ; 1622.Xc 1623.It Xo 1624.Ft bool_t 1625.Fn xdr_pmap "XDR *xdrs" "struct pmap *regs" 1626.Xc 1627.Pp |
1603Used for describing parameters to various | 1628Used for describing arguments to various |
1604.Xr rpcbind 8 1605procedures, externally. 1606This routine is useful for users who wish to generate | 1629.Xr rpcbind 8 1630procedures, externally. 1631This routine is useful for users who wish to generate |
1607these parameters without using the | 1632these arguments without using the |
1608.Fn pmap_* 1609interface. 1610.Pp 1611.It Xo 1612.Ft bool_t 1613.Fn xdr_pmaplist "XDR *xdrs" "struct pmaplist **rp" 1614.Xc 1615.Pp 1616Used for describing a list of port mappings, externally. 1617This routine is useful for users who wish to generate | 1633.Fn pmap_* 1634interface. 1635.Pp 1636.It Xo 1637.Ft bool_t 1638.Fn xdr_pmaplist "XDR *xdrs" "struct pmaplist **rp" 1639.Xc 1640.Pp 1641Used for describing a list of port mappings, externally. 1642This routine is useful for users who wish to generate |
1618these parameters without using the | 1643these arguments without using the |
1619.Fn pmap_* 1620interface. 1621.Pp 1622.It Xo 1623.Ft bool_t 1624.Fn xdr_rejected_reply "XDR *xdrs" "struct rejected_reply *rr" 1625.Xc 1626.Pp --- 74 unchanged lines hidden --- | 1644.Fn pmap_* 1645interface. 1646.Pp 1647.It Xo 1648.Ft bool_t 1649.Fn xdr_rejected_reply "XDR *xdrs" "struct rejected_reply *rr" 1650.Xc 1651.Pp --- 74 unchanged lines hidden --- |