Module ppspp_have

Library for PPSPP over UDP, aka Swift protocol.

Description

This module implements a library of functions necessary to handle the wire-protocol of PPSPP over UDP, including functions for encoding and decoding messages.

Data Types

have()

abstract datatype: have()

Function Index

handle/1
pack/1
unpack/2unpack a have message.

Function Details

handle/1


handle(Message :: have()) -> any()

pack/1


pack(Message :: have()) -> binary()

unpack/2


unpack(Addressing_Method :: ppspp_chunk:addressing_method(),Message :: binary()) ->{have(), binary()}

unpack a have message

Deconstruct PPSPP UDP datagram into multiple erlang terms, including parsing any additional data within the same segment. Any parsing failure is fatal and will propagate back to the attempted datagram unpacking.