SunSPOT API V6.0


com.sun.squawk.io.j2me.serversocket
Class ProtocolServerSocketConnection

java.lang.Object
  extended by com.sun.spot.io.j2me.socket.SocketConnection
      extended by com.sun.squawk.io.j2me.serversocket.ProtocolServerSocketConnection

public class ProtocolServerSocketConnection
extends SocketConnection


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.spot.io.j2me.socket.SocketConnection
SocketConnection.SocketInputStream
 
Field Summary
protected  DataInputStream acceptStream
           
protected  ProxyInitializer initializer
           
protected  boolean timeouts
           
 
Fields inherited from class com.sun.spot.io.j2me.socket.SocketConnection
basestationAddress, confirmStream, conn, connected, connections, DEFAULT_BASE_STATION_PORT, DO_REQUEST_LOCK, opens, PACKET_TYPE_INET_GET_BY_NAME_REQUEST, PACKET_TYPE_INET_GET_BY_NAME_RESPONSE, PACKET_TYPE_INET_GETLOCALHOST_REQUEST, PACKET_TYPE_INET_GETLOCALHOST_RESPONSE, PACKET_TYPE_KILL_REQUEST, PACKET_TYPE_KILL_RESPONSE, PACKET_TYPE_MULTICAST_PORT_REQUEST, PACKET_TYPE_MULTICAST_PORT_RESPONSE, PACKET_TYPE_PORT_REQUEST, PACKET_TYPE_PORT_RESPONSE, port, SOCKET_PROXY_BASE_STATION_ADDRESS_MANIFEST_PROPERTY, SOCKET_PROXY_BASE_STATION_PORT_MANIFEST_PROPERTY, SOCKET_PROXY_PROXY_DISCOVER_RADIUS_MANIFEST_PROPERTY, SPOT_GLOBALS_FIRST_DO_SOCKET_KEY
 
Constructor Summary
ProtocolServerSocketConnection(ProxyInitializer initializer, boolean timeouts)
           
 
Method Summary
 StreamConnection acceptAndOpen()
           
protected  void disconnect()
          Disconnect and close the SocketConnection.
 
Methods inherited from class com.sun.spot.io.j2me.socket.SocketConnection
close, doSocketProxyRequest, doSocketProxyRequestPrim, getAddressByHost, getInputStream, getLocalHost, getOutputStream, init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initializer

protected ProxyInitializer initializer

timeouts

protected boolean timeouts

acceptStream

protected DataInputStream acceptStream
Constructor Detail

ProtocolServerSocketConnection

public ProtocolServerSocketConnection(ProxyInitializer initializer,
                                      boolean timeouts)
                               throws IllegalArgumentException,
                                      IOException
Throws:
IllegalArgumentException
IOException
Method Detail

acceptAndOpen

public StreamConnection acceptAndOpen()
                               throws IOException
Throws:
IOException

disconnect

protected void disconnect()
                   throws IOException
Disconnect and close the SocketConnection.

Overrides:
disconnect in class SocketConnection
Throws:
IOException

SunSPOT API V6.0


Copyright © 2006-2010 Oracle. All Rights Reserved.