| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

passive_UDP

#include "sflsock.h"
sock_t
passive_UDP (
    const char *service                 /*  Service name or port as string   */
)

Synopsis

Creates a passive UDP socket for the specified service. Returns socket number or INVALID_SOCKET. If it returns INVALID_SOCKET, you can get the reason for the error by calling connect error (). This may be one of:
IP NOSOCKETS Sockets not supported on this system
IP BADSERVICE Service cannot be converted to port number
IP BADPROTOCOL Cannot understand protocol name
IP SOCKETERROR Cannot create the passive socket
IP BINDERROR Cannot bind to the port

Source Code - (sflsock.c)

{
    ASSERT (service && *service);
    return (passive socket (service, "udp", 0));
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation