[mpich-discuss] open a server on particular port
Eugene N
neverov.biks.07.1 at gmail.com
Thu Jan 27 02:42:52 CST 2011
Hello
I am trying to start an mpi server program on a particular port (so that
other programs might connect later).
I am using MPI_Info to setport key-value, like this
MPI_Info info;
if(MPI_SUCCESS!=MPI_Info_create(&info))
printf("err");
...
MPI_Info_set(info,"port","11555");
...
if(MPI_SUCCESS!=MPI_Open_port(info, port_name))
printf("err");
...
MPI_Info_get(info,"port",0,buf1,&len);
printf("%s\n",buf);
...
printf("server available at %s\n",port_name);
And server opens a random port every time, perhaps i am doing something
wrong (i must be missing something). :
server available at
tag#0$description#192.168.1.4$port#60184$ifname#192.168.1.4$
Any advice is greatly welcome!
Eugene
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110127/d15ce8cb/attachment-0001.htm>
More information about the mpich-discuss
mailing list