bind () 错误:无法分配请求的地址。
new_socket=socket(AF_INET, SOCK_DGRAM, 0);
localIP = "128.1.1.64";
memset(&socket_data, 0, sizeof(socket_data));
// Fill the socket structure
socket_data.sin_family = AF_INET;
socket_data.sin_addr.s_addr = inet_addr(localIP);
socket_data.sin_port = htons(PortNumber);
bind(new_socket, (struct sockaddr*) &socket_data, sizeof(socket_data))
有谁知道为什么 bind() 失败了?