title: FIN vs RST in TCP connections
body: <p>The way I understand this, there are 2 ways to close TCP connection:</p>
  
  <ul>
  <li>send FIN flag</li>
  <li>send RST flag</li>
  </ul>
  
  <p>RST causes immediate connection termination, while in FIN you get a confirmation.</p>
  
  <p>Do I understand this right, and are there any other distinctions between the two? Can those 2 flags be used together?</p>