method to passively open a connection . it takes a port number as an argument and , acting as a server , listens on the given port number for an incoming connection request . when received , it establishes the connection . again , once the connection has been established , input and output streams are extracted from the socket to enable the transmission and reception of bytes . the method will block until a connection is established . concode_field_sep OutputStream output concode_elem_sep InputStream input concode_elem_sep Socket socket concode_field_sep ByteArrayOutputStream receive concode_elem_sep void disconnect concode_elem_sep void send concode_elem_sep void connect
void function ( int arg0 ) { ServerSocket loc0 = new ServerSocket ( arg0 ) ; socket = loc0 . accept ( ) ; input = socket . getInputStream ( ) ; output = socket . getOutputStream ( ) ; loc0 . close ( ) ; }