Class SocketConnectedEvent

  extended by
      extended by
All Implemented Interfaces:
Event, ISocketConnectedEvent, ISocketEvent

public class SocketConnectedEvent
extends AbstractSocketEvent
implements ISocketConnectedEvent

Constructor Summary
SocketConnectedEvent(ISocketEventSource source, factorySocket, wrappedSocket)
Method Summary
protected  java.lang.String getEventName()
 void setSocket( socket)
          Sets a socket to be used by the app.
Methods inherited from class
getFactorySocket, getSocket, getSource, isSameFactorySocket, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface
getFactorySocket, getSocket, getSource, isSameFactorySocket

Constructor Detail


public SocketConnectedEvent(ISocketEventSource source,
Method Detail


protected java.lang.String getEventName()
Specified by:
getEventName in class AbstractSocketEvent


public void setSocket( socket)
Description copied from interface: ISocketConnectedEvent
Sets a socket to be used by the app.

If this method is not called ISocketEvent.getFactorySocket() and ISocketEvent.getSocket() will be the same. Otherwise ISocketEvent.getSocket() will return the passed in socket.

Specified by:
setSocket in interface ISocketConnectedEvent
setSocket in class AbstractSocketEvent