全パッケージ クラス階層 このパッケージ 前項目 次項目 インデックス
java.lang.Object | +----java.net.SocketImpl
SocketImpl は、ソケットを実際に実装するすべてのクラスに共通のスーパークラスです。クライアントソケットとサーバソケットの両方を作成する際に使用されます。
 「普通の」ソケットは各メソッドをまったく記述のとおりに実装します。ファイアウォールやプロクシは使用しません。
 
 address
	address
   fd
	fd
   localport
	localport
   port
	port
   
 SocketImpl()
	SocketImpl()
   
 accept(SocketImpl)
	accept(SocketImpl)
   available()
	available()
   bind(InetAddress, int)
	bind(InetAddress, int)
   close()
	close()
   connect(InetAddress, int)
	connect(InetAddress, int)
   connect(String, int)
	connect(String, int)
   create(boolean)
	create(boolean)
   getFileDescriptor()
	getFileDescriptor()
  fd フィールド値を返す。
   getInetAddress()
	getInetAddress()
  address フィールド値を返す。
   getInputStream()
	getInputStream()
   getLocalPort()
	getLocalPort()
  localport フィールド値を返す。
   getOption(int)
	getOption(int)
   getOutputStream()
	getOutputStream()
   getPort()
	getPort()
  port フィールド値を返す。
   listen(int)
	listen(int)
  count 引数の値に設定する。
   setOption(int, Object)
	setOption(int, Object)
   toString()
	toString()
  String として返す。
 
 fd
fd
protected FileDescriptor fd
 address
address
protected InetAddress address
 port
port
protected int port
 localport
localport
protected int localport
 
 SocketImpl
SocketImpl
public SocketImpl()
 
 create
create
protected abstract void create(boolean stream) throws IOException
true を指定するとストリームソケットが作成され、それ以外の場合はデータグラムソケットが作成される
     connect
connect
  protected abstract void connect(String host,
                                  int port) throws IOException
 connect
connect
  protected abstract void connect(InetAddress address,
                                  int port) throws IOException
 bind
bind
  protected abstract void bind(InetAddress host,
                               int port) throws IOException
 listen
listen
protected abstract void listen(int backlog) throws IOException
count 引数の値に設定します。待ち行列が満杯のときに接続要求があると、接続は拒否されます。
 accept
accept
protected abstract void accept(SocketImpl s) throws IOException
 getInputStream
getInputStream
protected abstract InputStream getInputStream() throws IOException
 getOutputStream
getOutputStream
protected abstract OutputStream getOutputStream() throws IOException
 available
available
protected abstract int available() throws IOException
 close
close
protected abstract void close() throws IOException
 getFileDescriptor
getFileDescriptor
protected FileDescriptor getFileDescriptor()
fd フィールド値を返します。
fd フィールド値
     getInetAddress
getInetAddress
protected InetAddress getInetAddress()
address フィールド値を返します。
address フィールド値
     getPort
getPort
protected int getPort()
port フィールド値を返します。
port フィールド値
     getLocalPort
getLocalPort
protected int getLocalPort()
localport フィールド値を返します。
localport フィールド値
     toString
toString
public String toString()
String として返します。
全パッケージ クラス階層 このパッケージ 前項目 次項目 インデックス