summaryrefslogtreecommitdiff
path: root/pflocal/sock.h
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-07-16 02:21:22 +0000
committerMiles Bader <miles@gnu.org>1995-07-16 02:21:22 +0000
commite63dfe40a3b8eaf68ce1975c884fb365f5ede846 (patch)
tree1a1325686643182ab5637c085aa8b58c254fecb9 /pflocal/sock.h
parentd8f9ddbf411b05a1fa7cdd637b83822ebce59fea (diff)
Formerly sock.h.~3~
Diffstat (limited to 'pflocal/sock.h')
-rw-r--r--pflocal/sock.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/pflocal/sock.h b/pflocal/sock.h
index 6b6cc68e..fdd076c5 100644
--- a/pflocal/sock.h
+++ b/pflocal/sock.h
@@ -97,4 +97,19 @@ error_t sock_create (struct sock *template, struct sock **sock);
/* Return a new user port on SOCK in PORT. */
error_t sock_create_port (struct sock *sock, mach_port_t *port);
+/* Bind SOCK to ADDR. */
+error_t sock_bind (struct sock *sock, struct addr *addr);
+
+/* Returns SOCK's address in ADDR, with an additional reference added. If
+ SOCK doesn't currently have an address, one is fabricated first. */
+error_t sock_get_addr (struct sock *sock, struct addr *addr);
+
+/* Returns a send right to SOCK's address in ADDR_PORT. If SOCK doesn't
+ currently have an address, one is fabricated first. */
+error_t sock_get_addr_port (struct sock *sock, mach_port_t *addr_port);
+
+/* If SOCK is a connected socket, returns a send right to SOCK's peer's
+ address in ADDR_PORT. */
+error_t sock_get_write_addr_port (struct sock *sock, mach_port_t *addr_port);
+
#endif /* __SOCK_H__ */