added sockSend and sockReceive methods
added stuff to read() and write()
renamed CorruptedPacketException to InvalidPacketException
added getters and setters to TCPSegment
added validatePacket method to tcb