<div dir="ltr">Hi Christophe, <br><div class="gmail_quote"><div dir="ltr"><div><div><div><div><div><div><br></div>Thank you for this precision ! I was not able to locate this brand new doc section but it might be related to my browser cache.<br>
<br>While we are at it, I think I found two bugs in the gmsh remote code:<br>
</div></div><br>+ first, it seems to me that the GMSH_MERGE_FILE remote command is interpreted as a 'load file' command, which clears the 3D model even if what is merged are data to be applied on that model (in contrast with the GUI 'merge file' menu item).<br>
</div><br>+ second, in the header parsing function:<br> int ReceiveHeader(int *type, int *len, int *swap) /* GmshSocket.h, 2 files */<br></div>the byte swapping logic to parse the message length is at present: <br> if(*len < 0) return 0;<br>
if(*swap) _SwapBytes((char*)len, sizeof(int), 1);<br></div><div>which works well as long as 'len' is less than 128 :) It should probably read:<br> if(*swap) _SwapBytes((char*)len, sizeof(int), 1);<br> if(*len < 0) return 0;<br>
</div><div>(This change may also be applied to the message type parsing a few lines before although it is here less critical as the MessageType enum max value is 104).<br><br></div><div>With kind regards,<br></div><div>And thank you again for gmsh.<span><font color="#888888"><br>
</font></span></div><span><font color="#888888"><div>Pierre<br></div><div> <br></div><div><div><br><div> <br><div><div><div><br><br></div></div></div></div></div></div></font></span></div><div>
<div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/20 Christophe Geuzaine <span dir="ltr"><<a href="mailto:cgeuzaine@ulg.ac.be" target="_blank">cgeuzaine@ulg.ac.be</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Pierre - it's normal (but the documentation is indeed not very explicit...). The socket name is actually a "base name", to which the unique client ID is appended. The doc has been fixed.<br>
<br>
Thanks,<br>
<br>
Christophe<br>
<div><div><br>
On 14 Aug 2013, at 00:54, Pierre Boulenguez <<a href="mailto:pierre.boulenguez@gmail.com" target="_blank">pierre.boulenguez@gmail.com</a>> wrote:<br>
<br>
> Typo : "localhost:10000" gives gmsh listening on ip 100002<br>
> On 14/08/2013 00:49, Pierre Boulenguez wrote:<br>
>> Precision: I use ubuntu 13.04<br>
>><br>
>> On 14/08/2013 00:44, Pierre Boulenguez wrote:<br>
>>> Hello,<br>
>>><br>
>>> A '2' is suffixed to the socket ip number of gmsh: for instance, configured with "localhost:10000" (through the GUI or the Gmsh Option File) gmsh will in fact listen to the port 10002.<br>
>>><br>
>>> I could not find information regarding this behavior in the documentation so I suspect it is a bug. I observed the phenomenon with gmsh 2.6.2 and 2.8.2.<br>
>>><br>
>>> With kind regards,<br>
>>> Pierre<br>
>><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> gmsh mailing list<br>
> <a href="mailto:gmsh@geuz.org" target="_blank">gmsh@geuz.org</a><br>
> <a href="http://www.geuz.org/mailman/listinfo/gmsh" target="_blank">http://www.geuz.org/mailman/listinfo/gmsh</a><br>
<span><font color="#888888"><br>
--<br>
Prof. Christophe Geuzaine<br>
University of Liege, Electrical Engineering and Computer Science<br>
<a href="http://www.montefiore.ulg.ac.be/~geuzaine" target="_blank">http://www.montefiore.ulg.ac.be/~geuzaine</a><br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div>
</div></div></div><br></div>