Skip to content

Server Class

David Hagar edited this page Jun 20, 2016 · 4 revisions

Server Class

Stores all the information needed to connect to a single IRC server.

Constructor

server.Server(host, port, ssl)

Accepts 3 inputs:

  • host : Server IP / Hostname (string)
  • port : Connection Port (int)
  • ssl : Whether the server should be connected to using SSL or not (bool)

Data Members

server.Server.host

Stores a str, the name or IP address of the server to be connected to.

server.Server.port

Stores an int, the numeric port of the server to be connected.

server.Server.ssl

Stores a bool, whether or not to use SSL in the connection.

Class Methods

None

Clone this wiki locally