fileio/
mg_socket_server_demo.pro
idl85 http://www.exelisvis.com/Company/PressRoom/Blogs/IDLDataPointDetail/TabId/902/ArtMID/2926/ArticleID/14483/Server-Side-TCPIP-Sockets-Officially-Documented-in-IDL-85-coming-soon.aspx
Example server side in client/server socket communication. Run this code on
a server and run mg_socket_client_demo
on the client (making sure to set
the SERVER
keyword to the address of the server running this code).
Author information
- Author
Jim Pendleton
Routines
Routines from mg_socket_server_demo.pro
mg_socket_server_demo_client_callback, id, info_hash
Callback waiting for data from a client connection that has already been established.
mg_socket_server_demo_listener_callback, id, listener_lun
Callback waiting to make a connection with a client.
mg_socket_server_demo [, port=uint]
Main routine running on the server.
Routine details
top source mg_socket_server_demo_client_callback
mg_socket_server_demo_client_callback, id, info_hash
Callback waiting for data from a client connection that has already been established.
Parameters
- id in required type=long
timer identifier
- info_hash in required type=long
user-defined hash containing information stored between callbacks, e.g.,
buffer_count
,lun
, andlistener_lun
top source mg_socket_server_demo_listener_callback
mg_socket_server_demo_listener_callback, id, listener_lun
Callback waiting to make a connection with a client.
Parameters
- id in required type=long
timer identifier
- listener_lun in required type=long
logical unit number for the socket that the server is listening on
File attributes
Modification date: | Sun Aug 30 20:36:32 2015 |
Lines: | 53 |
Docformat: | rst rst |