added tcb and some updates to socket(), accept() and connect()