Emerson R&S SGT100A User Manual page 591

Sgma vector rf source
Table of Contents

Advertisement

®
R&S
SGT100A
case 2:
default:
}
try
{
client.connectToServer( hostname, port );
bool terminate = false;
while( !terminate )
{
}
}catch( const string errorString )
{
cout<<errorString<<endl;
}
User Manual 1176.8674.02 ─ 12
useSingleCommand = true;
singleCommand
= argv[2];
hostname
= argv[1];
break;
printUsage();
return(-1);
char buffer[1024];
if( useSingleCommand )
{
input =
singleCommand; //send string
}
else
{
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 << endl;
}
}
if( useSingleCommand )
{
terminate = true;
}
Telnet program examples
591

Advertisement

Table of Contents
loading

Table of Contents