void c_socket::setAddress(string buffer) { struct hostent *host_ip; m_sin.sin_addr.s_addr = inet_addr( buffer.c_str() ); if( (int)m_sin.sin_addr.s_addr == -1 ) { cout<<"buffer avant gethostbyname: +"<h_addr, host_ip->h_length ); } }