Hi I am delving in to network programming and having difficulty in understanding the typecasting effects:
E.g the function is:
int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
and we are passing the following:
accept(sock, (struct sockaddr *)&client, &len))
for struct sockaddr *add, can't i just pass the
address &client, instead of typecasting it with
(struct sockaddr *), what does typecasting mean in this case.