Added, partial SendLoop, RecvLoop and HandlingLoop.
Minor fixes.
Updated RecvLoop, SendLoop.

test it ? debug it ?