Download Home/Sup1/Sup1CodeScraps/Comm/CommTest.txt from hschumann2/TempleOS-Source-Code: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/datasets/hschumann2/TempleOS-Source-Code/resolve/main/Home/Sup1/Sup1CodeScraps/Comm/CommTest.txt
- Command line
-
hf download hf://datasets/hschumann2/TempleOS-Source-Code/Home/Sup1/Sup1CodeScraps/Comm/CommTest.txt
-
curl -L -o CommTest.txt https://huggingface.co/datasets/hschumann2/TempleOS-Source-Code/resolve/main/Home/Sup1/Sup1CodeScraps/Comm/CommTest.txt
382 Bytes
| /* | |
| 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); | |