Modern IDL by Michael Galloy

API documentation for example code

single page | use frames     summary     class     fields     routine details     file attributes

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, and listener_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

top source mg_socket_server_demo

mg_socket_server_demo [, port=uint]

Main routine running on the server.

Keywords

port in optional type=uint default=14412US

port to listen on

File attributes

Modification date: Sun Aug 30 20:36:32 2015
Lines: 53
Docformat: rst rst