Skip to content
hatninja edited this page Aug 3, 2022 · 2 revisions

AOCS is designed to provide access to all the major functionality in the program via a robust global environment. As a note, all major files in the server/ folder are loaded at once before operation. These may return a table or object that is assigned to the global environment using the filename, or change the global environment itself (Which only env.lua, compat.lua, and arg.lua do.)

Global Tables

process

A name hold-over from AOLS2. Process is responsible for the core logic of the program.

protocol

An intermediary class that reads and sends in the protocol of each client. It currently handles the AO2 protocol with support for websockets. Support for other protocols is planned.

server

The object responsible for managing connections and the sending and receiving of packets. It sends client sockets into both Protocol and Process to

data

Internal module for the reading and writing of server data.

log

Internal module for the printing and recording of messages on the console.

socket, mime

Modules from luasocket used for the program.

bit, sha1

The libraries which were included for handling binary data present in the websocket protocol. BitOp Documentation


Global Functions


Clone this wiki locally