Using UDX


UDX is a protocol of communication between machines and processes, written by F. Rouillier (see http://www.loria.fr/ rouillie/).



1  Implementation

parallel/udxstream.H

struct udxstream
Class for udx channels.
{
  udx_io_rep cha;
  udx_ieee_rep ie;
  udx_mp_rep  mp;
  int port_nb;

  udxstream(){}
  udxstream(const udxstream & u): cha(u.cha), ie(u.ie), mp(u.mp), port_nb(u.port_nb) {}

  udxstream(char * fnm, int FR);
  udxstream(char * machine,int portnb, int FR);
  udxstream(char * path,char * server, char *remote,char* options);

};


parallel/udxstream.C

udxstream::udxstream(char * fnm, int FR)
Open a read FR=FILE_READ or write FR=FILE_WRITE connection with the file fnm. Example:
<B><PRE>
   udxtream("/tmp/rs.in",  FILE_READ) 
   udxtream("/tmp/rs.out", FILE_WRITE) 
   </PRE></B>
udxstream::udxstream(char * machine,int portnb, int mod)
Open a connection by socket at port number portnb, on the machine machine, on the mod mod (UNICAST_TCP_SERVER or UNICAST_TCP_CLIENT). Example:
<B><PRE>
   udxstream("localhost",3333,UNICAST_TCP_SERVER) 
   udxstream("localhost",3333,UNICAST_TCP_CLIENT) 
   </PRE></B>
udxstream::udxstream(char * path,char * server, char *remote,char* options)
Open a connection to the server server, running on the machine remote, using the path path, under the option argument options. Example:
<B><PRE>
   udxstream("/u/molotova/0/saga/mourrain/C++/","udx.ex", "localhost"," ") 
   </PRE></B>

2  Example

Not yet documented.