Questions tagged [indy]

Questions related to the Indy (Internet Direct) open source networking library for Delphi, C++Builder, and FreePascal development environments. Not to be confused with the HyperLedger Indy distributed ledger/utility library.

Indy (Internet Direct) is an open source networking library for Delphi, C++Builder, and FreePascal development environments. It supports client and server implementations of TCP, UDP and RAW sockets, as well as over 100 higher level protocols. Some of the popular supported protocols include: SMTP, POP3, IMAP, NNTP, HTTP.

Indy's home page: http://www.indyproject.org


Do not confuse Indy (Internet Direct) with the HyperLedger Indy distributed ledger/utility library for HyperLedger. Please do not use the tag for topics related to HyperLedger Indy, use the tag instead.

2074 questions
0
votes
2 answers

Indy TCP client-server don't work with OpenSSL

In C++ Builder 10.3.1 I am using Indy TCP client-server components (TIdTCPClient & TIdTCPServer) to create an example of encrypted communication with OpenSSL. I'm using this sample code: void __fastcall TForm1::Button1Click(TObject *Sender) { …
Tracer
  • 2,544
  • 2
  • 23
  • 58
0
votes
0 answers

Replace cid:image refrences in email body with Base64 encoded string from another file

I have been tasked with writing an email archiving application. With lots of help from other SO questions and answers, I have succesfully saved the body of the email using Indy10 in Delphi 10.2.3, and it's image attachments as Base64encoded text…
Freddie Bell
  • 2,186
  • 24
  • 43
0
votes
1 answer

TIdSMTP & TIdAttachmentMemory - Email refused by spam filter

I am trying to send an email with a PDF attachment, stored in a BLOB field, using TIdSMTP. For this I am using a TIdAttachmentMemory, but the code as shown results in 'refused by spam filter'; Omitting IdMessage.ContentType := 'multipart/mixed'…
Mark
  • 130
  • 1
  • 10
0
votes
1 answer

IdHTTP to ensure push data to Ubidots (FMX, WIN32)

I can push an encrypted piece of humidity data up to my Ubidots cloud database by simply loading the following url in a web browser: https://industrial.ubidots.com/api/v1.6/devices/MYDEVICENAME/?token=MYTOKENHERE&_method=post&humidity=15.9 When I…
relayman357
  • 793
  • 1
  • 6
  • 30
0
votes
1 answer

TIdTCPServer's TIdContext->Data odd behaviour

To send data to multiple clients I create a TIdThreadSafeStringList in OnConnect and assign it to AContext->Data like so AContext->Data = new TIdThreadSafeStringList When the client disconnects, its stringlist is deleted in OnDisconnect like…
Mike Versteeg
  • 1,615
  • 14
  • 28
0
votes
2 answers

tIdHttp Inside thread and IdTCPServer in GUI

I have a TTimer on a TForm, where the timer is set to 5 seconds and creates 100 threads to fetch XML from a remote server. Each time a thread is executed, I add the XML to a variable (FullXML_STR:String). When all threads have finished, I am sending…
0
votes
0 answers

How do i correctly close idHTTPServer to avoid memory leaks of request threads?

idHTTPServer creates thread for each request. Sometimes, my threads work quite long, so when i close server it leaks with unexpected memory blocks. Sometimes everything work without memory leaks, it depends on the moment of app closing. To avoid…
0
votes
1 answer

TIdTCPClient ReadBytes does not reset the buffer

I use a worker thread to read data with TIdTCPClient, as described in other articles. The thread gets the data with this command: FClient.IOHandler.ReadBytes (FData,-1,False); where FClient is the TIdTCPClient and FData is TIdBytes. This is the…
KlausB
  • 3
  • 2
0
votes
1 answer

Delphi Indy HTTPS web server errors (EOF was observed that violates the protocol)

I am trying to add HTTPS support to an existing web server written in Delphi XE7 using Indy. I have written a simple application which just returns a date/time stamp on each HTTPS request. I added handlers to the OnCommandGet and OnException…
0
votes
1 answer

IdUdpClient how to accept data in a dynamic array

This code accepts data in a static array. TMyRec = record MyArray: array[0..1, 0..10] of double; end; MyClient: TIdUDPClient; MyRec: TMyRec; Buffer: TIdBytes; SetLength(Buffer, SizeOf(MyRec)); if MyClient.ReceiveBuffer(Buffer, 1) > 0…
rustam
  • 21
  • 4
0
votes
1 answer

About FDQuery with TIdTcpServer

How can i prevent the excessive memory consumn who TFDQuery cause at application running with a TIdTcpServer? i create the TFDQuery at runtime and after use i destroy it on OnExecute event of TIdTcpServer: Query :=…
0
votes
1 answer

How to connect TIdTCPClient to TIdTCPServer on Android/IOS?

Indy TIdTCPClient Error: socket error # 113 no rout to host when connecting from Android to PC. Hello, i know i asked a lot of questions about Indy Components lately, but i'm having a real problem trying to connect TIdTCPClient in my Android device…
Abdennour
  • 65
  • 1
  • 8
0
votes
1 answer

Form gets freezed during loading data in a seperate thread

I use TIdHTTP component to load xml data from a bank in a seperate thread but my form is getting freezed during that time... what could be the problem ? I have a main form and thread class, in thread class i have a method called loadData and on…
Suhrob Samiev
  • 1,528
  • 1
  • 25
  • 57
0
votes
1 answer

firemonkey indy udp Synchronize Thread

Good day. I create a class instance Thread. In this thread I create udpserver. UDPREAD synchronizes with the main thread. Question: How to synchronize not with the main thread but with the thread that is the parent of the UDP thank you
rustam
  • 21
  • 4
0
votes
1 answer

Which Indy TIdHTTPServer code ir responsible for server side checking of SSL versions and ciphers?

I am using Indy 10.6.2 (current version from SVN) server components in Delphi 2007 and client components in Delphi 6 application, and of course OpenSSL. I am receiving "Error connecting with SSL. EOF was observed that violates the protocol" in the…
TomR
  • 2,696
  • 6
  • 34
  • 87