gomd-devel
[Top][All Lists]
Advanced

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

[gomd-devel] <LIBRARY>: work started


From: Gian Paolo Ghilardi
Subject: [gomd-devel] <LIBRARY>: work started
Date: Sun, 8 Jun 2003 01:12:45 +0200

Hi all.

As discussed on #gomd with Mirko (busybee) and Marco (CaloRE), I've just
started working on libgomd.

Sorry Matt: you're the maintainer of libgomd. So you have the power to
annihilate my patches... :)

The idea is the following (to be implemented):
1)A new class ("netCode", my fantasy lacks at the moment) includes a few
functions to interact with gomd
2)openConn(IP, port): tries establishing a conn with a gomd daemon
3)requestInfo(infoToRequestStr): if the conn was established, requests
something to a gomd daemon and wiats for the standard one-line-only answer.
If something goes wrong (i.e.: the socket timeout error occurred) returns an
error message. Otherwise it return the answer from the daemon.
4)closeConn(): closes the conn (if established).
5)Each of these C++ functions calls a specific C function: C++ functions
don't do anything. They call and return values from C-functions placed
outside of class-definition. So C++ functions are only wrappers to C
functions.
This approach allow us to provide a structured-style for C clients and an
OOP-style for C++ clients (without writing two distinct libraries).

Please notice the point #3.
The idea is to make clients' life easier.

Comments?

<rejected>





reply via email to

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