Re: [Lazarus] UDP server

2021-01-11 Thread Corpsman via lazarus
I use the lnet lib which can be easily installed with the online package
manager works great with tcp and udp and has onReceived events ;)

On 1/12/21 1:39 AM, Graeme Geldenhuys via lazarus wrote:
> On 11/01/2021 7:32 pm, duilio foschi via lazarus wrote:
>> I miss old ICS  (Internet Component Suite) :)
> Have you tried looking at Indy components? I've used them for years
> with great success.
>
>
> Regards,
>   Graeme


--

Auf meiner Homepage www.Corpsman.de ist immer was los, ständig wird sie 
aktualisiert und erweitert. Da ist für jeden was dabei.

--

Schütze deine Privatsphäre, nutze E-mail Verschlüsselung.
Wie das geht steht z.B. hier :
https://support.mozilla.org/en-US/kb/digitally-signing-and-encrypting-messages#w_installing-gpg-and-enigmail

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Creating packages - what to include?

2020-12-28 Thread Corpsman via lazarus
Hello,

 

i have a similar folder structure

 

/... /Projects/

 

And lots of libs folders

/.../Projects/libs/openGLLibs

/.../Projects/libs/GraphicLibs

/.../Projects/libs/DataLibs

...

If for some reason i need a project specific configuration in the lib i manage this via a .inc file that is included from the lib and is located in each project separatly (e.g. my math lib can be configured to be based on single (OpenGL-Compatible) or double or whatever needed) all my libs that need a .inc have a copy template in the comments .

 

As i do not use all libs in each project i add all the needed files manually into each project using the project inspector (this is a work of 1 minute on each project equals nothing to the benefit that is given when you use always up to date libs )

 

With this i am able to use my own tools ( https://www.corpsman.de/index.php?doc=projekte/project_collector ) to collect all project files into one folder and ( https://www.corpsman.de/index.php?doc=projekte/project_uncollector ) to "unpack" the folder on a second system.

 

So i am able to share a Project (or publish it on my homepage) with one click and all needed files. Or transfer them to a computer where my backups are stored and which has no acces to my SVN-Repository (Or simple to my windows virtual machine to create the windows binary).

=>

i have no redundant code

i can store my libs in separate locations (this is usefull to keep their unit tests out of my other projects)

i can share my code without worries of missing files

i can deploy with scripts (project collector is scriptable *g*)

 

 

 


 

-- 

Auf meiner Homepage www.Corpsman.de ist immer was los, ständig wird sie aktualisiert und erweitert. Da ist für jeden was dabei.

 
 

Gesendet: Montag, 28. Dezember 2020 um 22:51 Uhr
Von: "Bart via lazarus" 
An: bo.bergl...@gmail.com, "Lazarus mailing list" 
Cc: "Bart" 
Betreff: Re: [Lazarus] Creating packages - what to include?

On Mon, Dec 28, 2020 at 6:13 PM Bo Berglund via lazarus
 wrote:

> Could you please direct me to where in Lazarus this can be done?
It is in Complier options.
It has a checkbox "Set compiler options as default".

My folder layout is like:
\\LazarusProjecten\
Each application's main lpi resides in a subfolder of this
My usefull unist are in a subfolder called MijnLib
So I have e.g.
\\LazarusProjecten\MijnLib
\\LazarusProjecten\EPlus
\\LazarusProjecten\AdresBoek
\\LazarusProjecten\sbp
etc.

In my default compiler options I have "..\MijnLib" as the first entry
in -Fu field.

This of course only works if you have a folder setup similar to mine:
a base folder in which you create new folders for each application you
write.

--
Bart
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus



-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to list available serial ports on Linux?

2020-10-06 Thread Corpsman via lazarus
That is how do it:

Function GetSerialPortNames(): String;
Var
  sl: TStringlist;
Var
  Info: TSearchRec;
  hdl: THandle;
  b: Boolean;
Begin
  sl := TStringlist.create;
  If FindFirst('/dev/tty*', faSysFile, Info) = 0 Then Begin
    Repeat
  b := true;
  Try
    hdl := FileOpen('/dev/' + info.Name, fmOpenReadWrite);
    If hdl = -1 Then Begin
  b := false;
    End;
  Except
    b := false;
  End;
  If hdl >= 0 Then Begin
    FileClose(hdl);
  End;
  If b Then Begin
    sl.Add('/dev/' + info.Name);
  End;
    Until FindNext(info) <> 0;
  End;
  FindClose(Info);
  result := sl.CommaText;
  sl.free;
End;

On 10/6/20 11:35 PM, Bo Berglund via lazarus wrote:
> Is there a way to list the available (working) serial ports on a Linux
> platform like the RaspberryPi?
>
> I would like to offer a dropdown list of working serial ports to the
> user to select among, but I am dissuaded from it when I do the
> following:
>
> ls -la /dev/tty*
> It returns a very long list of serial devices and most of these are
> probably not even existing in real life.
>
> On an RPi I get
> /dev/tty
> /dev/ttyN (where N=0..63
> /dev/ttyAMA0 <== This is RPi Serial0 port on the pin header.
> /dev/ttyprintk
> and:
> /dev/ttyUSB0../dev/ttyUSB3 depending on what is plugged into USB
>
> All in all about 70 devices, but not sure which are actually available
> for use.
>
> Is this an impossible task or can one check for "live" serial ports
> only? If so how?
>
> On Windows I have ported a convoluted function from Delphi, which uses
> Registry reads to give me the list.
>
>

--

Auf meiner Homepage www.Corpsman.de ist immer was los, ständig wird sie 
aktualisiert und erweitert. Da ist für jeden was dabei.

--

Schütze deine Privatsphäre, nutze E-mail Verschlüsselung.
Wie das geht steht z.B. hier :
https://support.mozilla.org/en-US/kb/digitally-signing-and-encrypting-messages#w_installing-gpg-and-enigmail

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Run parameters

2017-02-12 Thread corpsman--- via Lazarus
+1

On 11.02.2017 22:19, Graeme Geldenhuys via Lazarus wrote:
> On 2017-02-11 10:22, Michael Van Canneyt via Lazarus wrote:
>> Logically, I would I think these parameters belong in the .lps file ?
> 
> I fully agree, they should be stored in the .lps - I don't care about
> lists or build modes and all that jazz. The accidental committing of
> user credentials into a code repository has bitten me a few times. The
> same goes for commit conflicts after getting a repository update because
> other developers tested with different parameters. All very annoying.
> 
> Regards,
>   Graeme
> 
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus