tcp listener and network layer

Add tcp lestener and network layer