Jump to content

Recommended Posts

I believe the Internet Component Suite is amazing and a godsend for Delphi.
Thank you for everything you do to support this software.
I wish to use WebSockets with ICS Delphi components.  
I wish to use this in a very large and important system (cannot name it).  
I am challenged to prototype this because the Overbyte demo OverbyteIcsSslMultiWebServ.dpr has so many features it is impossible to extract a simple webSocket server. 
I wish to demonstrate ssl/tls and non ssl/tls connections.
I am not interested in echo servers/clients.
I want servers/clients that can handshake and exchange messages with each either other.
How can I demo this.
The client side I have been able and is fairly straight forward.
The server side is too complex.
Please provide a simple Websocket Server application that supports ssl/tls and non ssl/tls connections.
Thank you
Richard Maley

Share this post


Link to post

The OverbyteIcsSslMultiWebServ sample serves both web and websocket pages, since all websocket requests start with an HTTP request to port 80/443.

 

But you can remove all the code relating to creating web pages from the sample, the OverbyteIcsSslMultiWebxx units, etc, leaving just the default page and websocket handlers ClientWSxx and WSxx which do the websocket events. 

 

I will look at a new simple web server sample, similar to the client snippet samples, but unlikely to be ready for the next release. 

 

Angus

 

Edited by Angus Robertson
  • Thanks 1

Share this post


Link to post

There is a new ICS sample OverbyteIcsBasicWebServer.dpr in SVN, will be zipped overnight, which is a simplified version of OverbyteIcsSslMultiWebServ ignoring configuration INI files, security features, session data, most demo pages and most logging, and settings for localhost set in code, search for IcsHosts to change IP addresses, etc.

 

But this sample will be a much easier starting point for those developing web or Websocket servers with ICS.  I'm going to copy most of the code into another new ICS sample that needs a Websocket server.  

 

Angus

 

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×