indy

Implementing SNMP SendTrap using Indy components

假装没事ソ 提交于 2019-12-20 07:23:30
问题 I need to report errors from my application on C++Builder via SNMP. I started implementing SNMP SendTrap using Indy components. void __fastcall TMainForm::btSendTrapClick(TObject *Sender) { UnicodeString myEnterprise = "1.5.5.5.5.5.5.5"; UnicodeString eventType = "1.5.5.5.5.5.5.5.1"; UnicodeString eventDistance = "1.5.5.5.5.5.5.5.2"; TIdSNMP * idSnmp = 0; TSNMPInfo * infoSnmp = 0; idSnmp = new TIdSNMP(NULL); infoSnmp = new TSNMPInfo(idSnmp); idSnmp->Host = edHost->Text; idSnmp->Community =

¿How can I send and recieve strings from tidtcpclient and tidtcpserver and to create a chat?

♀尐吖头ヾ 提交于 2019-12-20 06:34:21
问题 im new at delphi languaje and im using Rad Studio to make apps work on every device with oune single programming. Right now Im supposed to make a chat using sockets, I made a chat for windows only using tclientsocket and tserversocket using the next code, what Im trying to do is make the exact thing but using tidtcpclient and tidtcpserver instead of tclientsocket and tserversocket Server: unit Server; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System

Delphi Error E2010 Incompatible types: 'string' and 'procedure, untyped pointer or untyped parameter'

笑着哭i 提交于 2019-12-20 05:27:06
问题 I used TStringList and something that looks like: geo: TStringList; response: TStringStream; begin http:=tidhttp.Create(nil); try { TODO -oUser -cConsole Main : Insert code here } geo:=TStringList.Create; response:=TStringStream.Create(''); geo.Add('name=stas'); geo.Add('pass=431'); s:=http.Get('http://test.me'); writeln(http.ResponseText); writeln(s); s:=http.Post('http://test.me',geo,response); but something is wrong. For example when I run it it's alerting with the error [[DCC Error]

Get email headers from GMail's “Sent items” folder

喜夏-厌秋 提交于 2019-12-20 04:16:13
问题 My program sends emails to contacts via GMail. Normally this works very well but we have noticed that sometimes an email which my program "thinks" it has sent doesn't actually arrive at Gmail, let alone arrive at the contacts. I thought that I might be able to add to the program a check which accesses the Gmail "sent items" folder to see whether each email has indeed been sent. I have some code using the TIdPOP3 component but this downloads headers from the Inbox, not from sent items. My

Garbage in headers when POST-ing with Indy 10.5.8

喜欢而已 提交于 2019-12-20 02:58:11
问题 I'm trying to send a file using POST in multipart/form data via Indy 10.5.8. I'm using Delphi XE2 and I've been trying to POST a file to a server. This is the firs time I've tried this and since my experience with Indy is quite limited, i took the following snippet of code: unit MsMultiPartFormData; interface uses SysUtils, Classes; const CONTENT_TYPE = 'multipart/form-data; boundary='; CRLF = #13#10; CONTENT_DISPOSITION = 'Content-Disposition: form-data; name="%s"'; FILE_NAME_PLACE_HOLDER =

How to avoid getting an error 10053 (WSAECONNABORTED) if a HttpGet operation in Android is lasting too long?

谁说我不能喝 提交于 2019-12-20 01:09:42
问题 I have an Android application communicating with a Delphi 2006 web service application using Indy 10 TIdHttpServer (coming with Delphi 2006). The Delphi application generates a big XML file and serves this. The XML generation may last more than 5 minutes. If the duration of GenerateXml() is more than about 5 minutes (*), I detect an error 10053 in TIdHTTPResponseInfo.WriteContent if running in the Delphi IDE: Socket Error # 10053 Software caused connection abort. However, on the android side

How to continuously send messages with TIdTCPServer?

我只是一个虾纸丫 提交于 2019-12-19 09:37:28
问题 I need to create a delphi application where when it's started the server is started as well and starts sending messages immediately, but I haven't found an example or tutorial and the nearly 5000 page Indy manual doesn't make it clear to me how I can do this... 回答1: This example uses a Delphi 2009 VCL application with a main form, which contains only one visual component, a TMemo named “MemoLog”. Client and server are both started in the FormCreate event. Note that the client code does not

ssl v3 poodle and move to tls with indy

感情迁移 提交于 2019-12-19 09:23:09
问题 As you know the new poodle is in town, Witch barks got Twitter, Cloudflare to drop support to SSL3. The Indy(TidHttp) 10.6.0.0 revives this nice exception: EidOsslUnerlayingCryptoError message 'Error connecting with SSL. error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure' My question is what is the definition required to handle TLS? update: here is a code that throw the exception: full working code. var parameters:TStringList; keySecretBase64:string; stream

Does Delphi XE2 FireMonkey support Indy for cross-platform apps?

徘徊边缘 提交于 2019-12-19 06:05:24
问题 Looking at the new Delphi XE2 with Firemonkey. Considering that it compiles for Windows, Mac OSX and iOS, VCL components are useless in a FireMonkey application. My question is: Is there/will there be an Indy Firemonkey Edition? Cause I seriously need the IdHTTP.Post(); . If not, is there a way to do this in FireMonkey? I have been googling for quite awhile now, not finding anything. :S 回答1: VCL means Visual Component Library . There's nothing about Indy that is "visual" (meaning "seen at

Does Delphi XE2 FireMonkey support Indy for cross-platform apps?

空扰寡人 提交于 2019-12-19 06:05:24
问题 Looking at the new Delphi XE2 with Firemonkey. Considering that it compiles for Windows, Mac OSX and iOS, VCL components are useless in a FireMonkey application. My question is: Is there/will there be an Indy Firemonkey Edition? Cause I seriously need the IdHTTP.Post(); . If not, is there a way to do this in FireMonkey? I have been googling for quite awhile now, not finding anything. :S 回答1: VCL means Visual Component Library . There's nothing about Indy that is "visual" (meaning "seen at