[twsocket] XE2 and ICS

2011-10-19 Thread Graham Powell
1:
I am just experimenting with XE2 and ICS. If I create a basic VCL project
and add a TFTPClient, compile for 32-bit, all is fine. Compile for 64-bit
and I get the error:

Can't find OverbyteIcsWndControl.dcu

Something simple I am missing?

2:
Now trying to do the same thing in a FireMonkey project and see if I can get
something to eventually work on a MAC.

I don't see any ICS components in the Tool Palette. I assume this is
possible from previous posts about the HttpsTst demo.

Any help much appreciated.

Best regards
Graham


--
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] XE2 and ICS

2011-10-19 Thread Arno Garrels
Graham Powell wrote:
 1:
 I am just experimenting with XE2 and ICS. If I create a basic VCL
 project and add a TFTPClient, compile for 32-bit, all is fine.
 Compile for 64-bit and I get the error:
 
 Can't find OverbyteIcsWndControl.dcu
 
 Something simple I am missing?

Make sure the ICS Vc32 directory is in the Win64 library path.  

 
 2:
 Now trying to do the same thing in a FireMonkey project and see if I
 can get something to eventually work on a MAC.

Doesn't work yet, that's why it's not possible to drop any ICS
components on a FireMonkey form. I'm currently working on
FMX support. 

-- 
Arno Garrels
--
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] XE2 and ICS

2011-10-19 Thread Graham Powell
1: That fixed it. Thanks. Must keep my eyes open for all these extra boxes.

2: Good luck. I'm not that impressed with FireMonkey yet. I think the
concept is brilliant, but seems to be a long way from being useable once you
get away from basic component usage. Still that's not for this discussion
group.

Graham

-Original Message-
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On
Behalf Of Arno Garrels
Sent: 19 October 2011 09:49
To: ICS support mailing
Subject: Re: [twsocket] XE2 and ICS

Graham Powell wrote:
 1:
 I am just experimenting with XE2 and ICS. If I create a basic VCL 
 project and add a TFTPClient, compile for 32-bit, all is fine.
 Compile for 64-bit and I get the error:
 
 Can't find OverbyteIcsWndControl.dcu
 
 Something simple I am missing?

Make sure the ICS Vc32 directory is in the Win64 library path.  

 
 2:
 Now trying to do the same thing in a FireMonkey project and see if I 
 can get something to eventually work on a MAC.

Doesn't work yet, that's why it's not possible to drop any ICS components on
a FireMonkey form. I'm currently working on FMX support. 

--
Arno Garrels
--
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


[twsocket] HttpServer performance improvement

2011-10-19 Thread Angus Robertson - Magenta Systems Ltd
SVN has been updated with a new THttpServer:

Oct 18, 2011 V7.40 Angus
GET performance improvements, use TBufferedFileStream, SndBlkSize default
is 8192 and dynamically increased to new property MaxBlkSize if stream is
larger than SndBlkSize. SocketSndBufSize also increased to SndBlkSize.


Setting the new server property MaxBlkSize to 65,536 caused a four times
decrease in download time for a 50 meg from my public server, making it
faster than IIS/7 downloads on the same server.  

Note the new buffer size defaults to 8,192 instead of 1,460 so there is a
small memory increase for each client, but is never larger than the
largest actual file being sent in a session.  The larger buffer size
means less buffer locking and unlocking in TWSocket. 

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?

2011-10-19 Thread Hedges, Chris
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?

2011-10-19 Thread Angus Robertson - Magenta Systems Ltd
 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?

2011-10-19 Thread Angus Robertson - Magenta Systems Ltd
 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


Re: [twsocket] Suggestion for DocumentToContentType

2011-10-19 Thread RTT


I also find myself with the need to edit the DocumentToContentType 
function, each time I update my local copy of ICS.
This has not being addressed yet, so how about if, instead of the more 
complex implementation proposed here, an assignable 
OnDocumentToContentType property is added to the httpserver, so users 
can provide their own implementation of the DocumentToContentType 
function, if they need to provide other content types.


The function is only called from the THttpConnection.SendDocument, so it 
will go as:


procedure THttpConnection.SendDocument(SendType : THttpSendType;  const 
CustomHeaders : String);


if assigned(FServer.FOnDocumentToContentType) then
FAnswerContentType :=FServer.FOnDocumentToContentType(FDocument)
else
FAnswerContentType := DocumentToContentType(FDocument);
..


Hi Lars,

Lars Gehre wrote:

Hi,

after getting chewed out (again!) for forgetting to extend the
DocumentToContentType function after an update of ICS, I like to
suggest an improvement.

As base use a THashedStringlist (or something similar).
Fill the list with the default extension/contentType names and values
pairs and provide a public RegisterContentType procedure to add
customized content types to the list.
It might be actually faster (sorted list) than the old function...

I agree.


Maybe this is also the time to add use the registry to find MIME
type for file types ;)

AFAIK this is rather slow and if there were an option to register
custom MIME types one could feed them from the registry into the
hashlist once on server start?



--
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