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 students,from their Dr. Geo running instance, can browse and open the sketches shared by the teacher. The user scenario will be like this: - Teacher copies the sketches she wants to share with her students in her DrGeo.app/myShare folder. Then she activates the Dr. Geo share service (from the setting browser for example). - Students start their own instances of Dr. Geo. It automatically scans (in the background preferably) the LAN for any available LAN shares. When a student goes to File>open she can also browse and open the discovered shares. - Ideally students could also save their work on the teacher share. The constraints: there is no such things as fixed IP. So the scan is over a subnetwork range. Any advices, reference reading, traps to avoid? Thanks Hilaire -- Dr. Geo http://drgeo.eu |
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 06.05.2018 um 12:47 schrieb Hilaire <[hidden email]>: > > 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 students,from their Dr. Geo running instance, can browse and open the sketches shared by the teacher. > > The user scenario will be like this: > > - Teacher copies the sketches she wants to share with her students in her DrGeo.app/myShare folder. Then she activates the Dr. Geo share service (from the setting browser for example). > > - Students start their own instances of Dr. Geo. It automatically scans (in the background preferably) the LAN for any available LAN shares. When a student goes to File>open she can also browse and open the discovered shares. > > - Ideally students could also save their work on the teacher share. > > The constraints: there is no such things as fixed IP. So the scan is over a subnetwork range. > > Any advices, reference reading, traps to avoid? > > Thanks > > Hilaire > > -- > Dr. Geo > http://drgeo.eu > > > |
On Sun, May 6, 2018 at 1:31 PM, Norbert Hartl <[hidden email]> 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 of the server to connect to Not really for Pharo itself but PirateBox is a handy tool for gatherings like you mention (especially since there are often lots of network problems taking away valuable time). Phil > Thanks |
In reply to this post by NorbertHartl
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 server to connect to > > Hope this helps, Norbert Yep, then I can I set up a FTP server to run on the Pharo teacher instance. I already wrote a facade for user friendly FTP client. Does any one know about FTP server on Pharo, for example this one[1]? Thanks Hilaire [1] http://map.squeak.org/package/f84afa9e-c2ea-4d4c-bc65-aea93701753d -- Dr. Geo http://drgeo.eu |
> Am 07.05.2018 um 18:08 schrieb Hilaire <[hidden email]>: > >> 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 server to connect to >> >> Hope this helps, Norbert > > Yep, then I can I set up a FTP server to run on the Pharo teacher instance. I already wrote a facade for user friendly FTP client. > Does any one know about FTP server on Pharo, for example this one[1]? > Norbert > Thanks > > Hilaire > > [1] http://map.squeak.org/package/f84afa9e-c2ea-4d4c-bc65-aea93701753d > > -- > Dr. Geo > http://drgeo.eu > > > |
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 directory list for directories and the file content for files. Can be used with every web browser and zinc you have already in the image, > > Norbert -- Dr. Geo http://drgeo.eu |
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 <[hidden email]> wrote: > > 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 directory list for directories and the file content for files. Can be used with every web browser and zinc you have already in the image, >> >> Norbert > > -- > Dr. Geo > http://drgeo.eu > > > |
In reply to this post by NorbertHartl
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. 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 -- Dr. Geo http://drgeo.eu |
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 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 > > -- > Dr. Geo > http://drgeo.eu No, but it does involve setting certain options on the socket, etc. You could check if http://smalltalkhub.com/#!/~henriksp/SSDP is appropriate/works for you. Cheers, Henry -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html |
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 possibilité de fragmenter une donnée trop grande et la reconstruire au-dessus d'UDP Gofer it smalltalkhubUser: 'CAR' project: 'ReusableBricks'; configurationOf: 'ReusableBricks'; loadBleedingEdge Hope this help, See you, Cédrick Ps: tell me if you use it.
|
On 8 May 2018 at 15:32, Cédrick Béler <[hidden email]> wrote:
If we've got multicast support for Pharo, perhaps its not a long jump to implementing mDNS. Then the teacher could share out their machine as "teacher.local" to let student machines connect to it. The most basic kind of Multicast DNS client may simply send standard DNS queries blindly to 224.0.0.251:5353, without necessarily even being aware of what a multicast address is. This change can typically be implemented with just a few lines of code in an existing DNS resolver library. @Udo, did you ever find that mDNS package you lost? 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 |
> On 8 May 2018, at 15:05, Ben Coman <[hidden email]> wrote: > >> Le 8 mai 2018 à 08:28, Henrik Sperre Johansen <[hidden email]> 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? >>> >>&gLAN-feature-tt5075918.html#a5076139',5076139)">Threaded
Open this post in threaded view
|
|
♦
♦
Re: How to LAN feature
Re: How to LAN feature
«
Return to Pharo Smalltalk Users
|
1 view|%1 views
|