[V4RB] Writing a simple server

jda jda at his.com
Tue Feb 11 11:59:23 CST 2003


>>
>
>At the lower level TCP layers, a web server opens multiple listening 
>streams on the specified port. This is the only way not to miss a 
>request. Some browsers open multiple TCP streams to the same server 
>to handle a request that has mixed content - e.g. text and images. 
>If you are not listening on multiple streams, you are going to get 
>errors on the browser side. I don't know anything about RB, but it 
>sounds like the current socket class just opens one listening 
>stream. Perhaps the new version will hide these low level details.
>

Yes, in RB 5 the new ServerSocket class opens multiple sockets on a 
single port (you can specify the max and the minimum number). I think 
that will do the trick.

Thanks (and thanks to Frank Bitterlich again) for the helpful information,

Jon


More information about the Valentina mailing list