indy-9

Indy 9 + Delphi 2007 latest SSL Libraries available?

血红的双手。 提交于 2019-12-30 03:29:16
问题 When using Delphi 2007 along with Indy 9, what are the latest OpenSSL libraries that can be loaded and where are they available? 回答1: You need the following two DLLs: libeay32.dll ssleay32.dll You can download the source from the open-source organization OpenSSL.org, but then you have to compile the DLLs yourself. Indy maintains a site of compiled binaries for each version of Indy and OpenSSL (see indy.fulgan.com/SSL and indy.fulgan.com/SSL/Archive -- thanks to TLama for the links). Older

how to upload file to dropbox via Delphi 7?

独自空忆成欢 提交于 2019-12-18 12:34:45
问题 I try to upload file into dropbox. I use dropbox api https://www.dropbox.com/developers/reference/api#files-POST procedure TDropbox.Upload2; const URL = 'https://api-content.dropbox.com/1/files/dropbox/'; var Response: String; Params: TIdMultipartFormDataStream; https: TIdHTTP; SslIoHandler: TIdSSLIOHandlerSocket; begin https := TIdHTTP.Create(nil); Params := TIdMultipartFormDataStream.Create(); try SslIoHandler := TIdSSLIOHandlerSocket.Create(https); SslIoHandler.SSLOptions.Method :=

Indy9 Get Raw Email header?

你。 提交于 2019-12-13 21:35:46
问题 Does Indy9 have any way to get a specific raw email header (say, "Subject" or "From") which still includes the transfer-encoding (ie: has not been mangled by DecodeHeader on older versions of Delphi with poor Unicode support), or would I have to parse the entire email header manually to extract this information? 回答1: The TIdMessage.RawHeaders property is what you are looking for, eg: Subject := IdMessage1.RawHeaders.Values['Subject']; 回答2: I have solved the problem, calling IdMessage1.Headers

Slow responses to TIdHTTP POSTs

旧时模样 提交于 2019-12-11 02:17:58
问题 I am investigating a problem with a legacy executable, written in Delphi 5, utilising Indy 9. Components in use: TIdHTTP, TIdConnectionIntercept & TIdSSLIOHandlerSocket. The problem the app is presently experiencing is slow responses to TIdHTTP POSTs. I found the following two links: Delphi: Why does IdHTTP.ConnectTimeout make requests slower? Delphi TIdHTTP POST is very slow vs GET Based on the links, I have tried the suggestions of: (i) setting ConnectTimeout to zero and (ii) setting the

Indy TCP - Read data in a loop

南楼画角 提交于 2019-12-09 05:01:44
问题 A TCP server is sending data frames continuosly every 8ms. I want to program a client able to receive these data frames. Is there any procedure in Indy 9 to know if there is data available in the buffer? My current programs is the following (I am using a Thread): procedure TThreadRead.Execute; var buffer: array [0..755] of byte; //s1: string; //i: integer; begin IdTCPClient1.RecvBufferSize:= 756; IdTCPClient1.Connect; while Terminated = false do begin if IdTCPClient1.InputBuffer.Size = 0 then

VirtualTreeView add roots with Threads

点点圈 提交于 2019-12-07 20:33:50
问题 I would like to add roots to a VirtualTreeView http://www.delphi-gems.com/index.php/controls/virtual-treeview with a thread like this: function AddRoot ( p : TForm1 ) : Integer; stdcall; begin p.VirtualStringTree1.AddChild(NIL); end; var Dummy : DWORD; i : Integer; begin for i := 0 to 2000 do begin CloseHandle(CreateThread(NIL,0, @ADDROOT, Self,0, Dummy)); end; end; The reason for this is that I want to add all connections from my INDY Server to the TreeView. Indy's onexecute/onconnect get's

VirtualTreeView add roots with Threads

◇◆丶佛笑我妖孽 提交于 2019-12-06 07:53:21
I would like to add roots to a VirtualTreeView http://www.delphi-gems.com/index.php/controls/virtual-treeview with a thread like this: function AddRoot ( p : TForm1 ) : Integer; stdcall; begin p.VirtualStringTree1.AddChild(NIL); end; var Dummy : DWORD; i : Integer; begin for i := 0 to 2000 do begin CloseHandle(CreateThread(NIL,0, @ADDROOT, Self,0, Dummy)); end; end; The reason for this is that I want to add all connections from my INDY Server to the TreeView. Indy's onexecute/onconnect get's called as a thread. So if 3+ connections come in at the same time the app crashes due to the TreeView.

MultiCast Messages to multiple clients on the same machine

冷暖自知 提交于 2019-12-04 19:54:22
问题 Im trying to write a server/service that broadcasts a message on the lan ever second or so, Kind of like a service discovery. The message needs to be received by multiple client programs that could be on the same machine or different machines. But there could be more than one program on each machine running at the same time. Im using delphi7, with indy 9.0.18 where im stuck is if i should be using UDP(TIdUDPClient/Server) or IP MultiCast (TIdIPMCastClient/Server) or if its even possible...

MultiCast Messages to multiple clients on the same machine

巧了我就是萌 提交于 2019-12-03 12:08:55
Im trying to write a server/service that broadcasts a message on the lan ever second or so, Kind of like a service discovery. The message needs to be received by multiple client programs that could be on the same machine or different machines. But there could be more than one program on each machine running at the same time. Im using delphi7, with indy 9.0.18 where im stuck is if i should be using UDP(TIdUDPClient/Server) or IP MultiCast (TIdIPMCastClient/Server) or if its even possible... Ive managed to get it to work with IP Multi Cast with one client per machine, but even after many trys