Re: [twsocket] HttpServer and Server-push?
Why don't you announce it on your web site and this list with an announcement? Best Regards, SZ On Sat, Oct 22, 2011 at 17:02, Francois PIETTE francois.pie...@skynet.bewrote: I think we all need SPDY support: http://en.wikipedia.org/wiki/**SPDY 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 implement this just as we did for ICS-SSL? Fastream can donate $600 to it for client and server. OK, let's see how many peoples are willing to contribute for how much money. This is how ICS-SSL has started... -- 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/cgi-**bin/mailman/listinfo/twsockethttp://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- 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] HttpServer and Server-push?
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. This is a works requiring probably a few hundreds of work hours which can be inserted in spare time and as such require a lot of money for peoples like me who earn their living by programming. Remember, most of ICS is a subproduct of my own business. I have not developped ICS for fun or because I didn't know what to do of my time. Instead, I programmed actual real world application requiring TCP/IP protocol support and I was kind enough to share that part of my work. As far as I know, this is the same for other major contributors to ICS. Thanks to them. -- 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/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] HttpServer and Server-push?
I think we all need SPDY support: http://en.wikipedia.org/wiki/SPDY http://www.readwriteweb.com/archives/spdy_google_wants_to_speed_up_the_web.php Best Regards, SZ On Fri, Oct 21, 2011 at 21:18, Angus Robertson - Magenta Systems Ltd an...@magsys.co.uk wrote: I presume there is another way to get to the posted data apart from the method demonstrated in the webserver demo? I have updated the web server demo with a new page delayed.html which is sent after a 10 second delay using a timer, as I previously explained you need to use. This is actually GET, but POST is no different, you just read the passed parameters differently. This is not exactly server push, since there are no formal standards for such a thing, without client side support. But the concept is the same, you just keep the timer repeating to send data regularly. But you can not send a complete HTML page, at least to my knowledge, which is why a real server push example would need client side code to expect updates, or an IFrame or something horrible like that, and I really don't have the time or inclination to do any of that. If you have a specific example of what you are trying to achieve, including actual HTML, we may be able to help further, once you've tried this. The new demo is in SVN now, and the nightly zip will be available after midnight. 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 -- 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] HttpServer and Server-push?
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 Component Suite (ICS) http://www.overbyte.be -- 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] HttpServer and Server-push?
Unfortunately I do not have that much time. Why don't we collect some donation from members for some dedicated coder to implement this just as we did for ICS-SSL? Fastream can donate $600 to it for client and server. Best Regards, SubZero On Sat, Oct 22, 2011 at 14:51, Francois PIETTE francois.pie...@skynet.bewrote: I think we all need SPDY support: http://en.wikipedia.org/wiki/**SPDY 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 Component Suite (ICS) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-**bin/mailman/listinfo/twsockethttp://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- 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] HttpServer and Server-push?
I think we all need SPDY support: http://en.wikipedia.org/wiki/SPDY Interesting. Why don't you start the development ? Except that it not supported by Internet Explorer or official Firefox releases. 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] HttpServer and Server-push?
I hope they -especially MS- won't come up with an alternative standard! Best Regards, SZ On Sat, Oct 22, 2011 at 16:23, Angus Robertson - Magenta Systems Ltd an...@magsys.co.uk wrote: I think we all need SPDY support: http://en.wikipedia.org/wiki/SPDY Interesting. Why don't you start the development ? Except that it not supported by Internet Explorer or official Firefox releases. 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 -- 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] HttpServer and Server-push?
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 implement this just as we did for ICS-SSL? Fastream can donate $600 to it for client and server. OK, let's see how many peoples are willing to contribute for how much money. This is how ICS-SSL has started... -- 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/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] HttpServer and Server-push?
I presume there is another way to get to the posted data apart from the method demonstrated in the webserver demo? I have updated the web server demo with a new page delayed.html which is sent after a 10 second delay using a timer, as I previously explained you need to use. This is actually GET, but POST is no different, you just read the passed parameters differently. This is not exactly server push, since there are no formal standards for such a thing, without client side support. But the concept is the same, you just keep the timer repeating to send data regularly. But you can not send a complete HTML page, at least to my knowledge, which is why a real server push example would need client side code to expect updates, or an IFrame or something horrible like that, and I really don't have the time or inclination to do any of that. If you have a specific example of what you are trying to achieve, including actual HTML, we may be able to help further, once you've tried this. The new demo is in SVN now, and the nightly zip will be available after midnight. 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] HttpServer and Server-push?
Sorry Angus, This is probably where the confusion (for me at least) is. I need to be able to get to the posted data from the incoming request before I can determine what to send back. Setting the flag to hgWillSendMySelf prevents the PostedData event from firing. I presume there is another way to get to the posted data apart from the method demonstrated in the webserver demo? Thanks for being patient! -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Angus Robertson - Magenta Systems Ltd Sent: 19 October 2011 18:38 To: twsocket@elists.org Subject: Re: [twsocket] HttpServer and Server-push? I'm still using the WebServer demo (although much cut down) to try and Add in the changes you suggested. That's fine. i.e. in the PostDocument Flags := hgAcceptData; --- PostedData wont fire unless this is set. ClientCnx.KeepAlive := True; What about the code to send the XML, and the timer I said you needed? 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 -- 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] HttpServer and Server-push?
Setting the flag to hgWillSendMySelf prevents the PostedData event from firing. Yes, that related to GET, you use hgAcceptData for POST. I presume there is another way to get to the posted data apart from the method demonstrated in the webserver demo? Not looked at what the demo does for a long time, but there are numerous 'AnswerXXX' options in the server for returning information, I suggest you start with the simplest which is Answer404 or Answer501, then move on to sending your own answer page. I'll look at updating the web server demo with my delayed response to slow down hackers (using a timer) and repeated updating page, but might not be today. 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] HttpServer and Server-push?
I'm kind of bound to HTTP due to some backward compatibility constraints :( Does anyone have a working example of this I could look at? I'm having problems getting something working or perhaps links to any documentation That would assist. Thanks again, Chris. -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Francois PIETTE Sent: 18 October 2011 17:23 To: ICS support mailing Subject: Re: [twsocket] HttpServer and Server-push? 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 wonder why you need to use HTTP protocol. Why don't you design your own custom protocol tailored to fit your needs ? Of course, your own protocol may use port 80 if it is what is open. -- 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/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- 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] HttpServer and Server-push?
Does anyone have a working example of this I could look at? An example of what, a web server? Or use of a timer? I actually added a timer to my own web server yesterday, to delay sending a 404 error by 30 seconds to any hackers that try and open a PHP page, to slow down their probing. 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] HttpServer and Server-push?
I'm still using the WebServer demo (although much cut down) to try and Add in the changes you suggested. That's fine. i.e. in the PostDocument Flags := hgAcceptData; --- PostedData wont fire unless this is set. ClientCnx.KeepAlive := True; What about the code to send the XML, and the timer I said you needed? 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
[twsocket] HttpServer and Server-push?
Hi everyone, I'm very new to ICS as I've primarily used Indy in the past. I'm currently investigating if I can open a HTTP connection using a THTTPCli to a THTTPServer and keep the connection open until I chose to close it (keep-alive?). 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. I'm having great difficulty getting this to work in Indy so I though I'd ask if this was possible using ICS before I spend a lot of time experimenting! As I've mentioned, I've virtually no experience with ICS at this point, so if you have any examples or suggestions On how to achieve this, I'd be very appreciative. Many thanks, Chris Hedges -- 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] HttpServer and Server-push?
I then need to be able to send HTTP messages (xml documents) back from the server to the client periodically In the GetDocument event, for your specific path/URL you need to set: Flags := hgWillSendMySelf; RemoteClient.KeepAlive = TRUE; so the server does nothing more but leaves the connection open, and start a client timer which builds and sends the document periodically using AnswerPage, AnswerString or AnswerStream depending on how much work you do yourself. Remember that ICS is async, so the server is blocked while processing events like GetDocument, that why you need a timer to send your responses, not a never ending loop as in an Indy thread. 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] HttpServer and Server-push?
Angus, So it does sound like this is at least possible :) Unfortunately my inexperience with ICS is now going to Show rather quickly. I've been looking at the Webserver demo that ships withICS as a basis of what I'm try to achieve. Please forgive my questions if they are somewhat newbie! You wrote, In the GetDocument event, for your specific path/URL you need to set: Flags := hgWillSendMySelf; RemoteClient.KeepAlive = TRUE; So, do I need to do the same for PostDocument? The webserver example uses PostDocument and PostedData. The PostDocument event in the demo requires the Flag parameter to be set to Flags := hgAcceptData before the PostedData event fires. Changing this to Flags := hgWillSendMySelf prevents this from happening. So how would I get the posted data with this change? Apologies if this is way off the mark, ICS is quite different from Indy ;) Thanks for your valuable input! Chris. -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Angus Robertson - Magenta Systems Ltd Sent: 18 October 2011 14:23 To: twsocket@elists.org Subject: Re: [twsocket] HttpServer and Server-push? I then need to be able to send HTTP messages (xml documents) back from the server to the client periodically In the GetDocument event, for your specific path/URL you need to set: Flags := hgWillSendMySelf; RemoteClient.KeepAlive = TRUE; so the server does nothing more but leaves the connection open, and start a client timer which builds and sends the document periodically using AnswerPage, AnswerString or AnswerStream depending on how much work you do yourself. Remember that ICS is async, so the server is blocked while processing events like GetDocument, that why you need a timer to send your responses, not a never ending loop as in an Indy thread. 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 -- 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] HttpServer and Server-push?
So, do I need to do the same for PostDocument? The webserver example uses PostDocument and PostedData. Yes, you have to handle the different methods yourself, although HEAD and GET can use the same handle, just don't send any data with HEAD. The PostDocument event in the demo requires the Flag parameter to be set to Flags := hgAcceptData That effectively means end of request and close connection if no KeepAlive with no response the client. 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] HttpServer and Server-push?
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 wonder why you need to use HTTP protocol. Why don't you design your own custom protocol tailored to fit your needs ? Of course, your own protocol may use port 80 if it is what is open. -- 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/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be