Re: [Pharo-users] How to LAN feature

2018-05-24 Thread Hilaire
Yes, it is only to know where is the server, then I will use your Zinc framework for the real exchange stuff. The udp message may just be 'DrGeoShare' Le 24/05/2018 à 15:51, Sven Van Caekenberghe a écrit : Yes, each UDP packet always contains both the sender and receiver IP (and port). But re

Re: [Pharo-users] How to LAN feature

2018-05-24 Thread Sven Van Caekenberghe
Yes, each UDP packet always contains both the sender and receiver IP (and port). But remember UDP is asynchronous and unreliable, as well as limited in payload size. > On 24 May 2018, at 15:48, Hilaire wrote: > > Oh, for the record, regarding the issue discussed bellow about determining > the

Re: [Pharo-users] How to LAN feature

2018-05-24 Thread Hilaire
Oh, for the record, regarding the issue discussed bellow about determining the NIC IP. When a server broadcast an UDP message, the client receiving it can fetch the server NIC IP from the result returned by the #receiveUDPDataInto: message. I only tested it on the same workstation, but I gue

Re: [Pharo-users] How to LAN feature

2018-05-18 Thread Hilaire
Oh, forget about my request, I miss some of the important comments in your package. I should have enought to play with it. Le 18/05/2018 à 11:33, Hilaire a écrit : As I have very limited knowledge on network stuff, to get started, do you have simple example code to show how to use your packa

Re: [Pharo-users] How to LAN feature

2018-05-18 Thread Hilaire
Hi Henrik, As I have very limited knowledge on network stuff, to get started, do you have simple example code to show how to use your package? Thanks Hilaire Le 08/05/2018 à 08:28, Henrik Sperre Johansen a écrit : No, but it does involve setting certain options on the socket, etc. You coul

Re: [Pharo-users] How to LAN feature

2018-05-14 Thread Sean P. DeNigris
HilaireFernandes wrote > No idea about what it is. >> I assume you know about ProcessWrapper ProcessWrapper = OSProcess for Windows - Cheers, Sean -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] How to LAN feature

2018-05-14 Thread Cédrick Béler
Might be in cmd: ipconfig /all Cédrick > Le 14 mai 2018 à 16:56, Hilaire a écrit : > > No idea about what it is. > > >> Le 14/05/2018 à 15:03, Sean P. DeNigris a écrit : >> HilaireFernandes wrote >>> I need a strategy that will work on Windows too >> I assume you know about ProcessWrapper

Re: [Pharo-users] How to LAN feature

2018-05-14 Thread Hilaire
No idea about what it is. Le 14/05/2018 à 15:03, Sean P. DeNigris a écrit : HilaireFernandes wrote I need a strategy that will work on Windows too I assume you know about ProcessWrapper. Is there no Windows command to get similar info? -- Dr. Geo http://drgeo.eu

Re: [Pharo-users] How to LAN feature

2018-05-14 Thread Sean P. DeNigris
HilaireFernandes wrote > I need a strategy that will work on Windows too I assume you know about ProcessWrapper. Is there no Windows command to get similar info? - Cheers, Sean -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] How to LAN feature

2018-05-14 Thread Henrik Sperre Johansen
Julián Maestri-2 wrote >> >> (impossible without the added networking prims, and still unreliable >> whether it will find the correct ones with...) >> > > The problem seems to be here: he->h_addr_list[0] its a list of addresses > and only the first one is used. That's the "old" ipv4 primitive. T

Re: [Pharo-users] How to LAN feature

2018-05-14 Thread HilaireFernandes
Hello, Thanks for the tip. Yep, indeed it is possible to get the information from the command line. But I need a strategy that will work on Windows too (75% of the Dr. Geo user base). I have the same problem with bitmap clipboard, I have a strategy only for linux with command line[1], may be for

Re: [Pharo-users] How to LAN feature

2018-05-13 Thread john pfersich
Oops, the -s flag doesn't work on Mac OS. On Sun, May 13, 2018 at 7:41 PM, john pfersich wrote: > ​ > ​ > I don’t know if this will help, you can use OSProcess to run the ifconfig > Unix (MAC OS) command, kind of like this: > > ​Use ifconfig -s to get a list of the interfaces: > > ​Iface MTU M

Re: [Pharo-users] How to LAN feature

2018-05-13 Thread john pfersich
​ ​ I don’t know if this will help, you can use OSProcess to run the ifconfig Unix (MAC OS) command, kind of like this: ​Use ifconfig -s to get a list of the interfaces: ​Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVRTX-OK TX-ERR TX-DRP TX-OVR Flg enp2s0 1500 0 0 0 0 0

Re: [Pharo-users] How to LAN feature

2018-05-13 Thread Julián Maestri
> > (impossible without the added networking prims, and still unreliable > whether it will find the correct ones with...) > The problem seems to be here: he->h_addr_list[0] its a list of addresses and only the first one is used. Unix: https://github.com/pharo-project/pharo-vm/blob/e0ce2d9d78c3c7b

Re: [Pharo-users] How to LAN feature

2018-05-13 Thread Hilaire
I already tried the one you suggested, but it returns the loopback IP on P7. With the Henrik SSDP package, I can get the IP: SSDPParticipant new allLocalV4Addresses. However when I activate a second network interface, this last one returns an empty collection. When inactivating this second int

Re: [Pharo-users] How to LAN feature

2018-05-13 Thread Julián Maestri
I think he means you can not discover all interfaces from Pharo. I have 2 network interfaces with addresses 192.168.0.4 and 192.168.56.1 Pharo only returns the first one. NetNameResolver localHostName "'thepc'". NetNameResolver localHostAddress. "#[192 168 0 4]" NetNameResolver nameForAddress: #

Re: [Pharo-users] How to LAN feature

2018-05-13 Thread Hilaire
Hi Norbert, Just to be sure I understood correctly what you wrote regarding network interface: Do you mean it is impossible to discover the network interface IP address from the image? It is this IP the teacher Dr. Geo server needs to broadcast over UDP. Hilaire Le 08/05/2018 à 16:22, Henr

Re: [Pharo-users] How to LAN feature

2018-05-11 Thread Hilaire
I have been reading and learning about your Zinc HTTP framework, on the client side for now. It looks fantastic with all the needed pieces. I guess the server part has all the needed part of the teacher share counter part. Thanks Hilaire Le 07/05/2018 à 20:05, Sven Van Caekenberghe a écrit :

Re: [Pharo-users] How to LAN feature

2018-05-09 Thread Dimitris Chloupis
On Sun, May 6, 2018 at 1:48 PM Hilaire wrote: > Hi, > > I am looking for advices on a feature I want to develop for Dr. Geo. > > The need takes place in a LAN, for example in a School computer lab. > I think that even in the case of a LAN you can still do it via internet using something like git

Re: [Pharo-users] How to LAN feature

2018-05-09 Thread N. Bouraqadi
Hi, Just want to point that I did some work late 2017 on UDP sockets including multicast and broadcast. The package named 'NetworkExtras' is part of the ReusableBricks repo of my team. http://smalltalkhub.com/#!/~CAR/ReusableBricks It has some dependencies on other packages. I tested it in Phar

Re: [Pharo-users] How to LAN feature

2018-05-08 Thread Norbert Hartl
That is mDNS being used. Bonjour is the MacOS service and Avahi the linux one. Norbert > Am 09.05.2018 um 02:25 schrieb Julián Maestri : > > You could also publish on a zeroconf service (Bonjour/Avahi) > https://en.wikipedia.org/wiki/Zero-configuration_networking > >> On 8 May 2018 at 11:22,

Re: [Pharo-users] How to LAN feature

2018-05-08 Thread Julián Maestri
You could also publish on a zeroconf service (Bonjour/Avahi) https://en.wikipedia.org/wiki/Zero-configuration_networking On 8 May 2018 at 11:22, Henrik Sperre Johansen wrote: > Ben Coman wrote > > mDNS would be an interesting facility to include in the main Pharo > release > > image, > > perhaps

Re: [Pharo-users] How to LAN feature

2018-05-08 Thread Henrik Sperre Johansen
Ben Coman wrote > mDNS would be an interesting facility to include in the main Pharo release > image, > perhaps making it very easy for our "live" systems to locate each other on > a local network without external infrastructure. > > > cheers -ben mDNS and SSDP are pretty much interchangeable, i

Re: [Pharo-users] How to LAN feature

2018-05-08 Thread Norbert Hartl
> Am 08.05.2018 um 15:05 schrieb Ben Coman : > >> Le 8 mai 2018 à 08:28, Henrik Sperre Johansen > > a écrit : >> >> HilaireFernandes wrote >>> Computer should be on a same network, however not sure about swtich in >>> between. >>> >>> Does UDP broadcast re

Re: [Pharo-users] How to LAN feature

2018-05-08 Thread Sven Van Caekenberghe
> On 8 May 2018, at 15:05, Ben Coman wrote: > >> Le 8 mai 2018 à 08:28, Henrik Sperre Johansen >> a écrit : >> >> HilaireFernandes wrote >>> Computer should be on a same network, however not sure about swtich in >>> between. >>> >>> Does UDP broadcast required particular privilege on the h

Re: [Pharo-users] How to LAN feature

2018-05-08 Thread Ben Coman
> > Le 8 mai 2018 à 08:28, Henrik Sperre Johansen < > henrik.s.johan...@veloxit.no> a écrit : > > HilaireFernandes wrote > > Computer should be on a same network, however not sure about swtich in > between. > > Does UDP broadcast required particular privilege on the host? > > Thanks > > Hilaire > >

Re: [Pharo-users] How to LAN feature

2018-05-08 Thread Cédrick Béler
Hi, FYI, Noury did this package (Network-Extra). I will test for my lecture. It has UDP Multicast/broadcast and may help for the discovery phase (I’m interested in that either). He said that about it: - UDP support : mutlicast + broadcast - fragment a (large) data et assemble it over UDP -la po

Re: [Pharo-users] How to LAN feature

2018-05-07 Thread Henrik Sperre Johansen
HilaireFernandes wrote > Computer should be on a same network, however not sure about swtich in > between. > > Does UDP broadcast required particular privilege on the host? > > Thanks > > Hilaire > > Le 06/05/2018 à 13:31, Norbert Hartl a écrit : >> If it is on a single network this should be

Re: [Pharo-users] How to LAN feature

2018-05-07 Thread Hilaire
Computer should be on a same network, however not sure about swtich in between. Does UDP broadcast required particular privilege on the host? Thanks Hilaire Le 06/05/2018 à 13:31, Norbert Hartl a écrit : If it is on a single network this should be doable by using UDP broadcast announcements

Re: [Pharo-users] How to LAN feature

2018-05-07 Thread Sven Van Caekenberghe
Uploading can be done using an HTTP POST or PUT, just like Playground does its Remote Publish, or Monticello its Save operation. > On 7 May 2018, at 19:15, Hilaire wrote: > > As described previously, students may also upload their work at the end of a > teaching session. > > Hilaire > > > L

Re: [Pharo-users] How to LAN feature

2018-05-07 Thread Hilaire
As described previously, students may also upload their work at the end of a teaching session. Hilaire Le 07/05/2018 à 18:57, Norbert Hartl a écrit : For what do you need an FTP server? For browsing and downloading usually a HTTP server is as good as. You implement a handler that returns a d

Re: [Pharo-users] How to LAN feature

2018-05-07 Thread Norbert Hartl
> Am 07.05.2018 um 18:08 schrieb Hilaire : > >> Le 06/05/2018 à 13:31, Norbert Hartl a écrit : >> If it is on a single network this should be doable by using UDP broadcast >> announcements. The share server can announce some information and its IP in >> a UDP packet being broadcasted. Every cl

Re: [Pharo-users] How to LAN feature

2018-05-07 Thread Hilaire
Le 06/05/2018 à 13:31, Norbert Hartl a écrit : If it is on a single network this should be doable by using UDP broadcast announcements. The share server can announce some information and its IP in a UDP packet being broadcasted. Every client receives that and then knows the address of the serv

Re: [Pharo-users] How to LAN feature

2018-05-06 Thread p...@highoctane.be
On Sun, May 6, 2018 at 1:31 PM, Norbert Hartl wrote: > If it is on a single network this should be doable by using UDP broadcast > announcements. The share server can announce some information and its IP in > a UDP packet being broadcasted. Every client receives that and then knows > the address

Re: [Pharo-users] How to LAN feature

2018-05-06 Thread Norbert Hartl
If it is on a single network this should be doable by using UDP broadcast announcements. The share server can announce some information and its IP in a UDP packet being broadcasted. Every client receives that and then knows the address of the server to connect to Hope this helps, Norbert > Am

[Pharo-users] How to LAN feature

2018-05-06 Thread Hilaire
Hi, I am looking for advices on a feature I want to develop for Dr. Geo. The need takes place in a LAN, for example in a School computer lab. A teacher and students each run their own instance of Dr. Geo. I want the teacher to be able to share with her students some sketches. Then the student