a little background:
i have been programing in C#, Java, and Delphi, under windows.
i tried lazarus before but due to "commodity" i fell back to delphi.
but now i have finally made the switch, from windows to linux,
and im making a full switch lo leave close source as much as i can,
im determined to leave C# and Delphi for freepascal/lazarus.
the culprit:
i have a personal project(C#) where i make use of raw sockets,
i want to rewrite this project in freepascal with lazarus, but this time with a datagram socket.
i managed to write most of my networking unit but i get many "deprecated" warnings and other troubles,
for example on "NetToHost" and getting sockaddr_in instead of just sockaddr, etc..
i get all my information from " official" documentation along with their examples but i have
noticed that the vast majority if not all on there seems outdated.
https://www.freepascal.org/docs-html/rtl/sockets/index-5.htmlalso in lazarus wiki the sockets unit sections has a bold sentence saying its deprecated.
my question:
i wonder if anyone could share with me an up to date documentation?
im mainly looking for sockets unit documentation that is up to date and avoid 3rd parties.
also i would like to understand, for example in C# sockets are of the "socket" type
and the buffers/data is of "byte" type, but in freepascal im seeing that sockets are of "LongInt" type
and buffers are of "String" type.. this puzzles me somewhat.
thank you!
PS:
from simple mortals like me to everyone that keeps freepascal, lazarus, and this forums alive... A WORLD OF THANKS!!!