Thank you Henry, this information is very useful. Currently I'm exploring the /proc/net. Best regards, Hidayat
On Fri, Jun 12, 2009 at 3:45 PM, Henry Vermaak <[email protected]>wrote: > 2009/6/12 dayat <[email protected]>: > > Hi all, > > > > My plan, the system will to monitor the network devices in linux, such > > bandwidth, how many active connections, etc, like sockmon or iptables. > > > > I want to know, can freepascal doing this. What the Linux APIs to call > from > > freepascal. Or can freepascal call the iptables API. I'm confused, > because > > many code for this task writen in C/C++. > > freepascal can do anything c can do, so looking at the c source of the > programs should give you an idea of what to do. > > i'm not a networking expert, but it looks like the files in /proc/net > will help. e.g. /proc/net/dev contains basic transmit/receive > information for my network interfaces. presumably you'll have to read > the kernel docs to get more information on these files. > > henry > > -- >
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
