diff options
author | rodri <rgl@antares-labs.eu> | 2023-08-02 11:52:57 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-08-02 11:52:57 +0000 |
commit | d63fbe6cd5e055b40ae8e4aa209b9aef07074f8b (patch) | |
tree | 8f95cd27805f675d7410b6c7026b60e8e2502b2c /main.c | |
parent | 489c503c2594f88d29d50b788915cf1ba74f66ac (diff) | |
download | catphone-d63fbe6cd5e055b40ae8e4aa209b9aef07074f8b.tar.gz catphone-d63fbe6cd5e055b40ae8e4aa209b9aef07074f8b.tar.bz2 catphone-d63fbe6cd5e055b40ae8e4aa209b9aef07074f8b.zip |
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 31 |
1 files changed, 29 insertions, 2 deletions
@@ -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"); |