title: Reopen same socket for reuse C++
body: <p>I am having an application which listens on a particular RPC Port number say 10001 for connection with another device(hardware) using socket programming.</p>
  
  <p>Meanwhile the hardware device will be trying to establish connection to my IP and same port number 10001.</p>
  
  <p>So that way my application and the hardware are connected. Now assume i disconnect the network cable from my machine, my application would still be listening on port number 10001, however it wont receive any connection.</p>
  
  <p>Now if i reconnect the network again then is it possible for me to reuse the same socket which i was using earlier for communicaiton with the hardware.</p>
  
  <p>Do i sound confusing</p>
  
  <p>Thanks </p>