[Vm-dev] How to read from and write to a Unix domain socket
luc.fabresse at gmail.com
Mon May 28 14:58:20 UTC 2012
We had hard time to understand everything with Noury while working on
The new primitives seems to be there in the new VMs (Cog).
With Jannik we loaded the Etoys image side code to access them. But, it
seems that it does not completly work (on mac).
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.
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)?
2012/5/28 Bert Freudenberg <bert at freudenbergs.de>
> On 28.05.2012, at 12:00, Damien Cassou wrote:
> > Hi,
> > some days ago I asked on stackoverflow a question about Unix domain
> > socket for Pharo. Bert told me it is possible but I didn't find the
> > source code or examples. Could you please give me a few more hints?
> > You can answer by email or on
> > Thank you very much
> > Best
> 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>>addressFamilyLocal in addition to #addressFamilyINET4 and
> addressFamilyINET6, which must be good for something.
> It can use more than IPv4 for sure:
> NetNameResolver addressesForName: 'localhost'
> ==> an OrderedCollection(
> This was added a couple years ago by Ian Piumarta and Michael Rüger.
> Levente ported the in-image code to Squeak last year, but it was never
> actually adopted:
> This should be a good starting point for you. You won'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.
> - Bert -
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Vm-dev