indy

How to use HextoBin in Delphi Firemonkey for Android

寵の児 提交于 2019-12-12 04:38:36
问题 I'm trying to adopt some Windows code to Android, but I am unsuccessful. When I try to compile the following code, I get an error: [DCC Error] There is no overloaded version of 'HexToBin' that can be called with these arguments var BinaryStream: TMemoryStream; HexStr: String; WSocket: TWSocket; begin HexStr := memo1.Text; BinaryStream := TMemoryStream.Create; try BinaryStream.Size := Length(HexStr) div 2; if BinaryStream.Size > 0 then begin HexToBin(PChar(HexStr), BinaryStream.Memory,

Indy TUDPServer Broadcast

百般思念 提交于 2019-12-12 04:29:57
问题 I have three network adapter, two effective and one 'VirtualBox Host-Only Network'. When trying to send broadcast with the code bellow (binding the right IP), the broadcast data getting sent on the VirtualBox Network adapter (checked with wireshark) and of course getting no answer. FIdUDPServer.Binding.IP := Settings.netInterfaces[settings.sett_net_interface].AddrIP; FIdUDPServer.BroadcastEnabled := True; FIdUDPServer.Broadcast(udpDiscovery, BCport); Im trying to bind the IP of my real

Delphi: DDE call from Indy TCPServer Thread

非 Y 不嫁゛ 提交于 2019-12-12 03:49:31
问题 I try to connect to (Uni)DDE server from an Indy TCP Server thread. From normal application I can connect, and can get/set any PLC variables. But when I use same command from Indy thread (from Execute(AThread: TIdPeerThread) event), the SetLink command failed. procedure ReadDDE(AppPath, Service, Topic, Cmd: string; out Eredmeny : string; out HibaSzint : string); var DDE: TDDEClientConv; pc : PChar; begin Eredmeny := ''; HibaSzint := ''; DDE := TDDEClientConv.Create(nil); try DDE.ConnectMode :

Lazarus using Indy + OpenSSL on OS X results in EIdOSSLCouldNotLoadSSLLibrary

ⅰ亾dé卋堺 提交于 2019-12-12 03:28:36
问题 I am currently using: OS X Yosemite 10.10.5 newest Indy (10.6.2.0, download 2016 March 13 - Indy10_5346.zip) Lazarus 1.4.4 newest openssl OpenSSL is more specificly: openssl-1.0.2g accordingly to home brew cmd line interface placed in /usr/local/Cellar/openssl/1.0.2/lib/ lib files in above directory are: libcrypto.10.dylib, libcrypto.1.0.0.dylib, libcrypto.dylib, libcrypto.a, libssl.1.0.0.dylib, libssl.dylib, libssl.a ... I am passing above pah to Indy using idOpenSSLSetLibPath() befoe using

Undefined TIdFTP status after error 10038 “Socket operation on non-socket”

别说谁变了你拦得住时间么 提交于 2019-12-12 03:12:09
问题 I use a TIdFTP control to connect to an FTP server. It seems that my FTP connection is terminated by something (ftp server/firewall?) after 60 seconds of inactivity. Once the connection was terminated I cannot use the FTP control (TIdFTP) anymore because its status is undefined. For example, every time I try to REconnect I get the same (10038) error. However, FTP.Connected shows True. Trying FTP.Disconnect gives me a 'connection closed gracefully' error and the control remains connected. The

Alternative to OpenSSL in Indy SMTP component

牧云@^-^@ 提交于 2019-12-12 02:34:49
问题 When running component SMTP and POP too, am getting AV in OpenSSL library, as I found several complaints about this on Google, I would use an alternative to OpenSSL. I'm sure that the component of Indy has no error because Remy Lebeau is the master, but I need an alternative. Will I have to leave this beautiful work which is the component of Indy? 回答1: Indy's OpenSSL usage is fairly well tested, and used by many people without problem. If you are having AVs with it, I would suspect a bug in

Indy TCP client example?

主宰稳场 提交于 2019-12-12 02:30:55
问题 Is there any sample code for Indy 10 sockets in C++Builder? The two sample links on the Indy Demos page are dead links and I have been unable to find any sample code after extensive searching. I am writing a client that will send and receive JSON messages, no complicated protocols or SSL required. I have been able to guess based on the member functions of TIdTCPClient to write id1->Socket->WriteLn to send something which gets received by the server but have not yet figured out how to receive

In the nutshell, how do I do HTTPS with Indy?

偶尔善良 提交于 2019-12-12 02:17:31
问题 Actually, my question doesn't have an answer there. I keep getting "EOF was observed" with solution (v23) of that answer. Only sslvSSLv2 gives a change "error:00000006:lib(0):func(0):EVP lib". Defective DLLs? According to the documentation it's pretty simple - have a DLLs and then just assign TIdSSLIOHandlerSocketOpenSSL instance to IOHandler property and switch protocol to https . But doing so, I've immediately faced an SSL error with message "Error connecting with SSL. EOF was observed that

Indi TIdSNMP : How use SendQuery

爱⌒轻易说出口 提交于 2019-12-12 01:42:24
问题 I made the following routine in c++builder Xe ( listing code 1 ), using the Indi component TIdSNMP to query an agent snmp. The call to SendQuery failed, the connection is ok but the agent always return nothing. I also try to query the agent using the method QuickSend ( listing code 2 ) and in this case this second routine work correclty, so I suppose I made some mistake using the first routine. Can someone tell me where I was wrong in the first routine ? Best Reagrds, Enzo Listing 1 void _

Memory Leak using TIDNotify , threadsafe VCL interaction

前提是你 提交于 2019-12-11 20:22:22
问题 the following code is used to allow threadsafe VCL interaction from INDY 10 tcpserver.onexecute(); /// a function to write information into a TBitmap TVclNavigationImage= procedure( ll, ur, ll_v , ur_v : TPoint ) of object; TVCLUpdateNotify = class(TIdNotify) protected f_ll, f_ur, f_ll_v , f_ur_v : TPoint; FProc: TVclNavigationImage; procedure DoNotify; override; public constructor Create(ll, ur, ll_v , ur_v : TPoint; aProc:TVclNavigationImage); reintroduce; class procedure