19 #include <sys/socket.h>
23 #include <hurd/ifsock.h>
24 #include <hurd/socket.h>
36 addr_port_t aport = MACH_PORT_NULL;
41 error_t create_address_port (io_t port,
53 if (file == MACH_PORT_NULL)
55 err_port = __ifsock_getsockaddr (file, aport);
57 if (err_port == MIG_BAD_ID || err_port == EOPNOTSUPP)
63 err_port = __socket_create_address (port,
76 err = create_address_port (port, addr, addr_len,
83 err = __socket_send (port, aport,
86 MACH_MSG_TYPE_COPY_SEND, 0,
92 if (aport != MACH_PORT_NULL)