Thanks for prevous answer. I would like, if possible, to have a execline script allowing to behave as 2 server-side sockets (accepting as many connections as possible like s6-tcpserver) and an engine (process probably) between the 2 sides able to act as a bridge. ----------------for example, i thought about this architectureworld1 <--- IP ---> srv1 process <--- unix socket/pipe ---> program <--- unix socket/pipe ---> srv2 process <--- IP ---> world2 |---------------------------------------------- execline script ------------------------------------------------|
---------------- if it is not possible I will do it as pure C program. regards Vincent de RIBOU région Ouest - France [email protected] Le Vendredi 20 mars 2015 13h31, Laurent Bercot <[email protected]> a écrit : On 20/03/2015 12:27, Vincent de RIBOU wrote: > Hi all, I am not very used to edit execline scripts to do high level > features!! Do you think it is possible to edit some execline script > in order to perform a 2 sockets tcp server ( or whatever type else) > connections, with also an engine (data transtyping, or something > else) between the 2 sides?? Or should I build this system in pure C > (skalibs of course)?? If you don't have more than one server side (as in bind/listen/accept), and all the other sockets are client side (as in connect) then it is easy; if you have multiple server-side sockets, you're probably better off writing your own program to handle connections. But I can't be more precise without knowing exactly what you are trying to achieve. Please describe what you want in a bit more detail. -- Laurent
