diff --git a/Common/GmshSocket.h b/Common/GmshSocket.h index 225df560e4d293708633d135904f19a21d01da7b..e47aa69f1f2509fe8c610fdf223358121c93d5e8 100644 --- a/Common/GmshSocket.h +++ b/Common/GmshSocket.h @@ -377,7 +377,10 @@ class GmshServer : public GmshSocket{ _portno = ntohs(addr_in.sin_port); char tmp[10]; sprintf(tmp, "%d", _portno); - _sockname = tmp; + // FIXME: I don't understand this -- what should be the syntax + // to use a remote port? "hostname:" ? Then I don't get how + // _portno can be 0 above + _sockname += tmp; } }