58 static void sendstr(
const char *str, 
struct netconn *conn) {
 
   59   netconn_write(conn, (
void *) str, 
strlen(str), NETCONN_COPY);
 
   62 static void prompt(
struct netconn *conn) {
 
   63   sendstr(
"uBixCube:@sys> ", conn);
 
   66 static void shell_main(
struct netconn *conn) {
 
   67   struct netbuf *
buf = 0x0;
 
   75     err = netconn_recv(conn, &
buf);
 
   78     len = netbuf_len(
buf);
 
   86       sendstr(
"no\nfiles\nhere\n", conn);
 
   89       sendstr(
"UbixOS v1.0 reddawg@devel.ubixos.com:/ubix.elf\n", conn);
 
   96   struct netconn *conn = 0x0, *newconn = 0x0;
 
  100   conn = netconn_new(NETCONN_TCP);
 
  102   netconn_bind(conn, IP4_ADDR_ANY, 23);
 
  103   netconn_listen(conn);
 
  106     netconn_accept(conn,&newconn);