|
@@ -258,9 +258,6 @@ class ClientConnection(Connection):
|
|
self.perfstats.bytes_received += msgsize
|
|
self.perfstats.bytes_received += msgsize
|
|
self.receivedfromserver(netmsg)
|
|
self.receivedfromserver(netmsg)
|
|
|
|
|
|
- #def received(self, netmsg):
|
|
|
|
- #print("received", netmsg, "from server")
|
|
|
|
-
|
|
|
|
|
|
|
|
class ServerConnection(Connection):
|
|
class ServerConnection(Connection):
|
|
"""The parent class of server-side network connections."""
|
|
"""The parent class of server-side network connections."""
|
|
@@ -325,7 +322,8 @@ if __name__ == '__main__':
|
|
thenetwork.printservers()
|
|
thenetwork.printservers()
|
|
print("in main", a)
|
|
print("in main", a)
|
|
|
|
|
|
- conn = thenetwork.connect("hello world client", a)
|
|
|
|
|
|
+ perfstats = PerfStats(EntType.NONE)
|
|
|
|
+ conn = thenetwork.connect("hello world client", a, perfstats)
|
|
conn.sendmsg(StringNetMsg("hi"))
|
|
conn.sendmsg(StringNetMsg("hi"))
|
|
conn.close()
|
|
conn.close()
|
|
|
|
|