asyn 4-28
Functions
/home/epics/devel/asyn-R4-28/testAsynPortClientApp/src/testAsynIPPortClient.cpp File Reference
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <epicsString.h>
#include <drvAsynIPPort.h>
#include <asynPortClient.h>

Functions

int main (int argc, char **argv)
 Test program that demonstrates how to write C++ program that instantiates an asyn port driver and communicates with it directly over the asyn interfaces without running an EPICS IOC.

Function Documentation

int main ( int  argc,
char **  argv 
)

Test program that demonstrates how to write C++ program that instantiates an asyn port driver and communicates with it directly over the asyn interfaces without running an EPICS IOC.

It creates an asynIPPort driver, and uses the command line arguments to set the hostInfo string, a single command string to send to the server, and optionally the input and output EOS. It then prints out the response from the server. There are 3 example shell scipts provides that show how to use testAsynIPPortClient to communicate with a Web server, XPS motor controller, and a telnet host respectively.

Usage: testAsynIPPortClient hostInfo outputString [outputEos] [inputEos]

Example: testAsynIPPortClient cars.uchicago.edu:80 "GET / HTTP/1.0" "\n\n"