Whenever I do not include arpa/inet.h, this compiles fine in g++, but I cannot use some functions. The error in g++ is:
and line 117 is:Code:tcp.cpp:117: error: conversion from ‘in_addr_t’ to non-scalar type ‘in_addr’ requested
addr is defined as:Code:return((char *)inet_ntoa(addr.s_addr));
Code:struct in_addr addr;