EtherSpaceLink-RG408
EtherSpaceLink family User Manual
/* Shut down in event of Ctrl-C */
signal( SIGINT, shut_down );
pthread_create ( &th_rx, NULL, read_packets, 0 );
pthread_create ( &th_tx, NULL, send_packets, 0 );
while ( running )
{ sleep (1);
}
printf ("Closing rx file ... ");
fclose (rx_fd);
printf ("OK\n");
EtherSpaceLink_close ( ESL_unit );
return 0;
}
Wh
en
r
u
n
,
t
h
i
s
p
r
o
gr
a
m d
i
s
pl
a
y
s:
c-api-example2-esl 192.168.3.42 fileo filei
Connecting to 192.168.3.42 ... OK
4Links Limited ESL-RG401 v1.5 (8 ports)
Serial number A260 at 00-50-C2-21-21-04
Opened ’filei’
Opened ’fileo’
Transmitter finished
Receiver finished - 100000000 data bytes received
Closing rx file ... OK
F
o
r
a c
o
ns
i
de
r
a
b
ly
m
o
r
e e
x
tens
iv
e e
x
a
m
pl
e
,
see
SpW.c
w
h
i
ch
i
s
i
n
c
lu
ded
i
n t
h
e s
o
f
t
w
a
r
e b
u
nd
l
e
w
i
t
h
you
r
4
L
i
n
k
s
p
r
o
d
u
c
t.
4Links Limited
www.4Links.co.uk
[email protected]
page 50 of 110
T +44 1908 642001; F +44 1908 363463
Milton Keynes MK3 6EB, UK
Suite EU2, Bletchley Park