/** Creates a network scan over the specified port */ public NetScan(TransactionId tid, TupleDesc td, int port) { try { this.tid = tid; this.td = td; this.port = port; serverSocket = Utilities.createServerSocket(port); } catch (IOException ioe) { ioe.printStackTrace(); closeConnection(); throw new RuntimeException(ioe); } }