Net

Description

Provides an asynchronous, crypto and compression aware socket for connecting to servers and processing incoming packet data. Coordinates with the Timers plugin to honor wall-clock timers

Events

Undocumented

Methods and Attributes

class spockbot.plugins.core.net.NetCore(sock, event, select)
connect(host='localhost', port=25565)
disable_crypto()
enable_crypto(secret_key)
push(packet)
push_packet(ident, data)
read_packet(data=b'')
reset(sock)
set_comp_state(threshold)
set_proto_state(state)