Recent

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

Key-Real

  • Full Member
  • ***
  • Posts: 132
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: 611
    • 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 ;)

 

TinyPortal © 2005-2018