Recent

Author Topic: LAMW: Networking libraries  (Read 3883 times)

rime

  • Newbie
  • Posts: 3
LAMW: Networking libraries
« on: September 21, 2016, 04:33:05 pm »
LAMW comes with TCP, SMTP and HTTP client components.
But I want to discover two Android devices in LAN, from the same LAMW application. What are my options to implement UDP broadcast ? I tried Indy (not compiling due to dependencies), lnet (compiled but app crashes).

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: LAMW: Networking libraries
« Reply #1 on: September 21, 2016, 05:12:24 pm »
Restroom duck replying ....

The mORMot has UDP support ! And runs very well on Android. See:

http://synopse.info/forum/viewtopic.php?id=2466
http://synopse.info/files/html/api-1.18/SynCrtSock.html#TCRTSOCKET

jmpessoa

  • Hero Member
  • *****
  • Posts: 2302
Re: LAMW: Networking libraries
« Reply #2 on: September 21, 2016, 09:21:37 pm »

Hi rime,

I will try implement a LAMW UDP client component....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

rime

  • Newbie
  • Posts: 3
Re: LAMW: Networking libraries
« Reply #3 on: September 23, 2016, 12:00:03 am »
That would be awesome jmpessoa :) Discovering devices is an important feature in mobile development

@DonAlfredo
SynCrtSock does not compile, even when i switch directives from Linux to Android, it is still missing units like LibC or types like TSocket.

rime

  • Newbie
  • Posts: 3
Re: LAMW: Networking libraries
« Reply #4 on: October 01, 2016, 10:32:20 pm »
jmpessoa, Thank you for the update with UDP component. It works perfectly fine. I have also tested sending broadcast from Android and received it on Windows program with IdUDPServer (Indy), and the other way (Windows -> Android) with IdUDPClient - results without a single problem. Thank you again for your great work.

 

TinyPortal © 2005-2018