Re: [twsocket] RES: Shared handles problem

2013-05-18 Thread François Piette
If you find something, please let us know! By the way, the mechanism is in use for year. If there is a flaw, it could only be in a special corner case otherwise we already fixed it. -- francois.pie...@overbyte.be Embarcadero MVP http://www.overbyte.be http://francois-piette.blogspot.com

Re: [twsocket] Close connection (destroy) idle clients

2013-04-30 Thread François Piette
by François Piette. V3.00 TWSocket (c) 1996-2012 Francois Piette V7.87 TWSocketServer (c) 1999-2011 F. Piette V7.04 Waiting for clients ... Client connected. Remote: 192.168.25.93/4634 Location: 192.168.25.66/5760ThrdID: $ 4,532 ThrdCnt: # 1 There is now 1 clients connected. Received from

Re: [twsocket] Close connection (destroy) idle clients

2013-04-30 Thread François Piette
WSocket only with WSocketServer WSocketThrdServer and that this problem occurs, it takes is a message exchange (string) between client and server with multiple clients connected simultaneously, the problem with the component WSocket that is working is that if a customer taking disconnect

Re: [twsocket] Close connection (destroy) idle clients

2013-04-30 Thread François Piette
How to implement the time of the last action on the event and then check OnDataAvailable? Assuming you use ThrdSrv: Add a filed in the class TThrdSrvClient which is instanciated for each client connecting. Update this filed for datetime of the last message sent by the client, probably from the

Re: [twsocket] Close connection (destroy) idle clients

2013-04-30 Thread François Piette
I'm doing based on the example MtSrv, would be the best for my case? Have you looked at the comments in front of MtSrv sample ? Here is is: MtSrv is an old sample program It works OK, but you should use ThrdSrv project I will

Re: [twsocket] MagFtp and SslContext

2013-04-17 Thread François Piette
My application is a LAN backup application and users want to use FTP to additionally secure their data. SSL certificates are used to make sure the client connect to the server it thinks it connect and that the server is sure about who is the client. Encryption of data take place even if there

Re: [twsocket] i using the THttpAppSrv in my app

2013-04-17 Thread François Piette
('/*.asp',tasp_proc); can be?? that is why i will use the Tsrv_myapp.mywebGetDocument proc. because it can be hold everything. btw,.AddGetHandler is a thread work mode?? myiisvif From: François Piette Date: 2013-04-17 02:25 To: 'ICS support mailing' Subject: Re: [twsocket] i using

Re: [twsocket] i using the THttpAppSrv in my app

2013-04-16 Thread François Piette
i found if i call the wmi ole object to get wmi data,THttpAppSrv will hung and lose the 80 connection. procedure Tsrv_myapp.mywebGetDocument(Sender, Client: TObject; var Flags: THttpGetFlag); the call the wmi object... for just two or three times. why? bug? I'm not sure I

Re: [twsocket] TWSocket and data packet length

2013-02-21 Thread François Piette
Can the network topology (different switches or hub) give different results about this ? Yes, it can. Jumbo frames must be supported end-to-end. Each device has to support it and be configured for it. -- francois.pie...@overbyte.be Embarcadero MVP http://www.overbyte.be

Re: [twsocket] TWSocket and data packet length

2013-02-20 Thread François Piette
I need to send a data packet in one chunck. Today the datas are splitted in two chunks, one of 1500 (the MTU limit) and another one for the rest. I'm not able to go over this 1500 limit. I know it's possible because I have another program how does it like this What you ask is to use Jumbo Frames

Re: [twsocket] Resend: TSslSmtpCli...

2013-01-25 Thread François Piette
I have seen TSslSmtpCli mentioned a couple of places but very little data. Does such a thing exist? Is it part of the ICS-SSL suite? Sure it exists. Starting from ICS-V7, ICS-SSL is included in the sntadard distribution. There is no separate source code. For example TSslSmtpCli is included in

Re: [twsocket] Client[Index]

2013-01-19 Thread François Piette
How can I get the Client Index when the client connected ... Suppose we have 10 client have already connected ... and then 1 client disconnected ... when the other client connected which index will get for that new client ... ? Please explain why you need the client index ? I ask because

Re: [twsocket] Wait for

2013-01-12 Thread François Piette
Using HTTPCLI AsyncGET how main thread wait for the Async to download the html code. Code relies on input html code. If i sleep the main ui thread it will become frozen. I know how to get HTML with Async via Events but i have no idea how program it so that Main UI thread will wait and

Re: [twsocket] Wait for

2013-01-12 Thread François Piette
Using HTTPCLI AsyncGET how main thread wait for the Async to download the html code. Code relies on input html code. If i sleep the main ui thread it will become frozen. I know how to get HTML with Async via Events but i have no idea how program it so that Main UI thread will wait and then

[twsocket] Original way of iterating thru all the bits in an integer

2013-01-05 Thread François Piette
Hi ! I wrote an article about an original way of iterating thru all the bits of an integer. This is the kind of fancy code one could write using recent version of Delphi. I would like to apply this kind of code in ICS, but if I do, it won’t work anymore with the old D7. The final code

Re: [twsocket] Original way of iterating thru all the bits in an integer

2013-01-05 Thread François Piette
I was just wondering, what would be a practical application of this routine? As you probably don't know, I'm doing a lot of process control with Delphi. And I frequently have to process bit collections. wouldn't it be more efficient to just shift the value to the left directly without the

Re: [twsocket] Changing port on ThtmlSmtpCli

2013-01-04 Thread François Piette
for quite a few years I have been using an application I wrote using the THtmlSmtpCli component using the default port 'smtp'. The problem I am encountering now is that my internet provider has decided to block port 25 in order to avoid spam. My provider (Belgacom) is doing the same, but is

[twsocket] Writing a TIntegerList property with his property editor and enumerator

2012-12-30 Thread François Piette
Hi ! This subject could be considered out of topic here although it might be applied to ICS as well. I have not applied such coding to ICS because currently ICS has to support old Delphi compilers which lacks the required syntax. I wrote a blog article about writing a class to implement a

Re: [twsocket] MessageLoop in a Thread

2012-12-18 Thread François Piette
How can i use MessageLoop with HTTPCLI SSL in a Thread? I use this now which does do the request but returns nothing.. repeat Sleep(1000) HTTPCliSSL.MessagePump; until FRequestCompleted; You should rewrite your code using pure asynchronous operation.

Re: [twsocket] IcsWndControl

2012-12-14 Thread François Piette
First of all, I would like to congratulate the ICS team for the wonderful job in creating a way to share windows handles for processing messages. I´m now extensively using this mechanism in all our application. Thanks ! One question though, why is the default limit of 100 messages

Re: [twsocket] Check Proxy with ICS

2012-12-12 Thread François Piette
How can this be done? For example checking 100 proxy's at the same time like with PHP curl_multi. Are there any open source projects based on ICS avaliable so I can have a look :) There are a lot of samples included with ICS right in the distribution. Did you had a look at it ? Hint: Look at

Re: [twsocket] Built with/Powered by logos

2012-12-08 Thread François Piette
Hi ! You should use the Powered by ICS logo: http://www.overbyte.be/graphix/logos/powered_by_ics.gif Make it a link to my website. Thanks. Francois -Message d'origine- De : twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] De la part de Raymond Kennington Envoyé :

Re: [twsocket] DTD problem in THttpCli POST

2012-12-04 Thread François Piette
I've tried to extract the code from my component package and it has been well executed (the same code executed in the project). What's the problem in your opinion ? You have changed something else. Having a component out of a package doesn't change his working. The same code is executed. So

Re: [twsocket] DTD problem in THttpCli POST

2012-12-03 Thread François Piette
I use a THttpCli to communicate with a XML-RPC server. I have a problem when POST command is called. The webserver respond the error below : DTD interdite. Ligne: 1 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML However as you can see I don't specify any DTD in THttpCli initialization : The problem

Re: [twsocket] Support for PHP and CGI

2012-12-02 Thread François Piette
I have to write a local webserver, which demonstrates to users the effect of their html and php scripts (i.e. something like a desktop content management system). I'm using Delphi XE2 and Windows 7. Is it possible to integrate CGI/PHP in any of the ICS components? Is there a demo for this

Re: [twsocket] FTP Client - Large files

2012-11-24 Thread François Piette
As I said in a previous e-mail. I am testing with 3 FTP sites. It appear only one of them has this problem. This probably means the problem is at the server side. Please try with another FTP client, for example windows own command line FTP client. Use the same file and do that from the same

Re: [twsocket] problem to install old ICS version

2012-11-17 Thread François Piette
This is my problem : I have just been given an old Delphi 4 application, which needs to be modified. This program was written using ICS components ten years ago. I have a Delphi 4, and also the components as they existed when the progran was created. So I should be able to open then program,

Re: [twsocket] ICS FTP Client Strange Effect

2012-11-14 Thread François Piette
I vote for Binary as the default mode. Unfortunately, the standard says text mode has to be the default. -- francois.pie...@overbyte.be Embarcadero MVP http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] ICS WebServer Demo

2012-11-14 Thread François Piette
The problem was that the World Wide Web Publishing Services was running. You should have got the error 10048 Socket already in use. You reported error 10013. Strange. -- francois.pie...@overbyte.be Embarcadero MVP http://www.overbyte.be -- To unsubscribe or change your settings for

Re: [twsocket] ICS WebServer Demo

2012-11-13 Thread François Piette
Just started to look at the Web Server demo. When I run it I get 10013 Bind error. Any clues as to how to proceed? Error 10013 mean you have no access to some file. Check the OS files hosts, protocol and services (no extension) which shoud be in C:\Windows\System32\drivers\etc Some virus

Re: [twsocket] HTML...HttpClient...

2012-10-27 Thread François Piette
This code: HTML It looks like you posted in the wrong place ! This code is not related to ICS use. -- 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

Re: [twsocket] TWsocket and EStackOverflow

2012-10-25 Thread François Piette
I already try, after reading the Wiki, the Shutdown(1) procedure, anyway, the result is the same. I try close, shutdown, abort ... etc. Make a stripped down version of your application and mail it to me. Be sure to include a complete project with only the code required to reproduce the error.

Re: [twsocket] Plans for ICS and iOS?

2012-10-25 Thread François Piette
I would take a look as lazarus 1.x could handle ICS no problem. You are welcome to try ICS with lazarus and make the changes required to support Lazarus. If you do, please be sure to start with ICS-V8, the latest version and take the source code directly out of the SVN repository. --

Re: [twsocket] TWsocket and EStackOverflow

2012-10-24 Thread François Piette
.TCPClientSessionConnected(Sender: TObject; ErrCode: Word); begin logIt('SessionConnected: Error='+IntToStr(ErrCode)); dvLed1.LedOn := True; end; LeNif From: François Piette Date: 2012-10-23 18:39 To: 'ICS support mailing' Subject: Re: [twsocket] TWsocket and EStackOverflow Hello, thanks but I

Re: [twsocket] TWsocket and EStackOverflow

2012-10-24 Thread François Piette
, even after the close that's really strange ... Maybe the problem is with the device and not with my socket ... thanks LeNif From: François Piette Date: 2012-10-24 20:14 To: 'ICS support mailing' Subject: Re: [twsocket] TWsocket and EStackOverflow I don't see anything obviously wrong

Re: [twsocket] TWsocket and EStackOverflow

2012-10-23 Thread François Piette
Hello, thanks but I already wait for OnsessionClosed befor restarting. Wait ? Does this means you don't use the events ? I post a capture with log info here ... http://imageshack.us/photo/my-images/844/screenshot47a.png/ Not very interesting... If you have a stack overflow, you probably

Re: [twsocket] Ftp component not ready

2012-10-21 Thread François Piette
I'm running into a Ftp component not ready error. What is the proper way to check for the component being ready in c++? Use the OnRequestDone event. -- francois.pie...@overbyte.be Embarcadero MVP http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list

Re: [twsocket] TWSocket Digest, Vol 495, Issue 3

2012-10-21 Thread François Piette
I can get the attachment file on the IPhone, but as a side effect I get all embedded images as attachments too at the bootom of the message. Are you able to send such as message using a mail client such as Outlook ? If yes, just have a look at how that message is formatted and change the

Re: [twsocket] ICS support for RAD Studio XE3

2012-09-08 Thread François Piette
Support for Delphi and C++ Builder XE3 is now available in ICS V8 beta available from: http://wiki.overbyte.be/wiki/index.php/ICS_Download ICS V8 includes support for IPv6 and the FireMonkey FMX framework for Windows and Mac OS X. I would like to thanks Angus Robertson and Arno Garrels for

[twsocket] TR: CreateWindowEx failed error in TWSocket

2012-08-17 Thread François Piette
-Message d'origine- De : François Piette [mailto:francois.pie...@overbyte.be] Envoyé : vendredi 17 août 2012 21:32 À : 'dushy...@intellectsoftwares.com' Objet : RE: CreateWindowEx failed error in TWSocket By default, Windows is limited to 1 window handles globally. You probably hit

Re: [twsocket] hello, all, problems of THttpCli in thread

2012-08-13 Thread François Piette
It seems that I faced a problem of THttpCli component used in thread. You must create the component from the execute method, not the constructor and your thread MUST have a message pump. I suggest you start with one of the multithreaded samples delivered with ICS. --

Re: [twsocket] Wiki issue

2012-08-01 Thread François Piette
Those are created automaticaly by some malware in the hope of modifying pages but since Overbyte wiki requires permission, nothing bad ever occured. Thanks for worrying. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet

Re: [twsocket] Wiki issue

2012-08-01 Thread François Piette
I searched the web with no luck to find a SQL statement to delete fake user from the database. If anyone has some resource to share... The difficulty is to delete only fake user and not the real users and without compromising database [referential] integrity. -- francois.pie...@overbyte.be The

Re: [twsocket] Ipv6

2012-06-05 Thread François Piette
what is the status of IPv6 with ICS ? Already working, thanks to Arno ! See SVN repository branch icsipv6. -- 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

Re: [twsocket] Request for making TCustomSslWSocket::AssignDefaultValues public

2012-05-22 Thread François Piette
We need to call this function from return-to-client-object-pool routine to make HSocket = -1. I cannot use inheritence as this is for THttpCli::CtrlSocket and I cannot override the CtrlSocket without re-writing the THttpCli unit from scratch. Maybe I misunderstood... You can use inheritance

Re: [twsocket] Bug with ICS and PING?

2012-05-07 Thread François Piette
ping indicates a success, and the ErrorCode also indicates no errors. The success means the ICMP request packet has been sent. -- François Piette -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our

Re: [twsocket] A small issue with socket reconnection [HELP]

2012-05-01 Thread François Piette
I have a simple chat system were users can re-login and change there usernames however ever seen i updated my delphi to xe 2 update 4 my relogin feature has stopped working. after debugging the code I am lost to find out as to why as there seams to be no problems with my code username is

Re: [twsocket] how to reject same ip once already connected?

2012-04-14 Thread François Piette
I been trying to make my server reject ip’s that are already connected to system for i := 0 to (SocketServer.ClientCount -1) do begin if (SocketServer.Client[i].GetPeerAddr = rSocket.GetPeerAddr) AND (SocketServer.Client[i].Handle rSocket.Handle) then begin // send message to client

Re: [twsocket] How to install Firemonkey beta pack for XE2

2012-04-09 Thread François Piette
Are there any special steps to follow for installing the beta ICS package (from svn) for Firemonkey? Tried to install it separately, and it gives an error The procedure entry point @Overbyteicslibrary@initialization$qqrv could not be located in the dynamic link library OverbyteIcsDXe2Run.bpl

Re: [twsocket] WiFi Access List?

2012-03-31 Thread François Piette
Do anyone know of a quick way to grab just visible SSID's AFAIK this is out of ICS scope. You should probably ask this in the general Delphi mailing list (del...@elists.org which as you can see is served by the same mailing list server). And while I'm at it It is better to state your opinion

[twsocket] Should next ICS version support anything before Delphi XE ?

2012-03-28 Thread François Piette
Hi ! I’m planning the next ICS version… Being unable to use any features added to Delphi in the last 10 years is very restricted. Maybe we need to cease support for old Delphi versions ? Of course ICS V5 and V7 will remains available however, the only changes will be bug fixes. What do

Re: [twsocket] Wiki hacked?

2012-03-25 Thread François Piette
OK, I searched (briefly) for some mal content via FTP with no success. Good news ! Just wonder why those get logged when you have to send a request to Francois first in order to get an account? Actually, anyone can create an account, but this account is read only. So maybe some robot

Re: [twsocket] Which version of ICS should I use for Delphi XE2andFiremonkey on windows

2012-03-16 Thread François Piette
Would the FireMonkey beta be the next “stable release” of ICS ? I hope so, at least that is my plan, don't know what the rest of the team thinks? +1 -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite

Re: [twsocket] HttpCli, state Ready ?

2012-03-06 Thread François Piette
Can I use the property Http.State=Ready for consider that the http component is fully available and its last download is finished? No. use the events. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite

Re: [twsocket] Design principles of WebSockets server for ICS

2012-03-05 Thread François Piette
By the way, I don't really understand the real world use case for such WebSockets in the context of a IC/Delphi/WebServer application. Unless you have to support and existing client application, it is IMO not very interesting. Maybe I'm wrong. The websockets supersede the old AJAX approach

Re: [twsocket] Design principles of WebSockets server for ICS

2012-03-04 Thread François Piette
Hello Stan, As I understand, you are trying to - or you already have - implement RFC6455, server side (http://tools.ietf.org/rfc/rfc6455.txt). Is that correct ? There are several ways to implement that using ICS. I don't know the best one since I have not read RFC6455 in details. Candidates are

Re: [twsocket] tcp hole punching

2012-03-03 Thread François Piette
Probably Universal Plug and Play (UPnP)is what you are looking for. How reliable is that ? What do you mean ? Are you asking if it works ? The answer is yes. Are you asking it is always available ? The answer is no. It is disabled on firewalls or routers where security is really controlled.

Re: [twsocket] tcp hole punching

2012-03-03 Thread François Piette
Do you know how TCP hole punching works ? http://www.brynosaurus.com/pub/net/p2pnat/ -- 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

Re: [twsocket] tcp hole punching

2012-03-02 Thread François Piette
Now I need to establisch a P2P connection that can pass firewalls. Does anyone knows how it should be done ? Could you more explicit about the situation ? Where is the server, where is the client(s), where is the firewall ? Is each client also a server or do they work thru an intermediate server

Re: [twsocket] tcp hole punching

2012-03-02 Thread François Piette
Now I need to establisch a P2P connection that can pass firewalls. Does anyone knows how it should be done ? Could you more explicit about the situation ? I thougth that the whole idea of hole punching is a way to let NAT and firewalls thinck that there is no server that a gateway is needed

Re: [twsocket] best way for packet routing

2012-02-28 Thread François Piette
Do you think that routing cicle is ok? There is a better way to do that? Can you give any advice about that? How do you solve the issue which can happen if a client is not receiving data fast enough ? The sending socket will buffer data (It is asynchronous on send as well) and all memory could

Re: [twsocket] OFF: string issues while porting WebSockets server to BDS 2010

2012-02-28 Thread François Piette
Be sure to use latest ICS which has been ported to unicode enabled Delphi versions such as D2010. -- 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

Re: [twsocket] best way for packet routing

2012-02-27 Thread François Piette
For this I configured each client to send about 1000 packets per second of 4 bytes (about 32Kbps). Your bps computation is wrong. You send 4 data bytes, the actual packets on the network are much larger (something like 10 times) ! Have a lokk there: http://sd.wareonearth.com/~phil/net/overhead/

Re: [twsocket] Download manager

2012-02-25 Thread François Piette
I am working on a download manager, and using the HTTPMultipartdownloader component. For now I have 5 different HTTPMultipartdownloader components on my form, but I think I should be able to do it with only 1. like HTTPMultipartdownloader[xx] ? It depends on the requirements for your

Re: [twsocket] TsmtpCli with SSL

2012-02-21 Thread François Piette
Does the TSmtpCli support ports other than 25? No, only TSslSmtpCli supports SSL/TLS. Including SSL/TLS connections or method/command STARTTLS on any port number you want. Just to clarify Arno's answer: If you need to send Emails with SMTP over SSL/TLS link, you need the SSL enabled version

Re: [twsocket] how to stream images via client and server socket?

2012-02-16 Thread François Piette
Am looking for way to stream image data with client /server sockets so that i can broadcast same image to all connected clients as anyone got a working demo or can help me with this ? There is an old pair of demos in ICS: a client and a server for a basic chat system. Of course this demo is

Re: [twsocket] Problems with TWSocket and Skype

2012-02-06 Thread François Piette
It is likely that your problem comes from the different programming paradigm between the two libraries. ICS is non-blocking (asynchronous) while the other is blocking. It is possible that you don't follow the rules for asynchronous programming and get problems... There are two very important

Re: [twsocket] udp server and network configuration changes

2012-02-03 Thread François Piette
There is a way to recognize networks changes like these? Have a look at IP Helper API: http://msdn.microsoft.com/en-us/library/aa366329(VS.85).aspx -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS)

Re: [twsocket] Package problems

2012-02-03 Thread François Piette
OK, have it working now. And the problem was It is always better to report the solution you found for a problem you talked in the list. This way, the next guy searching for the same problem will also find the solution ! Thanks. -- francois.pie...@overbyte.be The author of the freeware

Re: [twsocket] Reading e-mail

2012-01-31 Thread François Piette
We summarize. I have to read e-mail. I read the first post and everything is ok (they are executed properly onheaderend events, onmessageend, ... Step to read any other message (which exists) is not getting any error message but still displays the information of the first message and events

Re: [twsocket] SITE EXEC issue

2012-01-30 Thread François Piette
I have a client ftp component written using ICS and a server component also using ICS - everything was grand up to about 2 weeks ago, when the client ftp was sending a SITE EXEC progname to the server - now that command never even gets received (and therefore never executes). This smells of

Re: [twsocket] Does a call to TWSocket.Send have to be on the same thread as the socket?

2012-01-29 Thread François Piette
If I make a Send call to that socket, does it have to occur on the same thread as the worker thread? Or can I call it's Send method from another thread? I looked at the WSocket.pas code and I didn't see anything that looked like it wasn't thread-safe, Sending data pass thru the internal

Re: [twsocket] TSslHTTPCli: POST with XML data to get RESOURCE on REST

2012-01-29 Thread François Piette
HERE IS A LINK FOR API http://www.kgnsoft-in.com/oauth/api0001.gif SCREENSHOT FOR THE POST METHOD Please provide the link to the API you are trying to implement. Just that part is not enough. Have you seen this : http://tools.ietf.org/html/draft-ietf-oauth-v2-23 and this :

Re: [twsocket] Digest authentication via THttpCli?

2012-01-10 Thread François Piette
Thanks Arno. Well done. -- 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- De : twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] De

Re: [twsocket] Digest authentication via THttpCli?

2012-01-08 Thread François Piette
Maybe a new component options would let the developer select the behaviour ? Or maybe first try with on option and then automatically switch to the other if it fails ? -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet

Re: [twsocket] hello twsocket@elists.org

2012-01-04 Thread François Piette
Can somebody please ban this f.. SPAMer? Done ! -- 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- De : twsocket-boun...@elists.org

Re: [twsocket] Multiple declaration for 'sockaddr'

2011-12-16 Thread François Piette
Just installed BCB XE and with the DVD was the Overbyte package. I have installed it and trying to use it, but get the error: Multiple declaration for 'sockaddr' I know that it is something to do with the winsock file. I have tried to move around with the includes, but no luck. I have also for

Re: [twsocket] Client Server connectivity

2011-12-15 Thread François Piette
How does one handle client/server connectivity in a way that avoids needing to do port forwarding in routers? Ie Something like LogmeIn.com. How do they have it so you log into their server and can contact the client machine even behind a firewall? In those applications, you have a central

Re: [twsocket] Setting additional Header fields depending onthe mimetype in th

2011-12-14 Thread François Piette
The implementation should be delegated to a handling class which could be replaced easily by the developper. It see a mechanism based on metaclass just like ClientClass property use. Or maybe an interface. Technically interfaces are very good. But ICS is class based and introducing

Re: [twsocket] TWSocket in a tread contest without events

2011-12-13 Thread François Piette
Is possible to use TWSocket object without events contest? I want to use a familiar way for me. I like to create a thread for each connection. Not sure I understand your question! Facts: a) you cannot use TWSocket without using events. b) you can use TWSocket in a thread. There are samples

Re: [twsocket] Trouble with ICS v7

2011-12-13 Thread François Piette
I use ICS components in a my application. I have a problem with TWSocket and ServerWSocketDataAvailable. Sometimes, when the ServerWSocketDataAvailable event is called and in action, the same event is called again, before the previous instance is terminated. I use line mode, #13#10 as

Re: [twsocket] Setting additional Header fields depending on the mimetype in th

2011-12-13 Thread François Piette
I'm just about to change to HttpServer MIME handling again, to use a look-up list read from the Windows classes registry or a text file) when the server starts, to replace the current hard coded MIME list. It will be editable by the application. The implementation should be delegated to a