
/* Create an endpoint for communication */
sockfd = socket( AF_INET, SOCK_STREAM, 0 );
/* Initiate a connection on the created socket */
connect( sockfd, ( tdSOCKET_ADDR * )&serv_addr, sizeof ( serv_addr ) );
/* Send a message from the created socket */
send ( sockfd, cmdString, strlen ( cmdString ), 0 );
/* Receive a message from the 16500B socket */
recv ( sockfd, receiveBuffer, sizeof ( receiveBuffer ), 0 );
printf ( "%s\n", receiveBuffer );
close ( sockfd );
}
Programming the Logic Analyzer
To write programs that open the command parser socket
5-13
Summary of Contents for 1660 CS Series
Page 7: ...1 Connecting and Configuring...
Page 16: ...1 10...
Page 17: ...2 Accessing the Logic Analyzer File System...
Page 25: ...3 Using the X Window Interface...
Page 37: ...4 Retrieving and Restoring Data...
Page 50: ...4 14...
Page 51: ...5 Programming the Logic Analyzer...
Page 64: ...5 14...
Page 65: ...6 Concepts...
Page 72: ...6 8...
Page 73: ...7 Troubleshooting...
Page 104: ...Index Index 4...