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 #48820 is a reply to message #48815] Tue, 23 May 2006 07:26 Go to previous message
codepod is currently offline  codepod
Messages: 19
Registered: March 2006
Junior Member
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

Socket, 1, 8081, /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

Socket, 2, accept=1

;; Once the above routine returns, you can read and write
;; the socket that accepted the connection. In this example,
;; using lun 2.
printf, 2, 'cow'
data= ''
readf, 2, data

;; 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: Sat Oct 11 08:57:18 PDT 2025

Total time taken to generate the page: 1.43853 seconds