Re: execline script as 2 tcp server sockets

From: Vincent de RIBOU <vins_bozo_at_yahoo.fr>
Date: Fri, 20 Mar 2015 13:08:20 +0000 (UTC)

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
belzo2005-dolphin_at_yahoo.fr


     Le Vendredi 20 mars 2015 13h31, Laurent Bercot <ska-skaware_at_skarnet.org> 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
  
Received on Fri Mar 20 2015 - 13:08:20 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC