aboutsummaryrefslogtreecommitdiff
path: root/musw.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2022-06-08 07:29:14 +0000
committerrodri <rgl@antares-labs.eu>2022-06-08 07:29:14 +0000
commita5c44d9c396b02c013c9d76709382d7e67aee458 (patch)
tree5b5b751a18c02ea42e391f69228b353660375db3 /musw.c
parentb8379bd4d9bd65ae85c7d08554dc6ded0d9e1b7d (diff)
downloadmusw-a5c44d9c396b02c013c9d76709382d7e67aee458.tar.gz
musw-a5c44d9c396b02c013c9d76709382d7e67aee458.tar.bz2
musw-a5c44d9c396b02c013c9d76709382d7e67aee458.zip
changed the transport from tcp to udp. got rid of some unnecessary connection management and party setup code—needs further refactoring. fixed some nomenclatures.
Diffstat (limited to 'musw.c')
-rw-r--r--musw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/musw.c b/musw.c
index 51e124f..70a8a4b 100644
--- a/musw.c
+++ b/musw.c
@@ -68,7 +68,7 @@ readvmodel(char *file)
if(bin == nil)
sysfatal("Bopen: %r");
- mdl = emalloc(sizeof *mdl);
+ mdl = emalloc(sizeof(VModel));
mdl->pts = nil;
mdl->npts = 0;
mdl->strokefmt = nil;
@@ -354,6 +354,8 @@ threadmain(int argc, char *argv[])
kchan = chancreate(sizeof kdown, 1);
proccreate(kbdproc, nil, 4096);
+ /* TODO: draw a CONNECTING... sign */
+ /* TODO: set up an alarm for n secs and update the sign */
fd = dial(server, nil, nil, nil);
if(fd < 0)
sysfatal("dial: %r");