netbits.sockets.sendStructuredPacket

netbits.sockets.sendStructuredPacket(sock: socket, packet: StructuredPacket, registry: Registry[Type[StructuredPacket]])[source]

Send a structured packet through the socket.

Parameters:
Raises:

ValueError – If the packet type is not registered in the registry.