Home | History | Annotate | Download | only in test

Lines Matching defs:sock

115 leave_group(int sock, struct ip_mreq mreq, char *name);
129 int sock, ret;
257 sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
258 if (sock < 0) {
275 ret = setsockopt(sock, IPPROTO_IP, IP_MULTICAST_TTL, &ttl,
286 ret = setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, (void*)&mreq,
399 ret = bind(sock, (struct sockaddr *) &local, sizeof(struct sockaddr_in));
413 rtp_sender_init(snd, sock, name, ssrc);
427 leave_group(sock, mreq, argv[0]);
448 if (bind(sock, (struct sockaddr *)&name, sizeof(name)) < 0) {
449 close(sock);
453 leave_group(sock, mreq, argv[0]);
463 rtp_receiver_init(rcvr, sock, name, ssrc);
482 leave_group(sock, mreq, argv[0]);
513 leave_group(int sock, struct ip_mreq mreq, char *name) {
516 ret = setsockopt(sock, IPPROTO_IP, IP_DROP_MEMBERSHIP, (void*)&mreq,