i created a client server program using TCP and now i want to be able to broadcast which i learned can only be done in UDP. but the messge "ERROR binding: 10047".
i know that error means: address family not supported by protocol family. An address incompatible with the requested protocol was used. All sockets are created with an associated address family (that is, AF_INET for Internet Protocols) and a generic protocol type (that is, SOCK_STREAM). This error is returned if an incorrect protocol is explicitly requested in the socket call, or if an address of the wrong family is used for a socket, for example, in sendto.
but i don't know how to fix it. please look at the attached file.
i really help with this
i know that error means: address family not supported by protocol family. An address incompatible with the requested protocol was used. All sockets are created with an associated address family (that is, AF_INET for Internet Protocols) and a generic protocol type (that is, SOCK_STREAM). This error is returned if an incorrect protocol is explicitly requested in the socket call, or if an address of the wrong family is used for a socket, for example, in sendto.
but i don't know how to fix it. please look at the attached file.
i really help with this