I'm having problems with these two lines of code and incompatible types. The code worked, but compiles with this warning:
"warning: pointer targets in passing argument 6 of ârecvfromâ differ in signedness"
I looked up the meening of "signedness" and it is what I guessed--> (+/-)
I looked up the parameter types for recvfrom() but don't understand the last (6th) parameter type in question.Code:server_addr_size = sizeof(server_addr); ... rec_size = recvfrom(skt, &buffer, sizeof(buffer), 0, (struct sockaddr*) &client_addr, &server_addr_size);
The parameter types came for this page:Code:ssize_t recvfrom (int s, void * restrict buf, size_t len, int flags, struct sockaddr * restrict from, socklen_t * restrict fromlen);
Open C Sockets: recv, recvfrom, recvmsg methods - Forum Nokia Wiki