The Droids We’re Looking For

Here’s something encouraging. I run this in Python…

from tp import netlib
c = netlib.Connection( "localhost", 6925 )
c.connect()
c.login( "admin", "admin" )
c.disconnect()

…and the tpserver-cpp log says…

2008-06-01 11:37:33 < Info > Accepting new admin (tcp) connection
2008-06-01 11:37:40 < Info > Admin client has version 3 of protocol
2008-06-01 11:37:40 < Info > Admin client on connection 7 is [libtpproto-py/0.2.4 ]
2008-06-01 11:37:49 < Info > Admin login ok by admin
2008-06-01 11:38:00 < Info > Client disconnected
2008-06-01 11:38:00 < Info > Closed connection 7

…most excellent.

Now I can move on to making it do stuff with administration frames. According to my milestones, that should be completed in about 3 weeks. Let’s see if we can’t make that move a little quicker.

On the flip side, I ran into a bit of a problem with logging to the administration client. An AdminLogger object is instantiated by each new AdminConnection, and added to the main Logger set. Problem is, AdminLogger actually needs to send LogMessage frames to the client, and the only way to send frames to the client is through AdminConnection! Obviously, this means AdminLogger needs a pointer to the appropriate AdminConnection object; in the current design, that means passing a pointer to this in the constructor and having the child access the parent, which sounds a little sketchy. On the other hand, the object relationships seem to make sense…

Jun 1st, 2008
Tags:
  1. Jun 2nd, 2008 at 21:53 | #1

    admin/admin :)

Comments are closed.