Re: [twsocket] Getting Local IP Address of a socket

2011-12-01 Thread Francois PIETTE
did mention about using ICS and LocalIPList property. But I simply could not find the property/method. Anyway, thanks again for the pointer. LocalIPList has nothing to do with a specific socket, it is a global function returning the lists of all local IP addresses. -- francois.pie...@overbyt

Re: [twsocket] Getting Local IP Address of a socket

2011-11-30 Thread Francois PIETTE
I tried to read WsocktServer1->LocalAddr but the value is 0.0.0.0; Is there a way (using ICS) to get what ip does a socket bind to? A server socket is either bound to ALL IP addresses or to a single one. When bound to a single IP, you - as the programmer - select which one by setting the Addr

Re: [twsocket] Evaluating TOverbyteIcsSysLogServer

2011-11-11 Thread Francois PIETTE
Changes applyed. Thanks. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/

Re: [twsocket] Evaluating TOverbyteIcsSysLogServer

2011-11-11 Thread Francois PIETTE
Hello Peter, Thanks for your feedback. While you are at it, maybe you could fix the issues you see and propose it to the community ? Before doing that, be sure to download the very latest development snapshot, preferably directly out of the SVN repository. Then make your changes and submit a S

Re: [twsocket] TcpSrv and CliDemo - Connection Problems

2011-11-04 Thread Francois PIETTE
Hi, Your message has not reached the mailing list for unknown reason... I have no idea. The most likely is a firewall (internal to Windows or external in the network infrastructure you are using. You said the server is listenig on port 336. OK, but is it on the correct interface ? Try with anot

[twsocket] [OT] XE2 update #2

2011-11-02 Thread Francois PIETTE
http://docwiki.embarcadero.com/RADStudio/XE2/en/Release_Notes_for_XE2_Update_2 -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be -- To unsubscribe or change your settings for

Re: [twsocket] THTTPCli fail to resolve URLs that start with "//"

2011-10-27 Thread Francois PIETTE
This kind of change would be interesting if implemented in a way that a derived class can implement his own parser. The base class in ICS would then parse the URL as currently and the developer would be able to create a derived class (component) which override the standard behaviour with whatev

Re: [twsocket] THTTPCli fail to resolve URLs that start with "//"

2011-10-27 Thread Francois PIETTE
URLs that start with "//" On 27-10-2011 19:28, Francois PIETTE wrote: If I'm wrong, please point me to the exact text in the /HTTP/ standard (RFC2616). From RFC2396, that merge RFC1808 with two others, and that

Re: [twsocket] THTTPCli fail to resolve URLs that start with "//"

2011-10-27 Thread Francois PIETTE
According to the rfc1808.txt, an URL can start with // The ParseURL function will fail in such cases. Also, during a relocation, the THTTPCli fail to parse a "location" field with such URLs. Here is an example, that result in a relocation with these characteristics http://twitpic.com/show/thumb/

Re: [twsocket] SMTP Server

2011-10-24 Thread Francois PIETTE
I'd like to add to a desk application (C++Builder) running under W7 pro, the possibility for the user to send emails from this program. The TSmtpCli component is very convenient for that purpose, but the Smtp Server is not very easy to find, when it exists, in the register. You don't need to kn

Re: [twsocket] HttpServer and Server-push?

2011-10-23 Thread Francois PIETTE
Why don't you announce it on your web site and this list with an announcement? It is announced since we are talking about it. But obviously, you used the wrong conversation and the wrong subject. Please note that I have not said that I will do it. Let's first see how much money we can collect.

Re: [twsocket] HttpServer and Server-push?

2011-10-22 Thread Francois PIETTE
I think we all need SPDY support: http://en.wikipedia.org/wiki/SPDY Interesting. Why don't you start the development ? Using TSSLWSocket should be OK for that purpose. Unfortunately I do not have that much time. Why don't we collect some donation from members for some dedicated coder to im

Re: [twsocket] Purposal to remove the none finished .NET code from across platform ICS (IPv6 branch)

2011-10-22 Thread Francois PIETTE
With upcomming cross platform support new IFDEFs are required. The V7 DotNet port Francois committed a few years ago has never been finished and in the meanwhile a lot of development took place with zero care about .NET compatibility. As a result current .NET state is in a very bad state and I dou

Re: [twsocket] HttpServer and Server-push?

2011-10-22 Thread Francois PIETTE
I think we all need SPDY support: http://en.wikipedia.org/wiki/SPDY Interesting. Why don't you start the development ? Using TSSLWSocket should be OK for that purpose. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet

Re: [twsocket] TSslWSocketClient & Download

2011-10-20 Thread Francois PIETTE
I am having server and client built with TSslWSocketClient & Server. I would like to to make client to download bunch of files from the server when it gets the command from the server. The command will be a list of the files to download. Is this possible? Sure, it is basically what a FTP serve

Re: [twsocket] HttpServer and Server-push?

2011-10-18 Thread Francois PIETTE
I then need to be able to send HTTP messages (xml documents) back from the server to the client periodically or as and when I need to, down the already open connection. The client still needs to be able to respond to these messages. Since you seems to control both client and server side, I wonde

Re: [twsocket] ICS and FireMonkey

2011-10-18 Thread Francois PIETTE
FYI: Here's the next one, HttpsTst demo live on the Mac: http://www.bilder-space.de/show_img.php?img=40aadd-1318952812.png&size=original SSL worked more or less out of the box :) Waouw ! francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the free

Re: [twsocket] ICS and FireMonkey

2011-10-12 Thread Francois PIETTE
Interesting screenshot: http://www.bilder-space.de/show_img.php?img=955c9e-1318435341.png&size=original Great ! -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be -- To unsub

Re: [twsocket] To which file is explanation of each methods (put, dir, dele, etc.) of TFtpCli written?

2011-10-03 Thread Francois PIETTE
Hello 日本気象(株) 荒二井 勇 , PLEASE when replying, please edit your Subject line so it is more specific and trim the message to keep only relevant part for discussion. To which file is explanation of each methods (put, dir, dele, etc.) of TFtpCli written? They directly matches the FTP specificati

Re: [twsocket] about TFTPClient

2011-10-01 Thread Francois PIETTE
Hello, Please see OverbyteIcsFtpTst sample program. You can find it in ICS distribution. If you need more help, please ask for specific questions. Regards, francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (

Re: [twsocket] happy independece day ICS

2011-09-26 Thread Francois PIETTE
Fake site !!! I have unsubscribed the guy. His system is probably infested. Sorry for inconvenience. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be -- To unsubscribe or chan

Re: [twsocket] DLL implementation advice (or example)...

2011-09-17 Thread Francois PIETTE
I see. The idea is the usage of the widestring just as a easy way to call the, behind the scene, SysAllocString and SysFreeString, that we need in this case. But we can always treat it as a buffer, setting its length, and moving data, explicitly, without casting. In my opinion, it is ALWAYS a

Re: [twsocket] Undeclared identifier: 'TSslWSocket'

2011-09-16 Thread Francois PIETTE
Add USE_SSL in the conditional defines for your project options. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be -Message d'origine- From: Daniel Legrand Sent: Frida

Re: [twsocket] ICS v7 for XE2 online now - Thanks

2011-09-02 Thread Francois PIETTE
I would like to send a special thank you to both Arno Garrels and Angus Robertson. ICS for Delphi XE2 64 bit is here because those two highly expermented volunteers worked hard. Double special thank you to Arno who made the 64 version alive. --- francois.pie...@overbyte.be The author of the fr

Re: [twsocket] multithread server

2011-08-17 Thread Francois PIETTE
Sometimes Windows triggers OnDataAvailable when no data is actually available. This is how it works. It is safe to ignore it. The most important is to call Recv (or any derivative) anyway. Using RcvdCount to decide to call or no Recv is wrong. Always call Recv which is the only one to actually

Re: [twsocket] thread safety and async operation

2011-08-16 Thread Francois PIETTE
Is ICS safe for using in non-thread safe programs? Yes of course. i.e. is this scenario safe: - single thread program writes to a disk file - ICS is used to fetch something and written as buffer to the same disk file and not corrupting previous wrte - main thread is never interrupted by ICS

Re: [twsocket] Multithreaded server not triggering SessionAvailableevent.

2011-08-14 Thread Francois PIETTE
I've been forced down the Multi-threaded server route as I'm using a client's API that only works when on its own connection thread. What kind of client API ? Everything has been working fine except for an issue I get that when the PC is busy with multiple connections, some new connections do

Re: [twsocket] [OT] Nice forum engine based on the mailing list

2011-08-08 Thread Francois PIETTE
As I already said a lot of times in the past, I don't want a newsgroup because I would loose control on the group. Subject closed. francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be

Re: [twsocket] problem with ping and server index error

2011-08-07 Thread Francois PIETTE
We have a small issue with out client/server connection and disconnection code everything works fine until a user connection fails from there site (internet kick) and then our server will get a index error on sending ping to all users I think the problem is that the server is still trying to sen

Re: [twsocket] [OT] Nice forum engine based on the mailing list

2011-08-06 Thread Francois PIETTE
Since Win7 there's no mail reader available, shame on MS. Not exactly, the good old Outlook Express has been renamed "Windows Live Mail". It has a new "ribon tool bar" and slightly different folder treeview, but it is still Outlook Express and it is still free. Not delivered with Win7 itself, y

Re: [twsocket] [OT] Nice forum engine based on the mailing list

2011-08-05 Thread Francois PIETTE
Since Win7 there's no mail reader available, shame on MS. Not exactly, the good old Outlook Express has been renamed "Windows Live Mail". It has a new "ribon tool bar" and slightly different folder treeview, but it is still Outlook Express and it is still free. Not delivered with Win7 itself,

Re: [twsocket] Triggering DataAvailable

2011-07-26 Thread Francois PIETTE
I'm using TWSocketServer to handle multiple incoming connections from a client's embedded unit. Unfortunately the remote unit has a few limitations; the main one being that it can establish an IP connection to a server but cannot send data until the server requests it. This means that althou

Re: [twsocket] Terminal Size Scaling

2011-07-13 Thread Francois PIETTE
Well I can only make it work if I use the edit options and manually dink with these until it works.. then if i resize the form, do it all over again. Change the font size to be smaller or bigger, and tweak each other property until all is good. For the end user, that wont be acceptable. Is ther

Re: [twsocket] TWSocket.Close() blocks on certainmachines aftersending UDP

2011-07-13 Thread Francois PIETTE
I just made a nice discovery. I found out that I had another machine (same model, but mini tower) sitting here somewhere. I checked, and the problem does not show there. So I took the hard drive from the not working one and put it in the working one and it booted nicely (since hardware is iden

Re: [twsocket] TWSocket.Close() blocks on certainmachines aftersending UDP

2011-07-13 Thread Francois PIETTE
Thanks for the links, it's an interesting read. What still goes beyond me though, is that all I see in the diagram seems to be hardware independent stuff, so how could it ever happen that it behaves different on different machines? That's the point: IMO the issue comes from the software which

Re: [twsocket] TWSocket.Close() blocks on certainmachines aftersending UDP

2011-07-13 Thread Francois PIETTE
I don't think it is a hardware issue. It is likely a software issue. One of the layer between winsock and the network card has a bug. That is why you see it on one computer and not another. Determining which layer is faulty will be a difficult task ! I don't know what to say to help you :-(

Re: [twsocket] TWSocket.Close() blocks on certainmachines aftersending UDP

2011-07-13 Thread Francois PIETTE
AFAIR the workaround was to do your own ARP request first in order to check whether the destination exists or not, utilizing the IP Helper API. Yes, that what I did. How can I confirm that this is what's happening with me? In my case, the blocking was occuring in the main thread. TO see i

Re: [twsocket] TWSocket.Close() blocks on certainmachines aftersending UDP

2011-07-12 Thread Francois PIETTE
AFAIR the workaround was to do your own ARP request first in order to check whether the destination exists or not, utilizing the IP Helper API. Yes, that what I did. How can I confirm that this is what's happening with me? In my case, the blocking was occuring in the main thread. TO see i

Re: [twsocket] TWSocket.Close() blocks on certainmachines aftersending UDP

2011-07-12 Thread Francois PIETTE
Was Francois able to find a way to make sure this is the case, or a work around? AFAIR the workaround was to do your own ARP request first in order to check whether the destination exists or not, utilizing the IP Helper API. Yes, that what I did. -- francois.pie...@overbyte.be The author of

Re: [twsocket] Hang in TIcsWndControl.ProcessMessages

2011-07-12 Thread Francois PIETTE
Does anyone have ideas why TIcsWndControl.ProcessMessages could hang sometimes when socket is used in separate thread? Actually ProcessMessages probably doesn't hang. ProcessMessages it the place from where all events are called. It is likely an event handler which is blocking. You should try

Re: [twsocket] TWSocket.Close() blocks on certain machines aftersending UDP

2011-07-12 Thread Francois PIETTE
I suggest you look at "security software" which may be installed on those PC. Some of those software (anti-malware, firewall, proxy,...) are malfunctionning in their interception of socket communication. So first do a test with every security software disabled. It may also be a virus or trojan

[twsocket] ICS registration

2011-07-09 Thread Francois PIETTE
Hi ! As you subscribed to ICS support mailing list, you probably use ICS. Good ! But have you taken time to register your ICS copy ? ICS is freeware but to use it, you must register it. Registration is very simple: just mail a [real, paper] picture postcard to the author (me). You can find instr

[twsocket] Mailing list usage

2011-07-08 Thread Francois PIETTE
To all subscribers: 1) Please do not use HTML or RTF messages in the list. Use only plain/text messages (by default Outlook uses HTML ! You must change the setting). When replying, be sure to use plain/text. If someone email to list accidently NOT in plain text and if you reply to it, do

[twsocket] Wiki : author wanted

2011-07-08 Thread Francois PIETTE
Hi ! As you probably know, we have a Wiki for ICS documentation: http://wiki.overbyte.be A wiki is a collaborative tool. We already have a few authors writing articles. Actually not that much ! If you have some spare time, please use it to write some article in the wiki. If each ICS user wri

[twsocket] ICS group on social networks LinkedIn and FaceBook

2011-07-08 Thread Francois PIETTE
Hi ! Every ICS user is invited to be part of ICS-group on Linked-In. See http://www.linkedin.com/e/gis/136245 Why ? Just to have a little bit more visibility for everyone of us and for ICS. There is another one on FaceBook: http://www.facebook.com/pages/ICS-Internet-Component-Suite/394936221

Re: [twsocket] Multicast question

2011-07-08 Thread Francois PIETTE
Hi Emanuele, I see that you seems to fully understand multicast. Can I ask you to write some description about multicast properties in ICS wiki (http://wiki.overbyte.be/wiki/index.php/TWSocket) ? If you don't already have a write access to the wiki, I will grant it to you. Just let me know w

Re: [twsocket] About OnChangeState event

2011-07-08 Thread Francois PIETTE
I am using ICS-V7 Distribution (October, 2010). I have encountered a problem when using this component: I make a Connect() call to invalid address(that is no guy listen on that address and that port), after a while, the OnChangeState event fired, with the NewState = wsConnected, in this case, wh

Re: [twsocket] Hang in TIcsWndControl.ProcessMessages

2011-07-08 Thread Francois PIETTE
Does anyone have ideas why TIcsWndControl.ProcessMessages could hang sometimes when socket is used in separate thread? Have you followed the rules: create TWSocket within the thread's execute method OR call ThreadAttach ? Yes socket is created within threads execute method, and it works most

Re: [twsocket] Hang in TIcsWndControl.ProcessMessages

2011-07-07 Thread Francois PIETTE
Does anyone have ideas why TIcsWndControl.ProcessMessages could hang sometimes when socket is used in separate thread? Have you followed the rules: create TWSocket within the thread's execute method OR call ThreadAttach ? -- francois.pie...@overbyte.be The author of the freeware multi-tier mi

Re: [twsocket] Suggestion: set FLastError on session connect/disconnect

2011-07-07 Thread Francois PIETTE
See above. Pausing/resuming the socket shouldn't be used, specially if you have your own worker thread. Just have the socket event handler blocked waiting for some synchronization object. You mean blocking the entire message loop? Yes, indeed. If you don't want any socket event while outside o

Re: [twsocket] Suggestion: set FLastError on session connect/disconnect

2011-07-07 Thread Francois PIETTE
>You get the best isolation from the host application by creating a worker thread and run most of your code in the context of this thread. Okay, I think I got the structure which seems correct. As I need several sockets for several purposes, I can't use socket's message loop (I don't want to cr

Re: [twsocket] Creatively annoying a host

2011-07-07 Thread Francois PIETTE
>I could leave the connection open without sending a response? You may delay it for, say, 5 sec. But then I guess the vulnerability to DDOS increases (thousands of connections simultaneously). I'm not sure how much of them is possible. Well, this is possible, depending on how their are organiz

Re: [twsocket] Suggestion: set FLastError on session connect/disconnect

2011-07-07 Thread Francois PIETTE
2Arno: No problem to use async in a DLL, have a look at OverbyteIcsDll1 demo, it shows a multi-thread capable implementation. If you don't need MT have a look at the console demos, those with "con" in name, the same princple works in a DLL as well. Thanks! I digged into OverbyteIcsDll1 demo and g

Re: [twsocket] Suggestion: set FLastError on session connect/disconnect

2011-07-07 Thread Francois PIETTE
I now trying to implement sync socket actions (I'll need to make DLL so async model doesn't fit). procedure TSockClient.Request; begin if State <> wsConnected then begin Connect; while not (State in [wsConnected, wsClosed]) do MessagePump; if State <> wsConnected then begin

[twsocket] [OT]Delphi Belgian User Group

2011-07-02 Thread Francois PIETTE
Hello, I have created a LinkedIn group for belgian Delphi users. I mean either belgian citizens, or peoples working in Belgium. The link is: http://www.linkedin.com/groups?home=&gid=398 Regards, -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The au

Re: [twsocket] Memory leak in ICS Client socket

2011-07-01 Thread Francois PIETTE
I am using TSSLWSocket and I would like to know why I get memory leak error while using the following at the “OnFormCreate”, RecStream := TMemoryStream.Create; Any ideas about what am I doin wrong? At first, this is not related to ICS: If you create a memory stream or any other object, then

Re: [twsocket] Latest supported SSL version

2011-06-22 Thread Francois PIETTE
can someone please inform, what are the latest supported SSL packages and DLL files? Where can I get them? http://wiki.overbyte.be/wiki/index.php/ICS_Download -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Su

Re: [twsocket] HttpServer and password...

2011-06-15 Thread Francois PIETTE
Empty password should be usable indeed. -- francois.pie...@overbyte.be http://www.overbyte.be - Original Message - From: "Arno Garrels" To: "ICS support mailing" Sent: Wednesday, June 15, 2011 6:56 PM Subject: Re: [twsocket] HttpServer and password... Franc

Re: [twsocket] Wiki article writing incentive idea

2011-06-15 Thread Francois PIETTE
Francois, what do you think? I think I will not have more than 2 peoples creating something. Not worth the effort. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be -- To un

Re: [twsocket] HttpServer and password...

2011-06-15 Thread Francois PIETTE
I was finally able to get back to the password failing when it is empty. (which is OK) The lines in the source code that prevent the '' password appear to be: unit OverbyteIcsHttpSrv; function THttpConnection.AuthDigestCheckPassword(const Password: String): Boolean; ... if Password = '' the

Re: [twsocket] SSL server and CLient cert.

2011-06-15 Thread Francois PIETTE
Anything that works for Apache would work since they use OpenSSL as well. Thanks for the response :) I am so sorry :(, forgot to tell... I am not using SSL for web communication, I am using the SSLServer and SSLClient for client to host connection. I believe this has got nothing to do with Apa

Re: [twsocket] FTPClient Localfilename

2011-06-11 Thread Francois PIETTE
How I can download a file in memory instead on disk using the command GET ? Use a TMemoryStream instance and assign it to LocalStream property -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http:/

Re: [twsocket] IPv6 support ?

2011-06-08 Thread Francois PIETTE
On this subject, does ICS team plans to release official support for IPv6? Arno already done most of the work, so yes it is intended to release it someday. We need testers and you are welcome to participate. As you probably know, Embarcadero is preparing the next release. ICS must be ready a

Re: [twsocket] HttpServer and password...

2011-06-05 Thread Francois PIETTE
The password field is blank in OnAuthGetPassword. I do not change the 'Password'. It is #0. You should probably change Password to the empty string. #0 is /not/ the empty string. This has been designed so that you can use an empty password which is different than not changing Password var param

Re: [twsocket] HttpServer and password...

2011-06-05 Thread Francois PIETTE
The password field is blank in OnAuthGetPassword. I do not change the 'Password'. It is #0. You should probably change Password to the empty string. #0 is /not/ the empty string. This has been designed so that you can use an empty password which is different than not changing Password var para

Re: [twsocket] Socket troubleshooting...

2011-06-02 Thread Francois PIETTE
My ICS client socket application crashed when the host (not ICS based) failed. MadExcept captured the following. If this is meaningful to someone, I'd be interested in any observations/suggestions. exception message : The application seems to be frozen. MadExcept tries to detect that an appl

Re: [twsocket] TMultipartHttpDownloader and TMultiProgressBar

2011-05-31 Thread Francois PIETTE
Please tell me, can I set a password and a user-name for Proxy in TMultipartHttpDownloader? Can I remove blinks of TMultiProgressBar when it works? And can I change a color of a bar (not background) of TMultiProgressBar? I wrote the component and demo long time ago. I don't remember the details

Re: [twsocket] download several files sequentially

2011-05-30 Thread Francois PIETTE
"If you want to download several files sequentially, just build a list of files and use one component to download each file after the each other." Question: how can I perform this? I am trying to make a list and download a next file working with a "RequestDone" event. But I have an error (EAc

Re: [twsocket] download 2 and more files at once usingTMultiPartHTTPDownloader

2011-05-28 Thread Francois PIETTE
How can download couple files at once using TMultiPartHTTPDownloader ? I can add only one file into MultiPartHTTPDownloader to download, what about more files than one? Can I create a list of files to download? TMultiPartHTTPDownloader is a component aimed at downloading a single file but using

Re: [twsocket] Computer's name

2011-05-24 Thread Francois PIETTE
I don't know how to make sure there won't be any other machines in between, I mean to make sure both data belongs to the same computer. My question is, How can I set both messages comes in the same time like one whole message or combine them by the server as one message? Is there any ways of d

Re: [twsocket] File Sharing

2011-05-17 Thread Francois PIETTE
Hi , i want to develop a File Sharing Between Server and Client on LAN and Internet ; that means the Client can download a File if he is in the same LAN or even from INTERNET from different network . OK Sir Francois , on a LAN i did it like this : i created a server based on TCP Server it h

Re: [twsocket] File Sharing

2011-05-16 Thread Francois PIETTE
Hi , i want to develop a File Sharing Between Server and Client on LAN and Internet ; that means the Client can download a File if he is in the same LAN or even from INTERNET from different network . i've been told to establish a middle MAN using TCP so that all Clients can use it as a Bridge to

Re: [twsocket] Questions on HtmlSmtpClient and SslSmtpClient

2011-05-14 Thread Francois PIETTE
Currently I'm using HtmlSmtpClient and planing update to SslSmtClient. and get next questions to migrate current code to ssl. 1- with html client can be sent mail at once in html with embedded images and plain text. this can be done with ssl client? 2- if with ssl client only can be send as html

Re: [twsocket] Possible CliId duplication

2011-05-13 Thread Francois PIETTE
"if FClientNum >= $7F then" currently it wraps around after 8,388,607 That is probably my bug, missed an F. Should probably be MAXINT to avoid any issue with integer size change. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the

Re: [twsocket] Possible CliId duplication

2011-05-13 Thread Francois PIETTE
>It is only guaranteed that _connected clients never share the same CliId. I couldn't see _where_ it is guaranteed... It's quite possible to have 1st client with ID 1 connected for a long, long time while others connect and disconnect very frequently (i.e. large proxy and a client downloading hu

Re: [twsocket] TFtpCli and FTP server in passive mode

2011-05-12 Thread Francois PIETTE
he freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: "Fabrice Vendé" To: "ICS support mailing" ; "Technique INFOCOB" Sent: Thursday, May 12, 2011 6:26 PM Subject: Re: [twsocket] TFtpCli and FTP server in passive mo

Re: [twsocket] TFtpCli and FTP server in passive mode

2011-05-12 Thread Francois PIETTE
I can send you login and password to test on a private mail if you want. OK ! Is this occuring with all FTP servers ? And as I said before, does it occur with ICS demo ? Send me your source code (Complete project but minimal source code to reproduce the issue), I'll compile and try it and wil

Re: [twsocket] TFtpCli and FTP server in passive mode

2011-05-12 Thread Francois PIETTE
When are you doing the "PUT"? In that routine after the "CWD" Yes in the routine after the "CWD" like I do on FTP server which allows active mode. I don't use Event "TftpClient.OnRequestDone". Must I wait for something ? No because you are using the synchronous version of the functions. Usuall

Re: [twsocket] TFtpCli and FTP server in passive mode

2011-05-12 Thread Francois PIETTE
I have tested your code and it works perfectly from here. Here is the log using YOUR code and ICS-V7 updated form SVN repository right now: I have downloaded and installed the last update (http://wiki.overbyte.be/arch/icsv7w.zip) on my Delphi 2010. And I have exactly the same problem. TftpCli

Re: [twsocket] TFtpCli and FTP server in passive mode

2011-05-12 Thread Francois PIETTE
I have tested your code and it works perfectly from here. Here is the log using YOUR code and ICS-V7 updated form SVN repository right now: < 220-FileZilla Server version 0.9.24 beta < 220 Micro$oft free USER fpiette < 331 Password required for fpiette PASS *** < 230 Logged on CWD

Re: [twsocket] Computer's name

2011-05-11 Thread Francois PIETTE
" Your second message comes later and is available from the OnDataAvailable event handler at server side." Is it possible to send this at the same time as it connects? No. The client can only send data when the TCP session is established and your first message is generated at server side form

Re: [twsocket] Computer's name

2011-05-11 Thread Francois PIETTE
First, Server gives info of connected client with it's ip and the ID, the ID is very important for me because I need to use it for sending commands to the client. Second, Client sends a message where it tells it's name etc. when it is connected. I push client to send message to the server wit

Re: [twsocket] Computer's name

2011-05-11 Thread Francois PIETTE
I hope I have explained okay. I do not grasp your complete architecture. Which programs are you writing ? A server, a client, both ? What is the ID you are talking about ? Which protocol are you using ? You own ? -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware Mi

Re: [twsocket] EmulVT bugs...

2011-05-10 Thread Francois PIETTE
Hello Alistair, If you are going to fix the bugs you've found, please be absolutely sure to start with the latest version of the entire ICS. For that, download it from the SVN repository. See instructions there: http://wiki.overbyte.be/wiki/index.php/ICS_Download Once fixed, email me the comp

Re: [twsocket] Computer's name

2011-05-10 Thread Francois PIETTE
We can get some remote info of the connected client from the following code but, are there any possibilities of getting the computername as well? Are you asking about Windows networking "computername" ? This is completly independent of the TCP/IP protocol. It may even be different that the DNS

Re: [twsocket] Very Strange PHP Proxying Issue

2011-05-03 Thread Francois PIETTE
Is there any way to set a default value to a parameter in Delphi? In C++ it's like (in .h or .hpp header file) void function(int param = value); so the function can now be called as function() without the requirement of expicit param specification. Same in Delphi. -- francois.pie...@overbyte.b

Re: [twsocket] Connected when not connected

2011-05-03 Thread Francois PIETTE
So how should I handle connection errors in a way that makes user aware of error AND not cause any kind of disaster? Catch the error code in OnSessionConnected Yes, indeed. and (using some kind of PostMessage) display actual error message outside OnSessionConnected? If you like it so, no pro

Re: [twsocket] Connected when not connected

2011-05-03 Thread Francois PIETTE
This is how winsock works. OnSessionConnected is fired with an error, after it OnSessionClosed is fired with or without an error. So having TWSocket's state different from actual state should be considered normal? If so, then I understand that checking for component state is NOT enough to chec

Re: [twsocket] Bomb

2011-04-29 Thread Francois PIETTE
OK. -- francois.pie...@overbyte.be http://www.overbyte.be - Original Message - From: "Arno Garrels" To: "ICS support mailing" Sent: Friday, April 29, 2011 7:53 PM Subject: Re: [twsocket] Bomb Anton S. wrote: Actually it could be replaced by {$MESSAGE FATAL 'Wrong defines'} Agre

Re: [twsocket] Bomb

2011-04-28 Thread Francois PIETTE
Hi Francois, I understand it now. I didn't get the idea in the first place :( I tought it should be somehow different and need to be placed in the code.. When a symbol impact a lot of units, it is more convenient to set it at the project level so that it is really global. This is specially req

Re: [twsocket] Bomb

2011-04-28 Thread Francois PIETTE
You have to define use_ssl on your project option and rebuild all. How do I do this exactly? I am not sure if understand what i need to do. Delphi menu / Project / Options / Delphi Compiler / Conditional Definitions (May vary according to Delphi version) then add USE_SSL after the existing

Re: [twsocket] Bomb

2011-04-27 Thread Francois Piette
-Original Message- From: Francois PIETTE Sent: Thursday, April 28, 2011 8:45 AM To: ICS support mailing Subject: Re: [twsocket] Bomb > Could someone please explain, > what this means? > > The code in the unit where such line is included is intended to be compiled using the US

Re: [twsocket] Bomb

2011-04-27 Thread Francois PIETTE
Could someone please explain, what this means? The code in the unit where such line is included is intended to be compiled using the USE_SSL symbol defined at the project level. The line is there to trigger a compilation error should the user forgot to define the symbol. -- francois.pie...

Re: [twsocket] XML RPC

2011-04-21 Thread Francois PIETTE
It's unfortunately an existing API I need to interface with. No problem. As usual with XML, be prepare to have CPU and memory hungry piece of code. The encoding is Base64, so I'll need to find a delphi lib to get it back to regular XML. ICS has the functions to encode and decode base64.

Re: [twsocket] XML RPC

2011-04-21 Thread Francois PIETTE
Just a quick question. I need to interface to a XML RPC API, but I havent got the foggiest were to start. Could the ICS possibly assist? XML RPC is a remote procedure call (RPC) protocol which uses XML to encode its calls and HTTP as a transport mechanism. "XML-RPC" also refers generically to

Re: [twsocket] socket lossing traffic after 2/3 days

2011-04-19 Thread Francois PIETTE
Am running a chat system using tcp for data transfer but I have a problem am unable to fix and was wondering if anyone else had this issue. basically when using my app for more then 3 days it would cash but not a full socket crash were it would boot people it would just stop accepting new inco

Re: [twsocket] UDP receive issue from a Windows service

2011-04-19 Thread Francois PIETTE
While testing, I also had during some time FD_READ triggered but ReceiveFrom returning -1. Isn't that quite common, if those are WSAEWOULDBLOCK errors? As far as I know, not so much. I saw is returning -1 during 4 seconds which is the timeout time in my appication. -- francois.pie...@overby

Re: [twsocket] UDP receive issue from a Windows service

2011-04-19 Thread Francois PIETTE
GDisplayProc is assigned a routine which output the message to the console window and to the log file and which is used all over the application. Guess what ? It works ! This is not satisfying since the log file is full of unwanted messages and this probably only hides the real problem. Does th

Re: [twsocket] UDP receive issue from a Windows service

2011-04-18 Thread Francois PIETTE
Actually the service is a dual mode service/app console and it works perfectly well as a console application (and also as a service when a debugger is attached). I do not understand the 'dual mode' but could that be a reason? A dual mode service is an application which detect if it run as a s

Re: [twsocket] UDP receive issue from a Windows service

2011-04-18 Thread Francois PIETTE
Seriously, what happens if you run the console application as a service with my NT Wrapper http://www.duodata.de/ntwrapper/? It will surely not work because my code for dual mode will be fooled, thinking it is a service application while it is not. If that works I guess the problem can be fo

  1   2   3   4   5   6   7   8   9   10   >