1 28 29 package com.caucho.vfs; 30 31 import java.io.IOException ; 32 import java.net.InetAddress ; 33 import java.nio.channels.Selector ; 34 35 38 abstract public class QServerSocket { 39 public void setTcpNoDelay(boolean delay) 40 { 41 } 42 43 public boolean isTcpNoDelay() 44 { 45 return false; 46 } 47 48 public boolean isJNI() 49 { 50 return false; 51 } 52 53 public boolean setSaveOnExec() 54 { 55 return false; 56 } 57 58 public int getSystemFD() 59 { 60 return -1; 61 } 62 63 66 public void setListenBacklog(int backlog) 67 { 68 } 69 70 73 abstract public void setConnectionSocketTimeout(int ms); 74 75 abstract public boolean accept(QSocket socket) 76 throws IOException ; 77 78 abstract public QSocket createSocket() 79 throws IOException ; 80 81 abstract public InetAddress getLocalAddress(); 82 83 abstract public int getLocalPort(); 84 85 public Selector getSelector() 86 { 87 return null; 88 } 89 90 public boolean isClosed() 91 { 92 return false; 93 } 94 95 abstract public void close() 96 throws IOException ; 97 } 98 99 | Popular Tags |