Hi Bert,<br><br><div> We had hard time to understand everything with Noury while working on Ocean (Network).</div><div> </div><div> The new primitives seems to be there in the new VMs (Cog).</div><div> With Jannik we loaded the Etoys image side code to access them. But, it seems that it does not completly work (on mac).</div>
<div> Probably because the C plugin code is not in sync perhaps it has been modified in VMMaker branch and it has not been merged in Cog branch. </div><div><br></div><div> My question is: do you know if the socket plugin code (all plateforms: unix, ios, win) is the latest one in cog repository (same as in VMMaker)?</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Luc  </div><br><div class="gmail_quote">2012/5/28 Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On 28.05.2012, at 12:00, Damien Cassou wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; some days ago I asked on stackoverflow a question about Unix domain<br>
&gt; socket for Pharo. Bert told me it is possible but I didn&#39;t find the<br>
&gt; source code or examples. Could you please give me a few more hints?<br>
&gt;<br>
&gt; You can answer by email or on<br>
&gt; <a href="http://stackoverflow.com/questions/10759301/how-to-read-from-and-write-to-a-unix-domain-socket-in-pharo" target="_blank">http://stackoverflow.com/questions/10759301/how-to-read-from-and-write-to-a-unix-domain-socket-in-pharo</a><br>

&gt;<br>
&gt; Thank you very much<br>
&gt;<br>
&gt; Best<br>
<br>
<br>
</div>The SocketPlugin supports all socket families nowadays. There are new primitives, in addition to the old ones. So far I think only Etoys uses them. I see for example a method SocketAddressInformation class&gt;&gt;addressFamilyLocal in addition to #addressFamilyINET4 and addressFamilyINET6, which must be good for something.<br>
<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It can use more than IPv4 for sure:<br>
<br>
NetNameResolver addressesForName: &#39;localhost&#39;<br>
        ==&gt; an OrderedCollection(<br>
                ::1(localhost),0(0)-inet6-stream-tcp<br>
                127.0.0.1(localhost),0(0)-inet4-stream-tcp<br>
                fe80::1%lo0(localhost),0(0)-inet6-stream-tcp)<br>
<br>
This was added a couple years ago by Ian Piumarta and Michael Rüger.<br>
<br>
Levente ported the in-image code to Squeak last year, but it was never actually adopted:<br>
<br>
        <a href="http://forum.world.st/Re-The-Inbox-Network-ul-100-mcz-td3618715.html" target="_blank">http://forum.world.st/Re-The-Inbox-Network-ul-100-mcz-td3618715.html</a><br>
<br>
This should be a good starting point for you. You won&#39;t find an example for domain sockets because the main purpose of the new plugin was to support IPv6. But Ian made it generic enough so it should work with any socket family.<br>

<span class="HOEnZb"><font color="#888888"><br>
- Bert -<br>
<br>
<br>
</font></span></blockquote></div><br>