Skip to content

Commit

Permalink
Re-enable useful log lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
arigo committed May 4, 2006
1 parent ac0dd64 commit c1db314
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/gamesrv.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ def set_player_name(self, id, name, *rest):

def set_udp_port(self, port, addr=None, *rest):
if port == MSG_BROADCAST_PORT:
#self.log('set_udp_port: broadcast')
self.log('set_udp_port: broadcast')
broadcast_clients[self] = 1
#print "++++ Broadcasting ++++ to", self.addr
else:
Expand All @@ -700,7 +700,7 @@ def set_udp_port(self, port, addr=None, *rest):
import udpovertcp
self.udpsocket = udpovertcp.SocketMarshaller(self.socket, self)
s = self.udpsocket.tcpsock
#self.log('set_udp_port: udp-over-tcp')
self.log('set_udp_port: udp-over-tcp')
else:
self.udpsocket = socket(AF_INET, SOCK_DGRAM)
self.udpsocket.setblocking(0)
Expand All @@ -715,7 +715,7 @@ def set_udp_port(self, port, addr=None, *rest):
if self.proto >= 3:
self.setup_dyncompress()
s = self.udpsocket
#self.log('set_udp_port: %d' % port)
self.log('set_udp_port: %s:%d' % (addr, port))
if s:
try:
s.setsockopt(SOL_IP, IP_TOS, 0x10) # IPTOS_LOWDELAY
Expand Down

0 comments on commit c1db314

Please sign in to comment.