[erlang-questions] TCP libraries in Erlang/OTP?

Ulf Wiger ulf.wiger@REDACTED
Wed Sep 23 17:43:21 CEST 2009

Zhiqian Yuan wrote:
> Hi everyone, we're now doing a project on IMS which is to implemented by 
> erlang. And now we're on the HSS part, our teammates are trying to write 
> the protocol stack of Diameter, but we don't know if we need to 
> implement the TCP protocol as well. So we wonder if there're any 
> libraries avaible in the OTP framework, so that we can encapsulate the 
> Diameter package. Thanks.


That is a pretty big task for a student project, at least if you
are aiming at a working HSS - or is the goal to write an _entire_
IMS system?

Fortunately, you don't also have to write a TCP stack. :)

The gen_tcp module will do quite nicely. However, if you want to be
true to the IMS specification, it is really SCTP you should be
looking at. The SCTP support in OTP is not quite ready for this
sort of thing, unless I've missed some important development, but
given that you're in a student project, it might be good enough
for your purposes.

You may want to take a sneak peek at this:

It doesn't have Diameter support.

Ulf W
Ulf Wiger
CTO, Erlang Training & Consulting Ltd

More information about the erlang-questions mailing list