aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c31
1 files changed, 29 insertions, 2 deletions
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");