Index: ossp-pkg/sa/sa.pod RCS File: /v/ossp/cvs/ossp-pkg/sa/sa.pod,v rcsdiff -q -kk '-r1.16' '-r1.17' -u '/v/ossp/cvs/ossp-pkg/sa/sa.pod,v' 2>/dev/null --- sa.pod 2001/10/31 20:27:27 1.16 +++ sa.pod 2001/10/31 20:51:01 1.17 @@ -232,33 +232,50 @@ Import an address by converting from an URI specification to the corresponding address abstraction. The supported URI -syntax is: "CI" for I addresses and -"CIC<:>I" for I addresses. +syntax is: CI for I addresses and +CIC<:>I[C<#>I] for I +addresses. + I can be an absolute or relative file path to an existing or not-existing file. I can be an IPv4 address in dotted decimal -notation (C<127.0.0.1>), an IPv6 address in colon-seperated (optionally -shortended) hexadecimal notation (C<::1>) or a to-be-resolved hostname -(C). I has to be a decimal port in the -range C<1>...C<65535>. +notation (C<127.0.0.1>), an IPv6 address in colon-separated (optionally +abbreviated) hexadecimal notation (C<::1>) or a to-be-resolved hostname +(C). I has to be either a decimal port in +the range C<1>...C<65535> or a port name. If I is specified as a +name, it is resolved as a TCP port by default. To force resolving via a +particular protocol, I can be specified as either C or +C. =item sa_rc_t B(sa_addr_t *I, const struct sockaddr *I, socklen_t I); -Import an address by converting from a tranditional C object to the -corresponding address abstraction. +Import an address by converting from a tranditional C object +to the corresponding address abstraction. The accepted addresses are: C (C), C (C) and C (C). =item sa_rc_t B(sa_addr_t *I, char **I); -Export an address by converting from the -address abstraction to the corresponding URI specification. +Export an address by converting from the address abstraction to the +corresponding URI specification. The result is a string of the form +CI for I addresses and (unresolved/numerical) +CIC<:>I for I addresses. The +caller has to free(3) the I later. =item sa_rc_t B(sa_addr_t *I, struct sockaddr **I, socklen_t *I); -Export an address by converting from the -address abstraction to the corresponding traditional C object. +Export an address by converting from the address abstraction to the +corresponding traditional C object. The result +is one of the following underlying address structures: C (C), C (C) and +C (C). The caller has to free(3) the +I later. =item sa_rc_t B(sa_addr_t *I, sa_addr_t *I, size_t I); -Match two address abstractions +Match two address abstractions by only taking the prefix part of length +I into account. I is number of path characters +for I addresses and number of bits for I +addresses. =back @@ -268,8 +285,12 @@ =item sa_rc_t B(sa_t **I); +Create a socket abstraction object. + =item sa_rc_t B(sa_t *I); +Destroy a socket abstraction object. + =back =head2 Socket Parameter Operations