SocketInputAdapter with parser and changed from multi-thread application to one-thread