Re: [twsocket] FTP and Memo - LogText?

2013-05-30 Thread Angus Robertson - Magenta Systems Ltd
> Noticed odd bug in the FTP Transfer program. > I used OverbyteIcsSslFtpServ.exe on another machine The bug is in the ICS FTP server, with the new XDMLSD directory listing command, that is only likely to be used by the ICS FTP client. > < 192.168.0.33 XDMLSD -R > > 192.168.0.33 226 File sent o

Re: [twsocket] best practice for upload status

2013-05-30 Thread Angus Robertson - Magenta Systems Ltd
> Previous advice worked (NoFeat) thanks. I would only do that if testing against the ICS FTP server, other FTP servers (and ICS) provide better file listing commands that use some 'features'. > What would be the simplest method to track how many bytes/files > have been uploaded/downloaded. Ch

Re: [twsocket] FTP and Memo - LogText?

2013-05-30 Thread Angus Robertson - Magenta Systems Ltd
> *Subject:* Re: [twsocket] FTP and Memo - LogText? > > The server bug is something to do with the thread that is used > > for the> directory listing and compressing the result > I guess that code added after V1.46 to the worker thread is not > thread save. Or that calls from the events that tri

Re: [twsocket] Postings to the list requires new address?

2013-05-30 Thread Angus Robertson - Magenta Systems Ltd
> > Looks like does no longer work > > however does. > If you see this I was wrong. That message did appear, so it seems both email addresses work, I've had to change my email client filtering to get all twsocket related emails to appear in the correct folder. The twsocket archives seem to b

Re: [twsocket] FTP component not ready

2013-06-10 Thread Angus Robertson - Magenta Systems Ltd
> As far as I know, using the Async commands, the "FTP component not > ready" error occurs if you initiate a command before the previous > one has generated the RequestDone event. Yes, the State variable is checked to ensure the next command can be performed safely. > I have one customer who is

Re: [twsocket] FTP component not ready

2013-06-10 Thread Angus Robertson - Magenta Systems Ltd
> Ok, so what I am trying to establish is that it must be my software > that is causing the problem. I didn't say that, it's probably the control channel dropping, either a network problem or the server disconnecting the session. > There must be some sneaky situation where I am > triggering a n

Re: [twsocket] FTP component not ready

2013-06-10 Thread Angus Robertson - Magenta Systems Ltd
> I ran into a similar problem while testing some of my software. > After a couple of days of pulling my hair out, I thought to change > out my router and the problem disappeared. I never did determine > what was wrong with the router. Many routers support NAT, which is quite messy for the FTP

Re: [twsocket] FTP component not ready

2013-06-10 Thread Angus Robertson - Magenta Systems Ltd
> The original problem is that the "FTP component not ready" just > turns up very occasionally from doing a series of getAsync commands. > So assuming that the error might be from a PORT or PASV, should the > sequence of events I take be to call ftp.Abort followed by some > sort of restart of my

[twsocket] Magenta Systems File Transfer Components v4.1 for ICS V8

2013-06-12 Thread Angus Robertson - Magenta Systems Ltd
There is a new release of the TMagFtp and TMagFileCopy components for ICS V8 today, that may be downloaded from: http://www.magsys.co.uk/delphi/magxfer.asp Main changes are as follows, also XE4 packages added: Added IgnorePaths to SelectCopyFileList and TMagFileCopy to ignore files where source

Re: [twsocket] HTTP server keep-alive timeout aborts GET request

2013-07-02 Thread Angus Robertson - Magenta Systems Ltd
> This works as long as the connection is'nt idle for longer than the > value configured in KeepAliveTimeSec (which defaults to 10 sec). In > that case the connection is terminated by the server Never really looked at KeepAlive. From the naming it sounds like a means of keeping an idle connect

Re: [twsocket] HTTP server keep-alive timeout aborts GET request

2013-07-02 Thread Angus Robertson - Magenta Systems Ltd
> I don't think so. According to a short test it seems that the idle > timeout is usually even lower. Presumably you mean timeout is much higher, ie 5 mins for Apache? Currently, our KeepAlive only checks the last send (in RealSend) or received (DoRecv) and ignores whether the stream has been co

Re: [twsocket] HTTP server keep-alive timeout aborts GET request

2013-07-02 Thread Angus Robertson - Magenta Systems Ltd
> When looking at the code it seems I could use TCustomTimeoutWSocket > properties to get the I/O timeout of 5 minutes. What is missing is > to restrict the KeepAliveTimeSec-timer in > THttpServer.HeartBeatOnTimer from triggering when some data > transfer is in progress. It will need a new idle

Re: [twsocket] HTTP server keep-alive timeout aborts GET request

2013-07-03 Thread Angus Robertson - Magenta Systems Ltd
> On a second look the existing "hcRequest" state seems to be the > state that I > am searching for: the server socket is waiting for new requests. My > question is, why is the state not automatically reset after > "hcSendData" back to "hcRequest"? > As the last changes in this area have been mad

Re: [twsocket] Problem sending large block of data

2013-07-03 Thread Angus Robertson - Magenta Systems Ltd
> I've used TWSocket/TWSocketServer to build client/server > successfully in the past. Now I have one where I need to send a > 20MB block of data from server to client. > it is my understanding that TWSocket is built to handle this > situation Not sure why you expect to send a single block 20MB

Re: [twsocket] Problem sending large block of data

2013-07-03 Thread Angus Robertson - Magenta Systems Ltd
> Looking at TWSocket code, I don't see why one could not send 20MB > in one chunk I try to avoid the low level winsock stuff, but I do know that TIcsBufferHandler is used to store everything before it is sent, each buffer is 1460 bytes (TCP packet size). So your application would be allocating

Re: [twsocket] HTTP server keep-alive timeout aborts GET request

2013-07-05 Thread Angus Robertson - Magenta Systems Ltd
> Attached is a patch file to highlight my changes I asked you to email it privately, most of the hundreds on the mailing list won't need it, also attachments are usually stripped. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi

Re: [twsocket] ics udp

2013-07-05 Thread Angus Robertson - Magenta Systems Ltd
> hi, i'm using Twsocket and ics component on delphi xe4, i wanted to > know if some one had a demo example that explain how to send and > receive image from the client to the server > (Timage-->stream-->Timage) through UDP. Thanks in advance Generally not a good idea to use UDP for sending dat

[twsocket] Updates for HTTP client and server

2013-07-12 Thread Angus Robertson - Magenta Systems Ltd
The overnight V8 zip has changes for HTTP client and server. Log: OverbyteIcsHttpSrv.pas Jul 11 2013 V8.05 Angus Tobias Rapp found that client requests timed out after 10 seconds inactivity due to KeepAliveTimeSec which is far to fast. So added KeepAliveTimeXferSec default to 300 seconds which

[twsocket] SSH

2013-07-18 Thread Angus Robertson - Magenta Systems Ltd
Is there an easy way to support SSH for ICS? Just need secure telnet to a 30 year old Unix application. I've looked at the OpenSSH pages, but this seems to be tools rather than APIs. I understand the OpenSSL DLLs provide all the encryption needed. Has anyone tried to use SSHTNEMULVT from the

Re: [twsocket] SSH

2013-07-18 Thread Angus Robertson - Magenta Systems Ltd
> I do not think so. Last year I wrote a very simple > Putty-wrapper in order to be able to get a directory listing Thanks, just been playing with putty, it will connect to the Unix system, but the tunnelling does not seem to work with the application that does not support SSH. The application

[twsocket] FTP client sync functions bug

2013-07-26 Thread Angus Robertson - Magenta Systems Ltd
The overnight ICS V7 and V8 zip files have a FTP client fix for a long term bug that may effect any applications using certain synchronous functions that use multiple FTP commands in sequence. From SVN: Fixed bug in WaitUntilReady that meant some sync methods with multiple commands randomly term

Re: [twsocket] Not all data sent via THTTPServer being received in Chrome, Firefox, RESTClient

2013-08-07 Thread Angus Robertson - Magenta Systems Ltd
> I call SendStream() on the connection having created the full > DocStream It is usual to set the stream, then: Flags = hgSendStream so the component does the hard work. > To be honest I don't know (am struggling to assert) whether the > data is being gzip or not before it is sent. Gzip i

Re: [twsocket] Implementing Push Notifications to Custom Clients

2013-08-09 Thread Angus Robertson - Magenta Systems Ltd
> We want to implement something like push notifications to custom > applications from our backend server to custom clients. To an extent, this depends on how many clients are connected, since servers have limits. If low, you can keep TCP/IP connections open and just design your own protocol

Re: [twsocket] Implementing Push Notifications to Custom Clients

2013-08-09 Thread Angus Robertson - Magenta Systems Ltd
> Would "keep TCP/IP connections open" be the same as persistent > connections? Yes, although TCP/IP itself does not have a mechanism to confirm a connection is still open, except possible keep alive packets. Normally you only find out a connection has disconnected when trying to send something,

Re: [twsocket] mlsd and modified data

2013-08-23 Thread Angus Robertson - Magenta Systems Ltd
> I'm using the FTP Client component to get some file data from our > Dreamhost FTP server. > I'm using the MLSD command, but I've noticed that the modified > value for a file isn't always the same e.g > Running on two different machines gives two different values > > modify=20130803144603 > mod

Re: [twsocket] mlsd and modified data

2013-08-23 Thread Angus Robertson - Magenta Systems Ltd
> I'm assuming you mean local to their server, rather than local to > the client ? Yes, the FTP has no knowledge of the client's time zone. > What's also odd is that mlsd from one client results in the files > returned in a different order than another client - I'd have > expected that the se

[twsocket] SMTP server component

2013-08-27 Thread Angus Robertson - Magenta Systems Ltd
I have a project coming up that will need an SMTP server component, listening on port 25 and accepting incoming emails, one high level component that ICS currently lacks. Ian Baker of Codecutters contributed an open source SMTP server component 10 years ago, as did Sven Schmidts of Concept Desig

Re: [twsocket] TPing, PingThrd1...

2013-09-03 Thread Angus Robertson - Magenta Systems Ltd
> Using the PingThrd1 example I set the timeout and it does not make > any difference when the no response error message arrives. Where did you find that example? Was that some I wrote 10 years ago? The ICS demo is OverbyteIcsPingTst1, and the ICS V8 version of ping now includes TPingThread.

Re: [twsocket] TPing, PingThrd1...

2013-09-03 Thread Angus Robertson - Magenta Systems Ltd
> *Subject:* Re: [twsocket] TPing, PingThrd1... > Well it seems the timeout has zero effect. > Setting it to any number does not change the result. I was wrong before, the timeout relates to the Windows ICMP blocking request, as does the resulting reply in ms. Are you getting the same result fr

Re: [twsocket] Access denied issue

2013-09-03 Thread Angus Robertson - Magenta Systems Ltd
> I'm using the FTP client component in my app to login to my public > FTP site and download some files. > This seems to work well for almost all my customers, but one is > getting a '550' access denied message. The error is happening with the MSLD command which needs to open a data connection,

Re: [twsocket] Access denied issue

2013-09-03 Thread Angus Robertson - Magenta Systems Ltd
> Thanks. slightly different if PassiveMode = FALSE, but no cigar :( > 09:13:40:776 LastResponse was : '502 Active FTP not allowed.' Unusual to see an FTP server specifically refuse non-passive connections, do you know what make? Unfortunately you won't get much further without seeing the actual

Re: [twsocket] TPing, PingThrd1...

2013-09-03 Thread Angus Robertson - Magenta Systems Ltd
> I was just testing one internal IP address to a computer that is > turned off. > Maybe I am doing something wrong but just setting the timeout does > not alter any test. You mean it does not alter in a test to a single IP address. Timeout has always worked for me in numerous applications, on

Re: [twsocket] Access denied issue

2013-09-03 Thread Angus Robertson - Magenta Systems Ltd
> Could it be some kind of proxy at the clients end ? > > I've just tried connecting without using passivemode on my PC and I > don't get a rejection as you can see from the logs below. If the FTP server accepts your non-passive connection, that refused message would not appear to be server gener

Re: [twsocket] TSslFtpClient and OmniThreadLibrary speed

2013-09-17 Thread Angus Robertson - Magenta Systems Ltd
> The Create constructor makes a copy of the fFileList array and > creates the TFtpClient object. > StartSync does the upload. The only thing that should matter is that you set MultiThreaded=true and use TIcsWndControl.MessagePump instead of Application.ProcessMessages. My TMagFtp component has

Re: [twsocket] Best way to upgrade ...

2013-09-19 Thread Angus Robertson - Magenta Systems Ltd
> I am working on a project that was originally written in D5. And > the project using a free IRC component, SlyIrc by Steve Williams, > were it has used TWSocket v434 for its wsocket needs.  > So, once I > edit this line to correctly use the FWSocket I now get the > following  hard error: >

Re: [twsocket] Best way to upgrade ...

2013-09-19 Thread Angus Robertson - Magenta Systems Ltd
> Can not tell you if it actually works Should have said that since you want to use XE3, you also have to undertake a Unicode conversion of the source code, since all the PChars and Strings will now become wide by default. You can trying changing them all to PAnsiChar and AnsiString, but you'll

Re: [twsocket] ICS FTP Client - Error Handling

2013-09-20 Thread Angus Robertson - Magenta Systems Ltd
> Should the FTPErrror event play any part in the error handling or > can everything be sorted out from the FTPRequestDone event? Generally, RequestDone is called for all events, but there are exceptions like after ABORT. So I always check for Connected after every command and die if not. You

Re: [twsocket] SSL Handshake failing

2013-10-01 Thread Angus Robertson - Magenta Systems Ltd
> Yes, the applications are using the same version of the DLLs. Are the DLLs in the same directory as the application? If not, Windows will go searching the environment path and may find old or corrupted SSL DLLs. I always like to log the SSL version and DLL file name when an application start

Re: [twsocket] ICS-V8 has been released

2013-10-03 Thread Angus Robertson - Magenta Systems Ltd
> ICS-V8 has been released. The major changes in V8 include: - Support for Delphi 7 to RAD Studio XE5 - Support for Firemonkey and Mac OS-X (still beta) - New support for IPv6 in most components - New SocketFamily property (sfAny, sfAnyIPv4, sfAnyIPv6, sfIPv4, sfIPv6) - New MultiListenSock

Re: [twsocket] Delphi TServerSocket vs ICS equivalent

2013-10-08 Thread Angus Robertson - Magenta Systems Ltd
> What I am wondering is would I be better off using one of the ICS > socket components for this. Maybe TWSocket or TWSocketServer. The latter. > If so, what is the best demo to show how these components are used OverbyteIcsTcpSrv.dpr is the main socket server demo, which works with OverbyteIc

Re: [twsocket] Delphi TServerSocket vs ICS equivalent

2013-10-08 Thread Angus Robertson - Magenta Systems Ltd
> I assume I can set the component not to filter anything incoming. I > will be receiving shed loads of XML type data with CR LFs optional. The two main decisions using TSocketServer are whether to send a banner on answer (which upsets many clients) and whether to use LineMode to receive data.

Re: [twsocket] Broadcast with several network adapters

2013-10-09 Thread Angus Robertson - Magenta Systems Ltd
> 3. I send UDP packets with a target address of 255.255.255.255 > This works fine as long as only one network adapter is present in > the system. But with more than one Windows picks the one with a > configured gateway and doesn't send anything via the local ones > without defined gateway. With

Re: [twsocket] Delphi TServerSocket vs ICS equivalent

2013-10-09 Thread Angus Robertson - Magenta Systems Ltd
> Alternatively you start a timer with short interval (100 ms) when > you receive data, reset the timer each time you receive data and > keep adding the data to a buffer. > Once the timer triggers you can assume you have all data. This way > it keeps working of the XML layout changes :) A timer

Re: [twsocket] Can't get https://yahoo.com with latest version of TSslHttpCli

2013-10-09 Thread Angus Robertson - Magenta Systems Ltd
> Using the sample OverbyteHttpsTst application, I get the below, but > no body content. It looks like it goes through some redirects and > switches to http from https. Indeed, it switches to non-SSL but still using port 443, and you then get an 10053 abort error. I've reproduced the same error

Re: [twsocket] Attach to a target thread?

2013-10-10 Thread Angus Robertson - Magenta Systems Ltd
> I'm starting with ICS. I need to build a http webservice with 6 > worker threads that process jobs. > I started my code based on the ThrdSvr sample project, I'm sure you can achieve what you need with thread server, but I've never done it, and you are also re-inventing the two existing web serv

Re: [twsocket] Attach to a target thread?

2013-10-10 Thread Angus Robertson - Magenta Systems Ltd
> So my question: is there any way to attach a client connection to > another thread immediately, from the main thread? Probably, but I've said I've not done it myself, no need. Others may have done so, but I don't believe it necessary for your application. > The problem is really that my work

Re: [twsocket] Connecting with Philips HUE

2013-10-13 Thread Angus Robertson - Magenta Systems Ltd
> I have a number of the Philips HUE lamps that I can control with > the iPhone app. > https://github.com/cDima/Hue/blob/master/Hue/UPnP.cs This is a Universal Plug and Play discovery function, about which Francois has written in his blog, with a demo program: http://francois-piette.blogspot.c

Re: [twsocket] Connecting with Philips HUE

2013-10-14 Thread Angus Robertson - Magenta Systems Ltd
> Thank you . It compiled without errors using XE5 and returned this > result. > PresentationURL : http://192.168.0.105/index.html Have you only got a single lamp? Most installations would come back with multiple lamps. Now you have the IP address of the lamp, and can use the HTTP client GET

Re: [twsocket] Connecting with Philips HUE

2013-10-14 Thread Angus Robertson - Magenta Systems Ltd
> The HUE bulbs are linked via ZigBee and unfortunately Philips has not > published that specification. That means any of my other custom > lights cannot be connected through the HUE Ethernet/ZigBee bridge > which is what the ICS application reported. OK, so you are talking to a bridge, which i

Re: [twsocket] ICS-SSL / Proxy, Must I add something ?

2013-11-04 Thread Angus Robertson - Magenta Systems Ltd
> *Subject:* [twsocket] ICS-SSL / Proxy, Must I add something ? > *From:* Bruno Mannina > I try to use HTTP-SSL behind a proxy server, so I give > host/port/user/pwd to the httpssl component. > But it seems to not work. Does a browser like Firefox work through the same proxy server with the same

Re: [twsocket] FTP Client - reconnecting

2013-11-06 Thread Angus Robertson - Magenta Systems Ltd
> For some reason the FTP server I'm connecting to seems to close the > session for no specific reason - here shown with a 426 error, that > currently my code is ignoring and hence I then get a later problem > 530. > > From my FTPClient logs > > 15:36:17:405 local - C:\ProgramData\Navigator S

Re: [twsocket] FTP Client - reconnecting

2013-11-06 Thread Angus Robertson - Magenta Systems Ltd
> I don't think so (though I will double check), as this is happening > about 30 seconds in to the process, I've already iterated through > all the directories and put together a list of files I need to > download and downloaded quite a few of them. Never the less, your log shows a connected ev

Re: [twsocket] FTP Client - reconnecting

2013-11-07 Thread Angus Robertson - Magenta Systems Ltd
> Angus, trying to change the code to use your components. Does the > TMagFtp component support a CopyType := FCTypeDates ; Sorry, seems like I never supported specific date ranges for FTP which is mostly used to synchronise remote and local directories, or for specific files. > if so, how doe

Re: [twsocket] FTP Client - reconnecting

2013-11-07 Thread Angus Robertson - Magenta Systems Ltd
> *Subject:* Re: [twsocket] FTP Client - reconnecting > Now trying with your components and although it's much better > behaved and fails gracefully, it still fails (in my app or the > supplied demo app). > However as both your app and my app fail with my hosted FTP server > and both work with y

Re: [twsocket] SslSmtp - What do I need for an eMail Client?

2013-11-13 Thread Angus Robertson - Magenta Systems Ltd
> I want to switch my eMail Program from smtp to ssl smtp. I've tried > the demos - everything looks fine, but what did I have to deliver > with my application (in special I mean the certificates!). Did I > have to generate and deliver the certificates? I want to use TLS > and SSL. Assuming yo

Re: [twsocket] SslSmtp - What do I need for an eMail Client?

2013-11-13 Thread Angus Robertson - Magenta Systems Ltd
> I was just wondering that the certificates are set in the demo. > Thank you and best regards! The SSL client component still needs an SslContext component, but you can ignore all it's properties. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://li

Re: [twsocket] Errors while send, if client disconnected from socket

2013-12-24 Thread Angus Robertson - Magenta Systems Ltd
> Sometimes client can disconnect on multithreaded server while send, > after that I receive "Range check error" or "Socket is not > connected (#10057 in Send)" SVN for V8 is updated with Francois' cast fix in various PostMessages to avoid the range check error (some were already cast correctly)

Re: [twsocket] [Off Topic] Vote for Delphi on Code2013

2014-01-03 Thread Angus Robertson - Magenta Systems Ltd
> Well, I said how to vote: "You can cast your vote by sending a > tweet So it's effectively a survey of Twitter followers about their favourite language, excluding the many people who don't use Twitter If they wanted a properly representative survey, there would be several voting methods.

Re: [twsocket] [Off Topic] Vote for Delphi on Code2013

2014-01-03 Thread Angus Robertson - Magenta Systems Ltd
> Is the relative number of language users different among those > having a > tweeter account and the others? I don't think so. So the result IS > representative. Older people often don't have the time or inclination to keep up with the trends our children follow. I've been using the same socia

Re: [twsocket] RFC 822 Date Time Conversion

2014-01-30 Thread Angus Robertson - Magenta Systems Ltd
> Has anyone got a solid method of converting RFC 822 date times > (e.g. Thu, 30 Jan 2014 05:48:07 +0800) to a TDateTime. There are RFC1123 date parsing functions in OverbyteIcsSmtpSrv.pas and OverbyteIcsHttpProt.pas, but neither handle the time zone. Angus -- To unsubscribe or change your s

Re: [twsocket] OverbyteIcsFtpCli v8 (current) old problem resurfaces

2014-02-07 Thread Angus Robertson - Magenta Systems Ltd
> { V8.03 InternalReady happens between multiple commands, ignore it } > if FState in [ftpReady {, ftpInternalReady}] then begin > Include ftpInternalReady in the check and it should work again. > > @Angus, why did you change it? For the reason documented in the code, the longer version

Re: [twsocket] default gzip of json by THTTPServer - is it possible or am I to do it myself?

2014-02-07 Thread Angus Robertson - Magenta Systems Ltd
> I have enabled content encoding on my THTTPServer: > And return content to my client using AnswerString > > pClientCnx->AnswerString(Flags, > "200 OK", > "application/json", > sResponseHeader, >

Re: [twsocket] default gzip of json by THTTPServer - is it possible or am I to do it myself?

2014-02-12 Thread Angus Robertson - Magenta Systems Ltd
> Not used JSON myself, but I'd guess if it's a compressable response > then 'application/json' needs to added to that line so compression is > not skipped. SVN was updated a couple of days ago with this JSON fix in the HTTP Server, also now compressing Javascript, and recognising both as MIME t

Re: [twsocket] Handshake of TWSocket

2014-02-18 Thread Angus Robertson - Magenta Systems Ltd
> > is there anybody who can and will explain to me if the socket > > handshake protocol is implemented > GET /chat HTTP/1.1 > Host: server.example.com > Upgrade: websocket Sorry, websockets is not supported by the ICS HTTP components. Another ICS user has implemented websockets: htt

Re: [twsocket] Basic HTTP Authentication over SSL

2014-02-18 Thread Angus Robertson - Magenta Systems Ltd
The process should be as follows: 1) Use HTTP POST to pass username and password parameters to login URL 2) A token string is returned if login was successful 3) The token is then used as Basic Authentication using HTTP GET to retrieve JSON from different API URL Step 1 and 2 are no

Re: [twsocket] No Socket Handshake available

2014-02-18 Thread Angus Robertson - Magenta Systems Ltd
> I encountered that the socket handshake, as described in RFC 6455, > is not implemented in the ICS components of overbyte. That standard is websockets, not sockets, totally different. Websockets is not supported by ICS, see the answer I gave you yesterday which you ignored, I suggest an ICS c

Re: [twsocket] Multiple TCp clients

2014-02-25 Thread Angus Robertson - Magenta Systems Ltd
> I am trying to interface with some laboratory instruments, > previously we used RS-232, now we are working on the next > generation of machines. The instruments act as servers, You might want to look at our ComCap software, which is widely used for capturing data from lab and medical instrume

Re: [twsocket] When receiving UDP datas, find if there were sent through a broadcast

2014-02-25 Thread Angus Robertson - Magenta Systems Ltd
> I have a server with an UDP socket listening. > Some Clients connect with the Ip address of the server : Direct > Addressing. > Some Clients do not know the Ip address of the server, therefore > they connect by sending a broadcast. > In OnDataAvailable event, i would like to know which Clients

Re: [twsocket] When receiving UDP datas, find if there were sent through a broadcast

2014-02-26 Thread Angus Robertson - Magenta Systems Ltd
> If not, is there a flag somewhere in twsocket to tell an UDP > socket to ignore clients who knocks on a given port with a > 255.255.255.255 address ? The only addresses provided by the protocol are source and destination, I don't know broadcasting is implemented, but would assume it's down to

[twsocket] OT: Microsoft network sniffers

2014-03-11 Thread Angus Robertson - Magenta Systems Ltd
Never noticed them before, but Microsoft has two network traffic monitoring or sniffer tools. The older one is Microsoft Network Monitor 3.4 for XP and later, and Microsoft Message Analyzer 1.0 for Windows 7 and later, both free from the download center. Has anyone tried either? I note that N

Re: [twsocket] Using ICS V5 POP3 with SSL

2014-03-12 Thread Angus Robertson - Magenta Systems Ltd
> *Subject:* [twsocket] Using ICS V5 POP3 with SSL > *From:* Veit Zimmermann > *To:* twsocket@lists.elists.org > I have to replace an old ICS V5 with a SSL enabled version. I > thought the easiest way would be to replace it with the V5 SSL > version, but It doesn't work for some reason. V5 has

Re: [twsocket] SFTP

2014-03-19 Thread Angus Robertson - Magenta Systems Ltd
> I am starting to get users who want to step up the security of the > FTP connection and are tending towards SFTP (S being Secure and not > Simple in this case) rather than FTPS. Simplicity of getting though > firewalls seems to be a consideration. Don't believe SSL makes firewall support any

Re: [twsocket] SFTP

2014-03-19 Thread Angus Robertson - Magenta Systems Ltd
> I get the impression there are two types of secure FTP: SFTP or FTPS are non-standard confusing names, and different people interpret them in different ways. That's why we specify FTP SSL, and not FTPS to clearly identify what is offered by ICS. There is also FTP over SSH, which is really a U

Re: [twsocket] FTP TLS, SSL, + passive mode problem

2014-04-16 Thread Angus Robertson - Magenta Systems Ltd
> i'm using FTPcli in one of my projects, and i have problem with > FTPs over TLS with passive mode.. > I have disconnects during the uploads: sometimes upload goes > through but in most cases upload stops after PASV command... > This happens with different types of files and at least on 2 FTP >

Re: [twsocket] Problem when using TPing with TSslWSockServer

2014-04-17 Thread Angus Robertson - Magenta Systems Ltd
> in unit of OverbyteIcsIcmp, > the TICMP.Destroy have some problem Thanks, now fixed in V8 and SVN will be updated overnight. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at ht

Re: [twsocket] HTTP PATCH method for the HttpCli

2014-04-18 Thread Angus Robertson - Magenta Systems Ltd
> Any technical reason for discarding this functionality I submitted > some time ago? How do we test it? There is no sample to run. Nothing to test against. I don't have time to read the Google Drive API, Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] Clarification Re: "FTP TLS, SSL, + passive mode problem"

2014-04-18 Thread Angus Robertson - Magenta Systems Ltd
> asked me about it), this server is private (hosting in US : > atomicvps.com) So you are using a public server on a WAN, with a NAT routers or a firewall on either end of the connection? > as another test i also installed local filezilla server and was > able to reproduce same problem with it

Re: [twsocket] HTTP PATCH method for the HttpCli

2014-04-18 Thread Angus Robertson - Magenta Systems Ltd
> It's exactly the same code as for POST and PUT. Only the HTTP > method name changes. So there is no way for us to test the changes, without extra development to change our web samples? I also can not make TortoiseSVN recognise your patch file, which is either faulty or badly formatted, or ma

Re: [twsocket] HTTP PATCH method for the HttpCli

2014-04-20 Thread Angus Robertson - Magenta Systems Ltd
SVN is now updated with the PATCH method in the HTTP Client. Angus Original Message *Subject:* Re: [twsocket] HTTP PATCH method for the HttpCli *From:* RTT *To:* ICS support mailing *Date:* Fri, 18 Apr 2014 17:31:38 +0100 On 18-04-2014 16:34, Angus Robertson - Magenta

[twsocket] SSL improvements

2014-04-20 Thread Angus Robertson - Magenta Systems Ltd
To improve handling and reporting of PEM SSL certificates, there is a new component class TX509Ex derived from TX509Base adding properties for most common certificate entries including extensions, there are the properties reported for my code signing certificate, as reported by the updated Overbyte

Re: [twsocket] Invitation to test ICS and OpenSSL 1.0.1g

2014-04-21 Thread Angus Robertson - Magenta Systems Ltd
> I uploaded the OpenSSL libraries 1.0.1g to the wiki site. > And updated the SVN to allow that version of OSSL. > I did not had much time to test, so I have to invite users > instead to test their ICS applications against the new OSSL > and report any problem that was not yet with an older OSSL

Re: [twsocket] Openssl-1.0.1g

2014-04-21 Thread Angus Robertson - Magenta Systems Ltd
> Will you be testing 1.0.1G soon? Already done and announced in this mailing list over the weekend. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

Re: [twsocket] TFtipClient and TFtpServer and 10053 error after Transmit successful...

2014-04-22 Thread Angus Robertson - Magenta Systems Ltd
> The Transmit method returns failure even though the file is > successfully uploaded. Notice how the request is 18, the StatusCode > is 226 but an Error 500 is returned with a winsock error of #10053). 226 is success, so no idea why you get 500 as well. The transmit method does several comm

Re: [twsocket] TFtipClient and TFtpServer and 10053 error after Transmit successful...

2014-04-25 Thread Angus Robertson - Magenta Systems Ltd
> Not sure if this gives us more information to go on. Any ideas? Assuming you are logging OnError, I can see no errors reported, so all we have is the error code 500 after a sequence of FTP events that all appear to have completed correctly. Are you logging the ErrorMessage property at the end,

Re: [twsocket] C++Builder XE6

2014-05-13 Thread Angus Robertson - Magenta Systems Ltd
> 1. Any chance for a C++Builder XE6 project? Sorry, there are no new C++ Builder for XE4/5/6 and old packages are not being tested with new components. Maintaining support for two new versions of Delphi a year and all the old ones is painful and tedious, just for Delphi there are 16 different

Re: [twsocket] C++Builder XE6

2014-05-13 Thread Angus Robertson - Magenta Systems Ltd
> I think my best option may be to just get Delphi and install them > in Delphi where they will also be available in C++Builder. Sorry, no idea if this would work, I thought the two environments were separate, except C++ Builder also includes a Delphi compiler for the libraries. > I couldn't g

Re: [twsocket] C++Builder XE6

2014-05-13 Thread Angus Robertson - Magenta Systems Ltd
> I would be happy to share my work if you'd like and you think it > might be helpful to others... Probably, but we really need all three missing BCB versions tested, which needs someone with all these versions installed, which is not trivial. I have Windows 7 VM that is currently 120 gigs with

Re: [twsocket] C++Builder XE6

2014-05-13 Thread Angus Robertson - Magenta Systems Ltd
> Copy/backup your VMs so you can keep the setups. I do have backup, the problem is Windows can self destruct due to too many patches and changes, had to re-install XP every couple of years. Hopefully Windows 7 is more stable, particularly as the VM is only used for component building and testing

Re: [twsocket] TSslPop3Cli... 6.13

2014-05-26 Thread Angus Robertson - Magenta Systems Ltd
> I am having trouble deleting messages in Gmail via POP3. No problem here with some code I wrote 16 years ago: Opening Mailbox: Google Mail ! Starting SSL handshake Mailbox Opened Securely with TLSv1.2, cipher ECDHE-RSA-AES128-GCM-SHA256 < +OK Gpop ready for requests from 82.41.127.188 q51mb899

Re: [twsocket] TSslPop3Cli... 6.13

2014-05-26 Thread Angus Robertson - Magenta Systems Ltd
> > Note messages are only deleted when the mailbox is actually > > closed with the QUIT command. > > I think that is the issue. This is a 24/7 program and I do not > issue the quit until the program is stopped. POP3 mailboxes are rarely dynamic, they show a snapshot of the content when opened,

Re: [twsocket] THTTPCli and 307 or 308 redirects with non GET methods

2014-05-27 Thread Angus Robertson - Magenta Systems Ltd
> This subject doesn't deserve not even a reply?! I'm the only one able to fix things here at the moment, and I have a lot of other priorities. But I'll put it on my list for next month. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.o

Re: [twsocket] SmtpCli/TWSocket bug: wrong Socks behaviour

2014-05-30 Thread Angus Robertson - Magenta Systems Ltd
> Found a bug in Socks implementation. > Current ICS implementation (v7 and v8) not allow to use socks > server if they configured to listen on IPv4 IP but send out from > IPv6 IP ! Don't believe IPv6 is supported for SOCKS, yet. Can you not set the local interface to IPv4 to avoid the proble

Re: [twsocket] Best multithread approach to build http server

2014-05-30 Thread Angus Robertson - Magenta Systems Ltd
> I'm building a service application based on THttpServer. For each > OnGetDocument event I'm building and returning XML. The XML building > process can be lengthy and I'd like to be able to handle other > requests while one is being processed. Look at the the FTP server component. This is fully

Re: [twsocket] Threads

2014-06-04 Thread Angus Robertson - Magenta Systems Ltd
> Do the OnSessionConnected, OnSessionClosed and OnDataAvailable > events run in their own threads? No, TWSocket does not use any threads. Windows does internally, but that is transparent to a Delphi application. All events are called in the context of the thread in which the component is cr

[twsocket] TnEmulVT updated

2014-06-05 Thread Angus Robertson - Magenta Systems Ltd
Thanks for DrJohn for changes to OverbyteIcsTnEmulVT and OverbyteIcsEmulVT, as follows: May 28, 2014 v8.02 DrJohn fixed problem with (border) colours AutoResize property added with improved font resizing SoundOn property added GetScreenText function added Fixed bug during connect if control not v

Re: [twsocket] THTTPCli and 307 or 308 redirects with non GET methods

2014-06-05 Thread Angus Robertson - Magenta Systems Ltd
> The 307 and 308 redirects must maintain the same request method, > and not revert to GET as with other redirects. This change is now in SVN, although there is a lot of online debate over many years about whether this change is allowed by the RFCs, at least without user interaction, different br

Re: [twsocket] THTTPCli and 307 or 308 redirects with non GET methods

2014-06-06 Thread Angus Robertson - Magenta Systems Ltd
> My understanding is that, when redirecting, the request method > should revert to GET, for any method (POST, PUT, DELETE,...) and > only maintain it when the redirect is of type 307 or 308. >From which RFC (and section)? > The way you have code it only works for POST. Yes, should HEAD revert

Re: [twsocket] THTTPCli and 307 or 308 redirects with non GET methods

2014-06-07 Thread Angus Robertson - Magenta Systems Ltd
> Not easy to get it from the RFCs or from the online discussions, > but I've now checked how Firefox and Chrome are implementing it Exactly, each browser has implemented redirection in different ways for different requests, there is no general consensus If you can just check MSIE as well, h

Re: [twsocket] UDP Listener

2014-06-07 Thread Angus Robertson - Magenta Systems Ltd
> I am trying to create a UDP listener for Windows platform and was > wondering, is it possible to receive UDP messages sent via Internet > browsers from my UDP listener which is built with ICS? > > If there are problems or something I should know, please let me > know! Creating a UDP listener

Re: [twsocket] Nagios like communication

2014-06-09 Thread Angus Robertson - Magenta Systems Ltd
> I would like to implement a new feature into one of my applications > where I can ask for a status > through a (VPN)network connection, kind of like Nagios does. Status of what? > Or maybe even build functionality into it so that it can be queried > by Nagios. Query what? Nagios is a Linu

  1   2   3   4   5   6   7   >