struct sockaddr_in srcAddr socklen_t srcAddrLen char buf int ret buf c

1
2
3
4
5
6
7
8
struct sockaddr_in srcAddr;
socklen_t srcAddrLen;
char *buf;
int ret;
buf = (char *)malloc(1024);
ret = recvfrom(mCastSock, buf, 1024, 0,
(struct sockaddr *)&srcAddr, &srcAddrLen);