Skip to content
theepicsnail edited this page Mar 6, 2011 · 6 revisions

The Connector of SuperBot2 is not one of the provided core components even though it is required. This is because the Connector can take on any of limitless implementations. A couple implementations may eventually be provided in the future.

A typical connector could be a client on some protocol, or a server as well. In either instance when an event is read from the network a Connector can give that event to SuperBot2s plugins though the provided eventHandler (provided by SetEventHandler). When a plugin wants to return content to the Connector, it will come in through the HandleResponse function.

The Connector is responsible for:

Functions

  • SetEventHandler(func)
  • GetResponseObject()
  • HandleResponse(response)
  • Start()
  • Stop()

TODO

Clone this wiki locally