I am using netserver/netclient to send list of info that has been converted to a symbol using [list2symbol]. Somewhere in the process, some of the messages get chopped up at seemingly random points. The examples below only break at spaces, but sometimes it will break in the middle of the first work (i.e. mo tion).
I think the problem is on the [netclient] end because sometimes, one computer will work fine, and the other will chop up the messages. The patches are attached. They use Krzysztof Czaja's [tot] and zexy's [list2symbol].
Output from [netclient] (error messages preceed problem here): error: Bad arguments for message 'motion' to object 'canvas' NETCLIENT: motion 107 1 error: canvas: no method for 'float' NETCLIENT: 87 0 NETCLIENT: motion 111 191 0 NETCLIENT: motion 114 191 0 error: Bad arguments for message 'motion' to object 'canvas' NETCLIENT: motion 114 190 error: canvas: no method for 'float' NETCLIENT: 0 NETCLIENT: motion 114 189 0 NETCLIENT: key 1 98 0 NETCLIENT: key 0 98 0 NETCLIENT: key 1 110 0 NETCLIENT: key 0 110 0 NETCLIENT: key 1 error: canvas: no method for 'float' NETCLIENT: 103 0 NETCLIENT: key 0 103 0 bn ... couldn't create NETCLIENT: mouse 114 189 1 0 NETCLIENT: motion 115 189 0 NETCLIENT: mouseup 115 189 1 NETCLIENT: motion 115 188 0 NETCLIENT: motion 117 187 0 NETCLIENT: motion 119 187 0 error: Bad arguments for message 'motion' to object 'canvas' NETCLIENT: motion 120 187 error: canvas: no method for 'float' NETCLIENT: 0 NETCLIENT: motion 119 187 0 NETCLIENT: motion 118 187 0 NETCLIENT: motion 108 185 0 NETCLIENT: motion 96 183 0 NETCLIENT: motion 63 179 0 NETCLIENT: motion 21 181 0
Input into [netserver]: print: broadcast motion 107 187 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast motion 111 191 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast motion 114 191 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast motion 114 190 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast motion 114 189 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast key 1 98 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast key 0 98 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast key 1 110 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast key 0 110 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast key 1 103 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast key 0 103 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast mouse 114 189 1 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast motion 115 189 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast mouseup 115 189 1 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast motion 115 188 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast motion 117 187 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast motion 119 187 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast motion 120 187 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast motion 119 187 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast motion 118 187 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast motion 108 185 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast motion 96 183 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast motion 63 179 0 netserver: sending data to client 2 on socket 9 netserver: sending data to client 1 on socket 8 print: broadcast motion 21 181 0
http://at.or.at/hans/