[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gomd-devel] about the gomd+libgomd
From: |
Ramon Pons Vivanco |
Subject: |
Re: [gomd-devel] about the gomd+libgomd |
Date: |
Thu, 6 Mar 2003 01:14:11 +0100 |
On Tue, 4 Mar 2003 09:43:42 +0000, Matthias Rechenburg wrote:
> So there will be no method for "get-clusterload" in the gomd but in the
> libgomd and (to my mind) no "inter-node communication" is really needed.
That's right. We have to bind to a port to allow clients[1] comunication.
For that we need to create a socket and bind to the port. Libcommoncpp do
this socket+bind. But when you are creating the socket, you have to say
the type. That is SOCK_DGRAM => UDP
sockfd = socket(AF_INET, SOCK_DGRAM, 0);
bzero((char *) &serv_addr, sizeof(serv_addr));
serv_addr.sin_family = AF_INET;
serv_addr.sin_addr.s_addr = INADDR_ANY;
serv_addr.sin_port = htons(9889);
bind(sockfd, (struct sockaddr *) &serv_addr, sizeof(serv_addr);
[1] clients: A client is for example openMosixView. Not gomd.
right ?
> about the UDP:
> is there a reason using UDP if we do not need an inter-nodes communication ?
Yes, to listen on a UDP port.
--
.''`. Why is a cow? Mu. (Ommmmmmmmmm)
: :' :
`. `' Proudly running Debian GNU/Linux Sid (Kernel 2.4.20) on Ext3
`- http://laurel.datsi.fi.upm.es/~rpons/
First they ignore you, then they laugh at you, then they fight you,
then you win. -- Mahatma Gandhi
- Re: [gomd-devel] Stuff to monitor, (continued)
- Re: [gomd-devel] about the gomd+libgomd, Ramon Pons Vivanco, 2003/03/03
- Re: [gomd-devel] about the gomd+libgomd, Mirko Caserta, 2003/03/03
- Re: [gomd-devel] about the gomd+libgomd, Matthias Rechenburg, 2003/03/04
- Re: [gomd-devel] about the gomd+libgomd, johnycsh, 2003/03/04
- Re: [gomd-devel] about the gomd+libgomd, Matthias Rechenburg, 2003/03/04
- Re: [gomd-devel] about the gomd+libgomd, johnycsh, 2003/03/05
- Re: [gomd-devel] about the gomd+libgomd, Matthias Rechenburg, 2003/03/05
- Re: [gomd-devel] about the gomd+libgomd, johnycsh, 2003/03/05
- Re: [gomd-devel] about the gomd+libgomd,
Ramon Pons Vivanco <=
- Re: [gomd-devel] about the gomd+libgomd, Matthias Rechenburg, 2003/03/06
- Re: [gomd-devel] about the gomd+libgomd, Ramon Pons Vivanco, 2003/03/06