Hi
I'm trying to undrestand socket functions.... (in C)
arguments of bind() and accept() functions is ambiguous for me!
signature of bind() :
int bind(int sockfd, struct sockaddr *my_addr, int addrlen); // okay, no problem
but in example's codes or in the program :
bind (sockfd, (struct sockaddr *)& my_addr, sizeof (struct sockaddr)); // problem
I can not undrestand ---> (struct sockaddr *)
why it is exist in the program? and why "& my_addr" is not only ?
regards