adding tcp_in basic

adding tcp_in basic functions