Is this a good way to do it? SOCKADDR_IN target; hostent *host=gethostbyname(Address); target.sin_family = AF_INET; target.sin_port = htons(80); memcpy(&target.sin_addr, host->h_addr_list[0], host->h_length); I mean the memcpy part.
[271 byte] By [AntonPodolsky] at [2007-11-20 10:40:25]