SQLFire 1.0.1

com.vmware.sqlfire
Interface NetworkInterface.ConnectionListener

Enclosing interface:
NetworkInterface

public static interface NetworkInterface.ConnectionListener

A listener which can be registered on NetworkInterface in order to receive events about connections created or destroyed for a client on the DRDA network server.


Method Summary
 void close()
          Close any artifacts of this connection listener.
 void connectionClosed(Socket clientSocket, int connectionNumber)
          Indicates that the a connection to this network server has been closed.
 void connectionOpened(Socket clientSocket, int connectionNumber)
          Indicates that a new connection has been opened to this network server.
 

Method Detail

connectionOpened

void connectionOpened(Socket clientSocket,
                      int connectionNumber)
Indicates that a new connection has been opened to this network server.

Parameters:
clientSocket - the Socket object created for the client
connectionNumber - the connection number for this client connection that gets incremented for every new client connection

connectionClosed

void connectionClosed(Socket clientSocket,
                      int connectionNumber)
Indicates that the a connection to this network server has been closed.

Parameters:
clientSocket - the Socket object created for the client
connectionNumber - the connection number for this client connection that gets incremented for every new client connection

close

void close()
Close any artifacts of this connection listener. Invoked when the network server has been stopped cleanly.


SQLFire 1.0.1

Copyright © 2010-2011 VMware, Inc. All rights reserved.