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 305228 Details for
Bug 444751
CMAN: Initiating transition, generation 18
[?]
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.
Program to send a message to all nodes
sendmsg.c (text/plain), 702 bytes, created by
Christine Caulfield
on 2008-05-13 10:38:54 UTC
(
hide
)
Description:
Program to send a message to all nodes
Filename:
MIME Type:
Creator:
Christine Caulfield
Created:
2008-05-13 10:38:54 UTC
Size:
702 bytes
patch
obsolete
>/* Send a message to all cman nodes */ >#include <sys/types.h> >#include <sys/errno.h> >#include <string.h> >#include <stdlib.h> >#include <stdio.h> > >#include <libcman.h> > >#define MESSAGE "Test Message" >#define PORT 100 > >void datacallback(cman_handle_t handle, void *privdata, > char *buf, int len, uint8_t port, int nodeid) >{ >} > > >int main(int argc, char *argv[]) >{ > cman_handle_t cmanh; > > cmanh = cman_init(NULL); > > if (cman_start_recv_data(cmanh, datacallback, PORT)) { > fprintf(stderr, "Can't bind to port %d: %s\n", PORT, strerror(errno)); > exit(-1); > } > > if (cman_send_data(cmanh, MESSAGE, strlen(MESSAGE)+1, 0, PORT, 0) < 0) > perror("Unable to send message"); > > cman_finish(cmanh); > > 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 444751
:
305142
| 305228