1
0
mirror of https://github.com/ubf/ubf.git synced 2026-04-16 09:45:11 +00:00
Files
ubf/doc/contract_driver.md
Joseph Wayne Norton 39468d05e2 Update docs
2013-03-26 12:41:39 +09:00

1.3 KiB

Module contract_driver

Generic protocol driver process for protocol sessions.

. __This module defines the `contract_driver` behaviour.__

Required callback functions: `start/1`, `start/2`, `init/1`, `init/2`, `encode/3`, `decode/4`.

Function Index

behaviour_info/1
loop/5
loop/6
relay/3
start/3

Function Details

behaviour_info/1

behaviour_info(Other) -> any()

loop/5

loop(Module, Contract, Options, Pid, Socket) -> any()

loop/6

loop(Module, Contract, Options, Pid, Socket, Timeout) -> any()

relay/3

relay(Module, Pid, Pid1) -> any()

start/3

start(Module, Contract, Options) -> any()