add buffered tcp connectionapi & memory management api & simple memory allocator