gomd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gomd-devel] gomd answer format


From: rbaardman
Subject: [gomd-devel] gomd answer format
Date: Wed, 27 Aug 2003 12:02:48 +0200
User-agent: Internet Messaging Program (IMP) 3.1

Hi,

since I am writing java2gomd, I'd like to ask if 1 common way of answering 
to requests could be possible. I just wrote a big regexp function for 
extracting nodes from the answer format "address@hidden # 
(AVAILABLE_NODE_LIST:257,258)". But now I discovered that get 42 eth0 
(netload) uses these brackets between several values. I wonder if there is 

a reason for this...or maybe it could be changed from:
(NETWORK_LOAD:0x00002fff)(IFACE_FLAGS:up,promisc,allmulti,mcast)
(ADDERSS:192.168.1.1)(SUBNET:255.255.255.0)(MTU:1500)(COLLISIONS:0)
(PACKETS_IN:316)(PACKETS_OUT:227)(PACKETS_TOTAL:543)(BYTES_IN:20981)
(BYTES_OUT:25853)(BYTES_TOTAL:46834)(ERRORS_IN:0)(ERRORS_OUT:0)
(ERRORS_TOTAL:0)

to:

(NETWORK_LOAD:0x00002fff,IFACE_FLAGS:up,promisc,allmulti,mcast,ADDERSS:192.1
68.1.1,SUBNET:255.255.255.0,MTU:1500,COLLISIONS:0,PACKETS_IN:316,PACKETS_OUT
:227,PACKETS_TOTAL:543,BYTES_IN:20981,BYTES_OUT:25853,BYTES_TOTAL:46834,ERRO
RS_IN:0,ERRORS_OUT:0,ERRORS_TOTAL:0)

Now I could off course replace all ")(" to "," , but I think this would 
save me a lot trouble, since I expect other functions to be diffirent 
aswell :)

cheers,

Roel "roeles" Baardman

-- 
_____________________________________________________________________
Snel en voordelig ADSL nu voor iedereen bereikbaar.
Zon Breedband Budget vanaf EUR 14,95 per maand.
Nu tijdelijk geen aansluitkosten. Bestel snel op zonnet.nl/breedband





reply via email to

[Prev in Thread] Current Thread [Next in Thread]