int create_socket(struct in_addr *ip, unsigned int port) { int s = socket(AF_INET, SOCK_STREAM, 0); struct sockaddr_in sin; memset(&sin, 0, sizeof(si