Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
package com.marginallyclever.communications;
import java.util.EventObject;
public class NetworkSessionEvent extends EventObject {
// connection has been opened
public static final int CONNECTION_OPENED = 1;
// connection has closed
public static final int CONNECTION_CLOSED = 2;
// connection cannot be opened
public static final int CONNECTION_ERROR = 3;
// something has arrived. Data is (String)data.
public static final int DATA_RECEIVED = 4;
// something has just been sent. Data is (String)data.
public static final int DATA_SENT = 5;
public int flag;
public Object data;
public NetworkSessionEvent(Object source, int flag, Object data) {
super(source);
this.flag = flag;
this.data = data;
}
}
74469e1ccThis file is pinned to the selected release. Download the original to open it in your design tool.