Recent

Author Topic: [SOLVED] How to get received package IP and Port of the sender with Synapse?  (Read 634 times)

Key-Real

  • Full Member
  • ***
  • Posts: 185
I established connection with TUDPBlockSocket.

my Server receives packages.

how to get the sender IP and Port out of a package?
« Last Edit: May 27, 2023, 10:21:20 am by Key-Real »

cdbc

  • Hero Member
  • *****
  • Posts: 995
    • http://www.cdbc.dk
Hi
TBlocksocket has "function GetRemoteSinIP: string; virtual;" ~ same for port.
TUdpBlockSocket descends from it, so try to surface these methods, maybe via a local inherited class that raises the scope to public for these methods...
Or you can locally access protected methods in your inherited class.
Regards Benny
« Last Edit: May 27, 2023, 10:06:37 am by cdbc »
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

 

TinyPortal © 2005-2018