|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--com.objexcel.irc.DCCConnection
dccconnection creates and manages a socket connection for a dcc. It handles file transfers as well as chats.
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Method Summary | |
static DCCConnection |
acceptDCCChat(IRCController controller,
long address,
int port,
boolean bStartNow,
java.lang.String localHost)
create a dcc connection to accept a chat |
static DCCConnection |
acceptDCCSend(long address,
int port,
java.io.File file,
boolean bStartNow,
java.lang.String localHost)
create a dcc connection to accept a sent file |
void |
addDCCEventListener(DCCEventListener l)
|
void |
connect()
|
void |
disconnect()
|
long |
getAddress()
|
java.io.File |
getFile()
file being sent/received |
java.net.InetAddress |
getLocalHost()
|
java.io.OutputStream |
getOutputStream()
OuputStreamLocator interface |
int |
getPort()
|
Sender |
getSender()
|
boolean |
isConnected()
true if there is a connection |
void |
postMessage(java.lang.String err,
java.lang.Throwable e)
|
void |
processEvent(java.awt.AWTEvent aevent)
|
void |
removeDCCEventListener(DCCEventListener l)
|
void |
setFile(java.io.File f)
|
static DCCConnection |
startDCCChat(IRCController controller,
java.lang.String localHost)
create a dcc connection to offer a chat |
static DCCConnection |
startDCCSend(java.io.File f,
java.lang.String localHost)
create a dcc connection to offer a file |
boolean |
wasStarted()
true if the connection was ever attempted (it may not have been accepted, it may have been cancelled but was it started? |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addNotify,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
contains,
contains,
createImage,
createImage,
deliverEvent,
disable,
dispatchEvent,
doLayout,
enable,
enable,
enableInputMethods,
getAlignmentX,
getAlignmentY,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentAt,
getComponentAt,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocation,
getLocationOnScreen,
getMaximumSize,
getMinimumSize,
getName,
getParent,
getPeer,
getPreferredSize,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
invalidate,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
layout,
list,
list,
list,
list,
list,
locate,
location,
lostFocus,
minimumSize,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paint,
paintAll,
postEvent,
preferredSize,
prepareImage,
prepareImage,
print,
printAll,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removeNotify,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setEnabled,
setFont,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus,
update,
validate |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public static DCCConnection acceptDCCChat(IRCController controller, long address, int port, boolean bStartNow, java.lang.String localHost)
localHost
- can be nullpublic static DCCConnection acceptDCCSend(long address, int port, java.io.File file, boolean bStartNow, java.lang.String localHost)
localHost
- can be nullpublic static DCCConnection startDCCChat(IRCController controller, java.lang.String localHost)
localHost
- can be nullpublic static DCCConnection startDCCSend(java.io.File f, java.lang.String localHost)
localHost
- can be nullpublic Sender getSender()
public int getPort()
public long getAddress()
public void connect()
public void disconnect()
public java.io.File getFile()
public void setFile(java.io.File f)
public boolean isConnected()
public boolean wasStarted()
public java.io.OutputStream getOutputStream() throws java.io.IOException
public void postMessage(java.lang.String err, java.lang.Throwable e)
public void processEvent(java.awt.AWTEvent aevent)
public void addDCCEventListener(DCCEventListener l)
public void removeDCCEventListener(DCCEventListener l)
public java.net.InetAddress getLocalHost()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |