gore-and-ash-network-1.2.0.0: Core module for Gore&Ash engine with low level network API

Copyright(c) Anton Gushcha, 2015-2016
LicenseBSD3
Maintainerncrashed@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Game.GoreAndAsh.Network.State

Description

 

Synopsis

Documentation

data NetworkState s Source

Inner state of network layer

s
- State of next module, the states are chained via nesting.

Instances

type Host = Ptr Host Source

Local endpoint

type Peer = Ptr Peer Source

Remote endpoint

newtype ChannelID Source

Wrapper for channel index

Constructors

ChannelID Word8 

emptyNetworkState :: s -> NetworkState s Source

Creates initial state