![R&S SMJ100A Operating Manual Download Page 477](http://html1.mh-extra.com/html/rands/smj100a/smj100a_operating-manual_3086611477.webp)
Remote Control Basics
R&S
®
SMJ100A
461
Operating Manual 1403.7458.32 ─ 14
default:
printUsage();
getchar();
return(-1);
}
try
{
#ifndef LINUX
WORD wVersionRequested = MAKEWORD( 2, 2 );
WSADATA wsaData;
int err = WSAStartup( wVersionRequested, &wsaData );
if ( err != 0 )
{
throw string ("Could not find a usable WinSock DLL.");
}
#endif
client.connectToServer( hostname, port );
bool terminate = false;
while( !terminate )
{
char buffer[1024];
if( useSingleCommand )
{
input = singleCommand; //send string
}
else
{
cout <<">";
cin.getline( buffer, 1024 );
input = buffer;
if( input == "end" )
{
terminate = true;
}
}
if( !terminate)
{
client.transmit( input ); //send string
int qPos = input.find( "?", 0 );
//receive string only when needed
if( qPos > 0 )
{
string rcStr = "";
client.receive( rcStr );
cout << rcStr;
}
}
if( useSingleCommand )
{
terminate = true;
Starting a Remote Control Session
Summary of Contents for SMJ100A
Page 34: ...Preface R S SMJ100A 18 Operating Manual 1403 7458 32 14 Notes on Screenshots...
Page 86: ...Preparing for Use R S SMJ100A 70 Operating Manual 1403 7458 32 14 LXI Configuration...
Page 826: ...Remote Control Commands R S SMJ100A 810 Operating Manual 1403 7458 32 14 UNIT Subsystem...
Page 828: ...Maintenance R S SMJ100A 812 Operating Manual 1403 7458 32 14 Storing and Packing...
Page 844: ...Hardware Interfaces R S SMJ100A 828 Operating Manual 1403 7458 32 14 BERT Connector...