SOCKADDR_IN tcpaddr; tcpaddr.sin_family=AF_INET; tcpaddr.sin_port=htons(端口号); tcpaddr.sin_addr.s_addr=htons(INADDR_ANY);