EasyManua.ls Logo

HP 1670A Series - Page 64

HP 1670A Series
108 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Programming
the
Logic
Analyzer
To
write
programs
that
open
the
command
parser
socket
/*
Create
an
endpoint
for
corrununication
*/
sockfd
=
socket(
AF_INET,
SOCK_STREAM,
0 ) ;
/*
Initiate
a
connection
on
the
created
socket
*/
connect(
sockfd,
( tdSOCKET_ADDR *
)&serv_addr,
sizeof
/*
Send
a
message
from
the
created
socket
*/
send
(
sockfd,
cmdString,
strlen
(
cmdString),
0
);
/*
Receive
a
message
from
the
165008
socket
*/
serv_addr
recv
(
sockfd,
receiveBuffer,
sizeof
(
receiveBuffer
) , 0 ) ;
printf
(
"%s\n",
receiveBuffer
) ;
close
(
sockfd
) ;
) ;
5-13
I

Table of Contents

Related product manuals