[Geneticd-devel] Client class
Status: Alpha
Brought to you by:
jonnymind
|
From: Jonny M. <jon...@ni...> - 2002-01-19 04:52:08
|
It is ready on the CVS. There is a client class that connectcs with another geneticd, and can sent it orders and interpret replies: GDClient. The class has methods to log in, parse the replies, put autmatically all the multi-line responses in a vector, and the binary responses (i.e. agent transfers) in a buffer. It has also an advanced name resolver to find other hosts by name. There is still something to do (i.e. async timed out client), but the basic brick for a master-slave engine are now on. To try it, use the new "test" command, that we'll use to test experimental features from now on: launch test "hostname"; hostname can be also "localhost". Although the client class can connect to any port, the test command is limited to port 2001. The test command will log in as root (passwor root), ask a "stat" command, disply the multi line reply, and then will transfer agent 1 from engine 0. If the engine 0 is not present, the routine won't crash... and this is GOOD. It will automatically fill binary data variable with void values, and reply status to the replied error code (-501 invalid eng id?). Here we are. Next step is a working parallel class. bye, Giancarlo. |