Holumbus-Storage-0.1.0: a distributed storage system

Portabilityportable
Stabilityexperimental
MaintainerStefan Schmidt (stefanschmidt@web.de)

Holumbus.FileSystem.Messages

Contents

Description

Version : 0.1

This module contains all message types which are exchanged between node and Controller.

Synopsis

Datatypes

Message Types from and to the Controller

Message Types from and to the Node

request an response handling

performPortAction

Arguments

:: (Show a, Binary a, Show b, Binary b, RspMsg b) 
=> Port a

request port

-> Stream b

response Stream

-> Int

timeout for the response in mikroseconds (1000000 = 1 sec) (0 = wait for ever)

-> a

request message

-> (b -> IO (Maybe c))

response handler

-> IO c 

Sends a request to the server (stream) and handles the response and all error cases. Very helpful when simulating a request response scheme with the mailboxes.