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

 

build_sockaddr

#include "sflsock.h"
void
build_sockaddr (
    struct sockaddr_in *sin,            /*  Socket address structure         */
    qbyte host,                         /*  32-bit host address              */
    dbyte port                          /*  16-bit port number               */
)

Synopsis

Builds a socket address structure from the specified host and port addresses. Does not return any value except the built structure.

Source Code - (sflsock.c)

{
    ASSERT (sin);

    sin-> sin_family      = AF_INET;
    sin-> sin_addr.s_addr = htonl (host);
    sin-> sin_port        = htons (port);
}

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