sockaddr-in Questions
1
Solved
I am receiving error code 67 from the code below, which means ERROR_BAD_NET_NAME.
Why is it happening? How can I fix it?
SOCKADDR address;
strcpy_s(address.sa_data, "8.8.8.8");
address.sa_family...
Newspaper asked 10/5, 2017 at 17:43
2
Solved
I am trying to make a very simple server that accept a connection.
int sock, serv;
struct sockaddr_in in_sock;
serv = socket(AF_INET, SOCK_STREAM, 0);
in_sock.sin_addr.s_addr = 0;
in_sock.sin_port...
Kachine asked 13/10, 2016 at 7:25
1
© 2022 - 2024 — McMap. All rights reserved.