Remote Control Basics
R&S
®
SMJ100A
457
Operating Manual 1403.7458.32 ─ 14
#else
#include <netinet/in.h>
#endif
typedef struct sockaddr_in SockAddrStruct;
typedef struct hostent HostInfoStruct;
class TcpClient
{
public:
TcpClient();
~TcpClient();
void connectToServer( string &hostname, int port );
void disconnect( );
void transmit( string &txString );
void receive( string &rxString );
string getCurrentHostName( ) const;
int getCurrentPort( ) const;
private:
string currentHostName;
int currentPort;
int currentSocketDescr;
SockAddrStruct serverAddress;
HostInfoStruct * currentHostInfo;
bool clientIsConnected;
int receiveBufferSize;
};
TcpClient.cpp
#ifdef LINUX
#include <netdb.h>
#include <unistd.h>
#endif
#include "TcpClient.h"
TcpClient::TcpClient()
: currentHostName( "" )
, currentPort( 0 )
, currentSocketDescr( 0 )
, serverAddress ( )
, currentHostInfo( NULL )
, clientIsConnected( false )
, receiveBufferSize( 1024 )
{}
TcpClient::~TcpClient()
{
currentHostInfo = NULL;
}
void TcpClient::connectToServer( string &hostname, int port )
{
Starting a Remote Control Session
Содержание SMJ100A
Страница 34: ...Preface R S SMJ100A 18 Operating Manual 1403 7458 32 14 Notes on Screenshots...
Страница 86: ...Preparing for Use R S SMJ100A 70 Operating Manual 1403 7458 32 14 LXI Configuration...
Страница 139: ...Manual Operation R S SMJ100A 123 Operating Manual 1403 7458 32 14 Legend of Front Panel Controls...
Страница 140: ...Manual Operation R S SMJ100A 124 Operating Manual 1403 7458 32 14 Legend of Front Panel Controls...
Страница 454: ...Instrument Function R S SMJ100A 438 Operating Manual 1403 7458 32 14 Baseband Signal Baseband Block...
Страница 826: ...Remote Control Commands R S SMJ100A 810 Operating Manual 1403 7458 32 14 UNIT Subsystem...
Страница 828: ...Maintenance R S SMJ100A 812 Operating Manual 1403 7458 32 14 Storing and Packing...
Страница 843: ...Hardware Interfaces R S SMJ100A 827 Operating Manual 1403 7458 32 14 Figure A 2 BERT circuit diagram BERT Connector...
Страница 844: ...Hardware Interfaces R S SMJ100A 828 Operating Manual 1403 7458 32 14 BERT Connector...