<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Hi list,<br>
<br>
I find myself repeating code in several gen_server and gen_fsm
behavior based modules. These modules should all share about eight
functions, all doing exactly the same thing. On top of these
modules, more elaborate modules with common functions have to be
defined, adding four or so functions. To me, this is looking like
defining my own custom behaviors.<br>
I had a look at the implementation of the Erlang supervisor for
extending the gen_server behavior which gives enough information to
get something working. However, I have no glue how to extend the
gen_fsm behavior and keep the interface to defining states in the
new behavior.<br>
So, what I am looking for is some reference material on writing
custom behaviors on top of what Erlang central and the OTP
documentation offer. <br>
<br>
TIA,<br>
<br>
Frans<br>
<title></title>
<meta name="generator" content="LibreOffice 4.3.3.2 (Linux)">
<style type="text/css">
@page { margin: 0.79in }
p { margin-bottom: 0.1in; line-height: 120% }
</style>
</body>
</html>