Re: A socket in a web page?

From: Martin (martinvalley_at_comcast.net)
Date: 02/06/04


Date: Fri, 06 Feb 2004 12:37:13 -0700

On Fri, 06 Feb 2004 12:15:48 -0500, Lew Pitcher <Lew.Pitcher@td.com>
wrote:

>To paraphrase: you have a specially built MSWindows application that, under
>certain circumstances, uses a socket to communicate with another app, and
>then uses the results to build a webpage that is then presented to intranet
>clients via a built in webserver.
>
>Right?

No, not quite.

I have a specially built MSWindows application that controls an
industrial process. The "user interface" is in the form of web pages
which are served out by the application itself (IIS is not used).

Several of the pages that are served out include a Winsocket that is
activated by a script when the page is loaded in the client's browser.
This client-side socket connects back to a server-side socket thus
providing a "pipe" thru which the server process can then send data
out to be displayed on the client's screen.

>From the end-user's point of view, he's just sitting there looking at
his screen watching real-time updates of portions of his screen. No
additional pages are being sent or received.

It's my home-made version of "push" technology where the server is
pushing data out to the client.

The problem I'd like to overcome now is that this works only with
Internet Explorer / Windows clients; because only they can handle the
client-side Winsocket. I would like to be able to serve out a page
that would allow this same functionality on Linux/Unix clients.



Relevant Pages

  • Re: C sockets
    ... :if no then select is only thing to have server socket program on one ... :pc and other clients on many pcs to have communication with server? ... serving N clients requires at least times the amount of memory ...
    (comp.lang.c)
  • Re: Format of string output of a socket server
    ... a socket can ONLY send bytes. ... What for example does your standard POP3 server send? ... The client program can then convert to Unicode or whatever they see fit? ... I am writing a socket server to deliver telephony events to clients on ...
    (microsoft.public.win32.programmer.networks)
  • Re: How Can I call close() for all
    ... with a select to handle multiple clients. ... The first socket you process contains a command that tells the ... server shut down, so you call 'close' on all your connections. ... 'syslog' opens a TCP connection to write the log ...
    (comp.os.linux.development.apps)
  • Re: Sockets application with 200 clients
    ... > I am developing a network server application that will connect to around ... > The server listens for connections from clients and establishes a socket ... The socket remains active until either the server or client ...
    (microsoft.public.dotnet.framework)
  • Re: NIO and accepts()
    ... > In a nutshell the idea is that an increasing number of clients will slow ... > anymore) whereas the iocp server still works. ... > synchronization with the socket subsystem) and perhaps send SYN/ACK ... Thread handling this will do it calls to the socket subsystem ... ...
    (comp.lang.java.programmer)