Note that the "Let's assume ..." comment in my previous email got only partially deleted. That comment line should be deleted completely: Serge Aleynikov wrote: > % Let's assume that the socket is created by > init([Socket]) -> > inet:setopts(Socket, [{active, once}, {packet, 4}, binary]), Serge