... TớnhTrang 18LP TRèNH MNG TRấN JAVA Socket class Class mụ tv socket To mt socket Socket( InetAddress address, int port) Socket( String host, int port) Socket( InetAddress address, int port, ... JAVAServerSocket class Cỏc phng thc trong ServerSocket Socket accept() throws IOException : Lng nghe mt kt ni n socket ny v chp nhn nú. void close() throws IOException : úng socket. InetAddress ... 19LP TRèNH MNG TRấN JAVA Socket class (tip theo) Ly thụng tin v mt socket InetAddress getInetAddress() : tr v a ch m socket kt nin. int getPort() : tr v a ch m socket kt ni n. InetAddress...