Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 28 01:58

    rlebeau on Indy11-preparation

    Updating TIdSocketList.Add() on… (compare)

  • Jan 27 18:00

    rlebeau on master

    #445 Updating TIdSocketList.Add… (compare)

  • Jan 27 17:19
    rlebeau labeled #445
  • Jan 27 17:19
    rlebeau labeled #445
  • Jan 27 17:19
    rlebeau labeled #445
  • Jan 27 17:19
    rlebeau assigned #445
  • Jan 27 17:19
    rlebeau edited #445
  • Jan 27 13:50
    MaxRusov edited #445
  • Jan 27 13:28
    MaxRusov opened #445
  • Jan 17 17:13
    rlebeau commented #225
  • Jan 17 12:50
    tothpaul commented #225
  • Jan 14 02:25

    rlebeau on Indy11-preparation

    Bringing in some more updates f… (compare)

  • Jan 13 17:12
    hafedh-trimeche closed #444
  • Jan 13 16:57
    rlebeau commented #444
  • Jan 13 16:56
    rlebeau commented #444
  • Jan 13 16:55
    rlebeau commented #444
  • Jan 13 13:59
    hafedh-trimeche opened #444
  • Jan 13 06:48

    rlebeau on master

    idHl7 update to last release fr… Rev 2.1 25/12/2022 12:32 AM … added example program, async re… and 13 more (compare)

  • Jan 13 06:48
    rlebeau closed #442
  • Jan 13 06:40
    rlebeau review_requested #442
DelphiWorlds
@DelphiWorlds
same error, i.e. error 49.
DelphiWorlds
@DelphiWorlds
I may have solved the binding issue, however unless another issue I'm having is resolved, it'll be rather moot. I've posted to the delphi.internet.winsock group in the forums and posted an attachment to the attachments group which illustrates the issue, which is happening on Windows, before I've even tried any other platforms
mezen
@mezen
Is there a Delphi equivalent to this powershell code?
$fqdn = [System.Net.Dns]::GetHostEntry("host-name-goes-here").HostName
Kudzu
@czhower
The Indy DNS compononent can do that.
mezen
@mezen
TIdDNSResolver needs a DNS Server in Host, the powershell code does not. I have 2 network cards here with each card has multiple dns server set. What to do?
Kudzu
@czhower
You can read the system dns from the registry or use any DNS server as they area all public. Google DNS is 8.8.8.8 and 8.8.4.4
mezen
@mezen
Google DNS does not help with LAN Requests :(
Kudzu
@czhower
Then you need to use the winapi or registry to find your local dns server.
Remy Lebeau
@rlebeau
@DelphiWorlds I glanced at the example you posted, offhand I don't know why it is not working, but I have not had a chance to run it yet. I've been out of town the past week and just saw the post this morning
@mezen the simplest equivilent is to 1) resolve the IP using the socket API gethostname() or getaddrinfo() directly (which are wrapped by Indy's TIdStack.HostByName() method), which uses the OS's own DNS resolver; and then 2) resolve the HostName using gethostbyaddr() or getnameinfo() (which are wrapped by Indy's TIdStack.HostByAddress() method), which also use the OS's own DNS resolver. Yes, TIdDNSResolverrequires a Host, because it implements DNS manually from scratch, and doesn't use the OS resolver at all. You can query your OS's DNS server(s), or let the user specify them.
DelphiWorlds
@DelphiWorlds
ok.. thanks
MravArun
@MravArun
Hello Techies, I am new to this forum I have a problem with INDY IDHTTP and IDSSLIOHANDLERSOCKET in delphi 5, after adding 3DES encyption in the server, all the rest call using "THTTP" fails with exception "Error Connecting with SSL", is there a way to fix this ? thanks in advance...!!
Remy Lebeau
@rlebeau
@MravArun are you using an up-to-date version of Indy 10? Are you using OpenSSL DLLs that have 3DES enabled? You might have to tweak the IOHandler's CipherList property to control which ciphers are enabled.
@MravArun also note that 3DES is vulnerable to attack, so why would you want to enable it in your server in the first place?
penengo
@penengo
Hello, How can I synchronize TcpServerExecute with external global variables, with Delphi Anonymous method is suggested, but We are using c++ builder 10.2 already we use TidSync but is deprecated. Thank in advance for some help
Remy Lebeau
@rlebeau
@penengo TIdSync still works, but is deprecated because TThread::Synchronize() with an anonymous procedure accomplishes the same thing that TIdSync was originally intended for. Read Embarcadero's documentation for How to Handle Delphi Anonymous Methods in C++.
penengo
@penengo
Thank you @rlebeau
irawancepu
@irawancepu
I want to replicate this site : https://hide.me/id/proxy to work in my internal network. From where i must begin?
DelphiWorlds
@DelphiWorlds
@rlebeau Is support for OpenSSL 1.1.0 coming? I managed to successfully build iOS simulator dylibs for 1.1.0f, and tweaked IdSSLOpenSSLHeaders so it would load the new version, however it failed to bind to a number of routines, namely: SSL_load_error_strings, SSL_library_init, SSLeay_version etc
at least I assume it failed to bind to them because that's what WhichFailedToLoad reports
DelphiWorlds
@DelphiWorlds
Complete list: SSL_load_error_strings,SSL_library_init,SSLeay_version,SSLeay,CRYPTO_lock,CRYPTO_num_locks,CRYPTO_set_locking_callback,CRYPTO_set_id_callback,ERR_free_strings,EVP_MD_CTX_init,EVP_CIPHER_CTX_flags,HMAC_CTX_init,HMAC_CTX_cleanup,CRYPTO_mem_leaks,CRYPTO_set_mem_debug_functions,OpenSSL_add_all_algorithms,OpenSSL_add_all_ciphers,OpenSSL_add_all_digests,EVP_cleanup,sk_num,sk_new,sk_new_null,sk_free,sk_push,sk_dup,sk_find,sk_value
Remy Lebeau
@rlebeau
@DelphiWorlds no work has been started yet to support 1.1.0: IndySockets/Indy#183
DelphiWorlds
@DelphiWorlds
Thanks for the update
robert010
@robert010
Looking for help on udp performance with delphi and Rad studio with wireless link
Remy Lebeau
@rlebeau
@robert010 what kind of help?
robert010
@robert010
Performance. I am using Udp so I can broadcast to multiple devices. I have fairly small messages, 96 bytes every 77 ms.. everything works fine over wired lan, but it doesn't work reliably over wireless
I found the best performance by setting the client (sender) buffer to 0, and flat out sending the output message twice.
Wondering what I can tweak and what status I can look at to see what's happening.
Remy Lebeau
@rlebeau
@robert010 define "doesn't work reliably". You do know that UDP is not reliable in general to begin with, right? Are you designing any reliability into your protocol? Sequence numbering, ACKs, resends, etc?
robert010
@robert010
I am sending a waveform, and instead of moving smoothly, e.g. drawing at the same rate it is sent. it is jumpy while on wireless, and it skips some
I check the integrity of what I rcv.. it is good.
Remy Lebeau
@rlebeau
@robert010 integrity of each individual packet doesn't matter if packets are dropped, received out of order, repeated, etc.
@robert010 are you sending the raw wave data as-is, or are you wrapping it in something like RTP?
robert010
@robert010
Out of order isn't the problem it is missing and delayed.
not using any rtp type protocol,, very simple slow stuff, just an index per increment.
Remy Lebeau
@rlebeau
@robert010 that is a defining charactertictic of UDP, you can't guarantee packet delivery, or guarantee timing. Packets may be dropped, packets may take different network routes to the target, etc. You have to be prepared to handle that. Put an incrementing sequence number in the packets, require receivers to ACK packets received, re-send any packets that are not ACKed, reorder received pacekts, etc. Of course, this only applies if you require data integrity.
robert010
@robert010
yeah but this is a lot of losses,,, and there are only two or three devices on the network and the network is isolated from the world.
it is a visual wave,, so you see what is happening.
Remy Lebeau
@rlebeau
@robert010 if the data is important, why are you using UDP?
robert010
@robert010
I may have to switch to a tcp socket.
Data is for visualization only so occasional glitch would be ok
I know the disadvantages of udp.
Remy Lebeau
@rlebeau
@robert010 have you monitored the network traffic on the sending side to make sure that packets are being sent correctly and in the desired time? Have you monitored the network traffic on the receiving side to make sure packets are being received?
robert010
@robert010
But it is the only simple way of broadcasting.. yes.. and no.. i have checked the sending side.
Remy Lebeau
@rlebeau
@robert010 and? were outgoing packets being sent correctly and in time? And no, there are other options, like multicasting
robert010
@robert010
My suspicion is that indy is not sending the packets out evenly spaced and the wireless router is throwing away udps when it needs to.
explain multicasting
Remy Lebeau
@rlebeau
@robert010 Indy passes the packets to the network stack as soon as you send them in code. Any delays woudl have to be on the OS layer
robert010
@robert010
could be.
is there a feedback on the os stack status out of indy