On Tue, 21 Jan 2003 [EMAIL PROTECTED] wrote:
> this code:
> #include
> #include
> #include
> #include
[snip]
You have an ordering problem with the headers. You MUST #include
first. The man page says so :)
>
> produces this error when compiled:
[lots of errors snipped]
fix the order with
this code:
#include
#include
#include
#include
#include
#include
startserver()
{
int sockfd, newsockfd, clilen;
struct sockaddr_in server, cliaddr;
bzero((char *)&server, sizeof(server));
server.sin_addr.s_addr = htonl(INADDR_ANY);
server.sin_port = htons(7001);
server.sin_family =