Thanks for answer.
  I am managed to work with two local socket connections. One is constantly opened and polling
for new events (ADMIN_SHOW_EVT) and the other one opened for sending command and closing as soon as command being sent.
Is it ok to use such approach? It's working but probably incorrect on architecture level.  


On 6 May 2013 18:46, Rainer Weikusat <rweikusat@mobileactivedefense.com> wrote:
Alexander Sbitnev <alexander.sbitnev@gmail.com> writes:
>   Hello there!
>   I am looking into possibility of sending multiple commands through one
> admin connection. Is it possible?

Not easily because racoon is single-threaded and the 'admin protocol'
implementation is synchronous: It accepts a new connection on the
admin socket, reads a request, handles it, replies and closes the
connection. For as long as the daemon is handling the 'admin request',
it won't work on any of its more important 'other duties' such as 'IKE
processing'.

> Is there any documentation on the protocol?

The admin.h file is as good as it gets in this respect.

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Ipsec-tools-devel mailing list
Ipsec-tools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipsec-tools-devel