comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Using WIDGET_ACTIVEX to create a Socket server
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Using WIDGET_ACTIVEX to create a Socket server [message #48815 is a reply to message #48810] Tue, 23 May 2006 09:50 Go to previous messageGo to previous message
bsoher is currently offline  bsoher
Messages: 5
Registered: May 2006
Junior Member
Thanks for the info about v6.3, but for the time being I am stuck using
v6.1. Also, I was hoping to create an event-driven server application.

Specifically, I have a client application in C++ that takes data from a
spectrometer at fixed time intervals. I want the client to ship that
data to my server which will display it in a widget AND allow the user
to interact with all the data thus far received in between receiving
new data on the server.

I'd read that the ActiveX libs fire off events when clients attach,
send data, terminate, etc. So, I'd hoped that this could be combined
with IDL's standard widget handling to create a non-blocking widget
"listener". I just can't get IDL to hear and react to the ActiveX
events (which are supposed to be bound to the WIDGET_ACTIVEX object).


codepod@gmail.com wrote:
> This isn't documented (it's somewhat experimental), but if you have 6.3
> you can create a server socket in IDL. To do this you do the following:
>
> ;; First create a socket, but market it as a listener.
> ;; socket, <lun>, port, /listen
>
> ;; Then accept a connection on this socket.
> ;; This will listen on the above port (8081).
> ;; This blocks until a connection is made
> ;; Socket, <lun 2>, accept=lun
>
> ;; Once the above routine returns, you can read and write
> ;; the socket that accepted the connection. In this example,
> ;; using lun 2.
>
> ;; when complete, just close the units.
>
> -CP
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Symbols Plotting - Psym
Next Topic: Contour implementation in OpenGL ??

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 07:13:32 PDT 2025

Total time taken to generate the page: 0.40314 seconds