📄 xnscourier.n
字号:
.TH XNSCourier 3 Cornell.\" $Header: xnscourier.n,v 1.2 86/12/15 11:26:22 jqj Exp $.SH NAMECourierOpen, CourierClose, BDTread, BDTwrite, BDTabort, BDTclosewrite \-public runtimes for Unix Courier.SH SYNOPSIS.nf.B #include <sys/types.h>.B #include <netns/ns.h>.B #include <xnscourier/courier.h>.B #include <xnscourier/courierconnection.h>.PP.B CourierConnection *CourierOpen(destaddr).B struct ns_addr *destaddr;.PP.B CourierClose(conn).B CourierConnection *conn;.PP.B int BDTread(conn, buffer, nbytes).B CourierConnection *conn;.B char *buffer;.B int nbytes;.PP.B int BDTwrite(conn, buffer, nbytes).B CourierConnection *conn;.B char *buffer;.B int nbytes;.PP.B BDTclosewrite(conn).B CourierConnection *conn;.PP.B BDTabort(conn).B CourierConnection *conn;.PPcc ... -lcourier.fi.SH DESCRIPTION.PPThese functions are part of the runtime library for XNS Courier remoteprocedure calls. They all require 4.3 BSD with XNS network support enabled..PP.I CourierOpenattempts to open an SPP connection to the address specified. It returns0 on failure.If the port portion of the address is 0, then the standard port forCourier RPC connections, IDPPORT_COURIER, is used..PP.I CourierClosecloses the SPP connection obtained by CourierOpen by means of the usualXNS 3-way END/END-REPLY handshake..PP.I BDTreadand.I BDTwriteare similar to .I read(2)and.I write(2)except that they accept a Courier connection instead of a file descriptor,and transmit or receive at most one SPP packet (maximum size is thus 534bytes, which is also the recommended value of .IR nbytes ).These routines should be used only in a Courier server to perform a BDTdata transfer, or in a Courier client from within a BDT callback routine..PP.I BDTclosewriteand.I BDTabortprovide a way for a BDT source (i.e. write)procedure to end a data transfer, either successfullyor unsuccessfully respectively. In addition, .I BDTabortmay be used to terminate a BDT sink (i.e. read) transfer..SH FILES.nf.fi.SH SEE ALSOall the Courier documentation.SH DIAGNOSTICSNone..SH BUGSProbably lots of them. Expanding ring broadcast is not yet implemented.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -