chiark / gitweb /
Update manual style.
[mLib] / man / conn.3
index 663fc1e2602496dd321eb58da1e848b0bc9a15bb..f9dd0d21aaf781d8ad56ec4bbcdce0a7bd560116 100644 (file)
@@ -1,5 +1,5 @@
 .\" -*-nroff-*-
 .\" -*-nroff-*-
-.TH conn 3 "23 May 1999" mLib
+.TH conn 3 "23 May 1999" "Straylight/Edgeware" "mLib utilities library"
 .\" @conn_init
 .\" @conn_kill
 .SH NAME
 .\" @conn_init
 .\" @conn_kill
 .SH NAME
@@ -28,33 +28,33 @@ selector must be initialized.  This requires a call to
 .B conn_init
 with a fairly large number of arguments:
 .TP
 .B conn_init
 with a fairly large number of arguments:
 .TP
-.I c
+.BI "conn *" c
 Pointer to
 .B conn
 object which needs to be initialized.
 .TP
 Pointer to
 .B conn
 object which needs to be initialized.
 .TP
-.I s
+.BI "sel_state *" s
 Pointer to a multiplexor object (type
 .BR sel_state )
 to which this selector should be attached.  See
 .BR sel (3)
 for more details about multiplexors, and how this whole system works.
 .TP
 Pointer to a multiplexor object (type
 .BR sel_state )
 to which this selector should be attached.  See
 .BR sel (3)
 for more details about multiplexors, and how this whole system works.
 .TP
-.I fd
+.BI "int " fd
 File descriptor for the socket you want to connect.  This becomes the
 `property' of the
 .B conn
 selector until the connection attempt finishes.  For example, if there's
 an error, the descriptor will be closed.
 .TP
 File descriptor for the socket you want to connect.  This becomes the
 `property' of the
 .B conn
 selector until the connection attempt finishes.  For example, if there's
 an error, the descriptor will be closed.
 .TP
-.I dst
+.BI "struct sockaddr *" dst
 Pointer to destination socket address for the connection.  Make sure
 that the address has the right family.
 .TP
 Pointer to destination socket address for the connection.  Make sure
 that the address has the right family.
 .TP
-.I dsz 
+.BI "int " dsz 
 Size of the destination socket address.
 .TP
 Size of the destination socket address.
 .TP
-.I func
+.BI "void (*" func ")(int " fd ", void *" p )
 A function to call when the connection is complete.  It is passed the
 file descriptor of the connected socket, and the pointer passed
 to
 A function to call when the connection is complete.  It is passed the
 file descriptor of the connected socket, and the pointer passed
 to
@@ -66,7 +66,7 @@ passed, and the global
 .B errno
 value is set appropriately.
 .TP
 .B errno
 value is set appropriately.
 .TP
-.I p
+.BI "void *" p
 An arbitrary pointer whose value is passed to the handler function when
 the connection finishes.
 .PP
 An arbitrary pointer whose value is passed to the handler function when
 the connection finishes.
 .PP