API code example

jan <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <[email protected]>
Hi,

More code for api idé:

No pointers should be visible by library, that will make keepaliveds 
core code more stable.

Also one fork to protected current functions, and a single thread for 
every connection.

A very short call to a unix socket, can handle lot of data in a threaded 
model.

Also a mutex is needed to protect linked lists and write data when 
multiple access to api is
in action, like update data,insert,delete entry's. When read data inside 
a linked
list will lead to crash when delete same link in a another threads as 
example.

Perhaps the "big switch" should be a linked list like Alex other code.

Check and send a feedback

ftp://ftp.artech.se/pub/keepalived/api.h
ftp://ftp.artech.se/pub/keepalived/api.c


2015-05-31 17:02 skrev acassen:
> Branch: refs/tags/v1.2.17
>   Home:   https://github.com/acassen/keepalived
> 
> ------------------------------------------------------------------------------
> 
> _______________________________________________
> Keepalived-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/keepalived-devel

-- 


cheers

/Jan Holmberg

------------------------------------------------------------------------------
_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.