home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 49 / cda49.iso / VNULabs / BrownOrifice / BOHTTPD-0.2 / BOServerSocket.java < prev    next >
Encoding:
Java Source  |  2000-08-05  |  413 b   |  18 lines

  1. import java.io.IOException;
  2. import java.lang.SecurityException;
  3. import java.net.Socket;
  4. import java.net.ServerSocket;
  5.  
  6. public class BOServerSocket extends ServerSocket {
  7.   public BOServerSocket(int port) throws IOException {
  8.     super(port);
  9.   }
  10.  
  11.   public BOSocket accept_any() throws IOException {
  12.     BOSocket s = new BOSocket();
  13.     try { implAccept(s); } catch (SecurityException se) { }
  14.     return s;
  15.   }
  16. }
  17.  
  18.