set up website, refer to it, git instructions, git refer in files bak debje algorithm to decide wether game is finished is incomplete: diagonal lacks. tweak ChangeLog: contains non-m-4 stuff joostvb@hille:~% m4d press ^c to stop this daemon tail: var/log/mariposa-4: file truncated ^C/usr/local/bin/m4d: 76: cannot open var/run/mariposa-4: Interupted system call joostvb@hille:~% strace -f m4d [pid 10264] read(10, "", 8192) = 0 [pid 10264] exit_group(141) = ? Process 10264 detached [pid 12990] <... accept resumed> 0xbfcb3444, [28]) = ? ERESTARTSYS (To be restarted) [pid 9240] <... read resumed> 0x8d5f958, 35) = -1 EINTR (Interrupted system call) [pid 12990] accept(3, [pid 9240] read(5, [pid 12991] <... accept resumed> 0xbff9e104, [28]) = ? ERESTARTSYS (To be restarted) [pid 12989] <... accept resumed> 0xbfe2fa54, [28]) = ? ERESTARTSYS (To be restarted) [pid 12991] accept(3, [pid 12989] accept(3, [pid 7889] <... open resumed> ) = ? ERESTARTSYS (To be restarted) [pid 7889] open("var/run/mariposa-4", O_RDONLY|O_LARGEFILE^C Process 12989 detached Process 12990 detached Process 12991 detached Process 9238 detached Process 9240 detached - use svc to handle childs / childpid - user interface (network? nc port?) + as of нед, 6. нов 2011. 02:18:59 CET werkt dit best wel joostvb@hille:~/git/ad1810-stuff/mariposa-4% ./mariposa-4d joostvb@hille:~/git/ad1810-stuff/mariposa-4% ./m4d joostvb@hille:~% nc localhost 4443 joostvb@hille:~% nc localhost 4444 joostvb@hille:~% nc localhost 4445 + ucspi-tcp-ipv6 : tcpserver and (tcpclient | nc) - nc: joostvb@hille:~% nc -l -p 4444 | ~/git/ad1810-stuff/mariposa-4/mariposa-4 joostvb@hille:~% nc localhost 4444 seems nc -l can only receive data, not push to other side. use tcpserver for m4d; nc for m4c + m4c watch ; m4c 3 ; m4c 0 As of уто, 25. окт 2011. 08:17:14 CEST werkt dit best wel: joostvb@hille:~/git/ad1810-stuff/mariposa-4% tcpserver 0 4444 ./mariposa-4 joostvb@hille:~% nc localhost 4444 echter: tcpserver start nieuw m-4 process per inkomende connectie. tcpserver -Dv + m4d moet soort van dispatcher zijn, die van stuk of 2 + 1 filedescriptors leest, en naar 2 + 1 schrijft. perlipc(1). + m4d : one off: doe n zet-d. praat tegen named pipe, die door mariposa-4d gezet wordt; mariposa-4d append aan /v/r/m-4. leesd: tail -F /var/run/mariposa-4 - logging? - manpage (zoem) - caps last move (x X, o O) - q as command: quit; s as command show Old cruft / ideas ----------------- git/git.fruit.je/f00f/src games.c en andere: galgje !4 1 start indien nodig game, gooi in rij 1 !4 undo laatste zet !4 klepje open, nieuwe game