Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1440917 Details for
Bug 1582030
Multicast does not work in RHVM
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
multicast_server.c
multicast_server.c (text/x-csrc), 1.06 KB, created by
xiywang
on 2018-05-24 02:33:20 UTC
(
hide
)
Description:
multicast_server.c
Filename:
MIME Type:
Creator:
xiywang
Created:
2018-05-24 02:33:20 UTC
Size:
1.06 KB
patch
obsolete
>#include <sys/types.h> >#include <sys/socket.h> >#include <arpa/inet.h> >#include <netinet/in.h> >#include <stdio.h> >#include <stdlib.h> >#include <string.h> >#include <unistd.h> > > >#define MCAST_PORT 8888 >#define MCAST_ADDR "224.0.0.88" /*multicast ip*/ >#define MCAST_DATA "Multicast test message!" >#define MCAST_INTERVAL 3 > > >int main(int argc , char *argv[]) >{ > int s; > struct sockaddr_in mcast_addr; > s = socket(AF_INET, SOCK_DGRAM, 0); > if (s < 0) > { > perror("Open datagram socket error"); > exit(1); > } > else > { > printf("Opening the datagram socket ...OK\n"); > } > > memset((char*)&mcast_addr, 0, sizeof(mcast_addr)); > mcast_addr.sin_family = AF_INET; > mcast_addr.sin_addr.s_addr = inet_addr(MCAST_ADDR); > mcast_addr.sin_port = htons(MCAST_PORT); > > while (1) > { > int n = sendto(s, MCAST_DATA, sizeof(MCAST_DATA), 0, (struct sockaddr *)&mcast_addr, sizeof(mcast_addr)); > if (n < 0) > { > perror("sendto()"); > return -2; > } > sleep(MCAST_INTERVAL); > } > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1582030
:
1440916
| 1440917