From d63fbe6cd5e055b40ae8e4aa209b9aef07074f8b Mon Sep 17 00:00:00 2001 From: rodri Date: Wed, 2 Aug 2023 11:52:57 +0000 Subject: wrote a readme. removed unnecessary Hdr**. --- main.c | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 939f12d..61b6b16 100644 --- a/main.c +++ b/main.c @@ -7,6 +7,27 @@ int debug; +//Channel *ingress; +//Channel *egress; +// +// +//void +//threadnetrecv(void *arg) +//{ +// +//} +// +//void +//threadnetppu(void *) +//{ +// +//} +// +//void +//threadnetsend(void *arg) +//{ +// +//} void usage(void) @@ -40,10 +61,16 @@ threadmain(int argc, char *argv[]) fd = dial(addr, nil, nil, nil); if(fd < 0) sysfatal("couldn't establish the connection"); - - if(debug) + else if(debug) fprint(2, "connection established\n"); +// ingress = chancreate(sizeof(Sipmsg*), 8); +// egress = chancreate(sizeof(Sipmsg*), 8); +// threadcreate(threadnetrecv, &fd, mainstacksize); +// threadcreate(threadnetppu, nil, mainstacksize); +// threadcreate(threadnetsend, &fd, mainstacksize); +// yield(); + sip = mksip(fd); if(sip == nil) sysfatal("mksip: %r"); -- cgit v1.2.3