# /* udp_open.c */ /* EMACS_MODES: c !fill */ /* User Datagram Protocol layer for the UNIX network system. The * following routines are included: * udp_open open udp connection */ #include udp_open (fhost, fsock, lsock) /* Open a udp connection to the specified foreign host with the specified * local and foreign sockets. Note that any or all of the fields may be * NULL to indicate the field is to be ignored in packet demultiplexing. * Return the file descriptor or -1 for error. * * Arguments: */ in_name fhost; /* foreign host address */ unshort fsock; /* foreign socket */ unshort lsock; /* local socket */ { return (in_open (UDPPROT, fhost, fsock, lsock)); }