File size: 382 Bytes
806d4b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

/*
Run TOSSocket Server in Linux.
It makes file, echo_socket, in Linux cur_dir.

VMware Serial
  Socket Name: /home/tad/Tmp/echo_socket
  Client

See Remove.

*/

#include "::/Doc/Comm"

U0 CommTest(I64 port)
{
  CComm *c=CommInit8n1(port,9600);
  I64 b=0;
  while (!ScanChar) {
    CommPutS(port,"Testing");
    while (FifoU8Rem(c->RX_fifo,&b))
      "%c",b;
  }
}

CommTest(1);