| iMatix home page | << | < | > | >> |
SFL Version 2.11 |
#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 */ )
Builds a socket address structure from the specified host and port addresses. Does not return any value except the built structure.
{ ASSERT (sin); sin-> sin_family = AF_INET; sin-> sin_addr.s_addr = htonl (host); sin-> sin_port = htons (port); }
| << | < | > | >> | Copyright © 1996-2000 iMatix Corporation |