# Packages
Package bnet implements a mocked BNCS client that can be used to interact with BNCS servers.
Package chat implements the official classic Battle.net chat API.
Package dummy implements a mocked Warcraft III game client that can be used to add dummy players to lobbies.
Package lan implements a mocked Warcraft III LAN client that can be used to discover local games.
Package lobby implements a mocked Warcraft III game server that can be used to host lobbies.
Package peer implements a mocked Warcraft III client that can be used to manage peer connections in lobbies.
# Functions
Deadline for given timeout.
IsCloseError checks if err indicates a (cleanly) closed connection.
IsRefusedError checks if err indicates a refused connection.
IsSysCallError checks if error is one of syscall.Errno.
IsTemporary checks is error is temporary.
IsTimeout checks is error is timeout.
IsUnexpectedCloseError checks if err indicates an unexpectedly closed connection.
IsUseClosedNetworkError checks if net.error is poll.ErrNetClosed.
NewBNCSConn returns conn wrapped in BNCSConn.
NewCAPIConn returns conn wrapped in CAPIConn.
NewW3GSConn returns conn wrapped in W3GSConn.
NewW3GSPacketConn returns conn wrapped in W3GSPacketConn.
Topic literal.
UnnestError retrieves the innermost error.
# Constants
NoTimeout constant to read/write without deadline.
WSAECONNABORTED is ECONNABORTED on Windows.
WSAECONNREFUSED is ECONNREFUSED on Windows.
WSAECONNRESET is ECONNRESET on Windows.
WSAENOTCONN is ENOTCONN on Windows.
WSAESHUTDOWN is ESHUTDOWN on Windows.
# Variables
W3GSBroadcastAddr is used to broadcast W3GS packets to LAN.
# Structs
AsyncError keeps track of where a non-fatal asynchronous error orignated.
BNCSConn manages a TCP connection that transfers BNCS packets from/to client.
CAPIConn manages a websocket connection that processes CAPI requests.
Event structure passed to event handlers.
EventEmitter is an event emitter based on argument types For every type, a listener can register callbacks.
EventID identifies a single event handler.
RunStart event.
RunStop event.
RWMutex implements a read-preferring readers–writer lock.
W3GSConn manages a TCP connection that transfers W3GS packets.
W3GSPacketConn manages a UDP connection that transfers W3GS packets.
# Type aliases
EventHandler callback function.