Package lacewing :: Package packetloaders :: Module udp
[frames] | no frames]

Source Code for Module lacewing.packetloaders.udp

 1  """ 
 2  UDP connection enabling/acknowledgement 
 3  """ 
 4   
 5  from lacewing.baseloader import _EmptyLoader 
 6   
7 -class EnableUDP(_EmptyLoader):
8 """ 9 This is sent from the client to initially tell the server 10 what port to send UDP packets to after it has logged in. 11 The client can send on another port afterwards, and the 12 server should change to the new port it just received from. 13 """
14
15 -class UDPAcknowledged(_EmptyLoader):
16 """ 17 This is a response to the EnableUDP packet to tell the client 18 it received the packet successfully, and that UDP is now working. 19 """
20 21 __all__ = ['EnableUDP', 'UDPAcknowledged'] 22