| Aaron Mavrinac ( @ 2008-07-01 10:16:00 |
| Entry tags: | tp |
Very Clever Mistakes
Well, tpadmin-cpp almost works properly now.
The connection problem was due to the console input loop monopolizing the single-threaded event loop, so that the sockets never got checked for data. On Lee's suggestion, this was fixed by making the console a TPSocket that would be scheduled by the event loop.
Another pair of problems in libtpproto-cpp were giving me trouble. The first was an incorrect delete statement that was causing segfaults, the other an incorrect packInt call before packing a string command parameter (I have no idea why I put that in there originally).
Now I just need to figure out why I get a SIGILL every time I try to use the same server command twice...