Lisamaterjalide loend
Algne fail: vana_veeb/pjirc/doc/javadoc/irc/dcc/prv/DCCFileHandler.html.
========== START OF NAVBAR ==========
=========== END OF NAVBAR ===========
======== START OF CLASS DATA ========
irc.dcc.prv
Class DCCFileHandler
java.lang.Object
|
+--irc.IRCObject
|
+--irc.dcc.prv.DCCFileHandler
- All Implemented Interfaces:
- java.lang.Runnable
- public class DCCFileHandler
- extends IRCObject
- implements java.lang.Runnable
The dcc file handler. There is a handler for each file transfert.
|
Method Summary |
void |
close()
Close the current transfert. |
void |
receive(DCCFile file,
java.lang.String ip,
java.lang.String port,
java.lang.String size)
Receive the file. |
void |
run()
|
java.lang.String |
send(DCCFile file)
Send the file in passive mode. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DCCFileHandler
public DCCFileHandler(IRCConfiguration config,
java.lang.String remoteNick,
DCCFileClosingListener lis)
- Create a new DCCFileHandler.
- Parameters:
config - the global configuration.remoteNick - the remote nick.lis - the closing listener.
receive
public void receive(DCCFile file,
java.lang.String ip,
java.lang.String port,
java.lang.String size)
- Receive the file.
- Parameters:
file - the file to receive.ip - the remote ip.port - the remote port.size - the file size.
send
public java.lang.String send(DCCFile file)
- Send the file in passive mode.
- Parameters:
file - the file to send.
- Returns:
- the string to send to the remote peer to initiate the transfert.
run
public void run()
- Specified by:
run in interface java.lang.Runnable
close
public void close()
- Close the current transfert.