Remote Control Basics
R&S
®
SMJ100A
458
Operating Manual 1403.7458.32 ─ 14
currentHostInfo = gethostbyname( hostname.c_str( ) );
if( currentHostInfo == NULL )
{
#ifndef LINUX
int error = WSAGetLastError();
switch (error)
{
case WSANOTINITIALISED: throw string(" A successful case WSAStartup
call must occur before using this function."); break;
case WSAENETDOWN: throw string
(" The network subsystem has failed."); break;
case WSAHOST_NOT_FOUND: throw string
(" Authoritative answer host not found."); break;
case WSATRY_AGAIN: throw string
(" Nonauthoritative host not found, or server failure."); break;
case WSANO_RECOVERY: throw string
(" A nonrecoverable error occurred."); break;
case WSANO_DATA: throw string
(" Valid name, no data record of requested type."); break;
case WSAEINPROGRESS: throw string(" A blocking Windows Sockets 1.1 call
is in progress, or the service provider is still processing a callback function.")
; break;
case WSAEFAULT: throw string
(" The name parameter is not a valid part of the user address space."); break;
case WSAEINTR: throw string
(" A blocking Windows Socket 1.1 call was canceled through case
WSACancelBlockingCall."); break;
}
#endif
currentHostName = "";
currentPort = 0;
currentHostInfo = NULL;
clientIsConnected = false;
throw string("error connecting host\n" );
}
else
{
currentHostName = hostname;
currentPort = port;
currentSocketDescr = socket(AF_INET, SOCK_STREAM, 0);
if( currentSocketDescr == 0 )
{
currentHostName = "";
currentPort = 0;
currentHostInfo = NULL;
clientIsConnected = false;
throw string("can't create socket\n" );
}
serverAddress.sin_family = currentHostInfo->h_addrtype;
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...