blob: 99551d4f1d307e7ae1a79c48224b33187a25bb8c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "netlib.h"
/* necho: send a SLIP-framed packet over the link port and print the reply.
Talks to a host gateway (tools/gateway.py) that echoes frames back. */
void main(void) {
char buf[64];
unsigned char len;
puts("net: send 'hello from gbos'"); nl();
slip_send("hello from gbos", 15);
len = slip_recv(buf, 63);
buf[len] = 0;
puts("net: recv '"); puts(buf); puts("'"); nl();
}
|