Trying to write a program for raw tcp socket