[Mc-mint-devel] RFC, new API.
Status: Beta
Brought to you by:
mbernico
|
From: Evgeniy P. <jo...@2k...> - 2002-03-17 22:43:13
|
Hi, mint developers, Here is first part of total MINT rewrite. New API will provide easy way to create shared lib and to work with it. So MINT itself splits into 2 part: library and multicast generator, which implicitly works with lib. This source adds possibility to create libmint.so shared library by runing make lib. Now everyone can create it's own application, which will use multiicast in it's work, with our code. Mike some days ago wanted to create news ticker... Now it is very easy. Simply create your application and use functions from libmint. While linking your application don't forget to add -lmint into the link flags. New interface, i hope, is good and transparent. Developers should init MINT( by calling mc_init_mint), fill MINT private struct( by calling fill_params) and optionally open log file(by calling log_open, NOTE: without it no message will appears on the screen). After it anyone can use recv_data() and send_data() to accordinly receive and send data using multicast ability. btw, i think we should rename this functions. Now only IPv4 seems to work, so please test it. IPv6 stuff will coming at the end of next week( since my paying job and studying take a lot of time). So any bug reports, compliants, suggestions and ideas are very welcome. P.S. i still can't commit diffs in cvs, so i post whole source code here. P.P.S. It was tested only on SuSe 7.3 wth 2.5.6 kernel, any other tests will coming soon. Evgeniy Polyakov ( s0mbre ) |