frostbite.server – Frostbite Server

class frostbite.server.FBServer(socket, address, command_handler, event_handler)

Server that listens on a configured port and handles Frostbite 2 compatible commands.

Parameters:
  • socket
  • address
  • command_handler
  • event_handler
Returns:

send(seq, command)

Sends a message to the client attached to this server. Returns a handle to retrieve the response at a later time.

Parameters:
  • seq – Sequence number of this message.
  • command – Frostbite Command structure.
Returns:

gevent.queue.AsyncResult

start()

Starts the Frostbite server’s event processor.

Called by the gevent.TCPServer listener. :return: Returns itself to allow chaining.

Previous topic

frostbite.client – Frostbite Client

Next topic

frostbite.packet – frostbite packet serialization / deserialization

This Page