protocol.make_packet

Here are the examples of the python api protocol.make_packet taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: python-lifx-sdk Source File: network.py
Function: send_packet
    def send_packet(self, *args, **kwargs):
        # Make the packet
        packetargs = kwargs.copy()
        del packetargs['address']
        del packetargs['port']
        packet = protocol.make_packet(*args, **packetargs)

        # Send it
        address = kwargs['address']
        port = kwargs['port']
        return self._sendto(packet, address, port)