|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--rath.msnm.ftp.VolatileTransferServer
¸Þ½ÅÁ®¿¡¼ ¼·Î ÆÄÀÏÀü¼ÛÀ» ÇÒ¶§, ¼Û½ÅÃø¿¡¼ ƯÁ¤ port¸¦ bindÇÏ°í »õ·Ó°Ô ¿¬°áÀ» ¸Î¾î ¸Þ½ÃÁö¸¦ ÁÖ°í ¹Þ´Âµ¥¿¡ »ç¿ëµÇ´Â serverÀÌ´Ù.
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Method Summary | |
void |
close()
|
protected void |
fireError(Throwable e)
ÆÄÀÏ Àü¼ÛµµÁß ¿¹±âÄ¡ ¸øÇÑ ¿¹¿Ü°¡ ¹ß»ýÇÏ¿´À»¶§, ºÒ·ÁÁø´Ù. |
protected void |
fireStart()
|
String |
getAuthCookie()
Á¢¼ÓµÈ ¼ö½ÅÀÚ°¡ ¿Ã¹Ù¸¥ ¼ö½ÅÀÚÀÎÁö °Ë»çÇϱâ À§ÇÑ ÀÎÁõÄí±â°ªÀ» ¹ÝȯÇÑ´Ù. |
int |
getCommitPercent()
½ÇÁ¦·Î ¼Û/¼ö½ÅµÈ ¹ÙÀÌÆ® Å©±â¸¦ ¾ò¾î¿Â´Ù. |
String |
getCookie()
|
File |
getFile()
Àü¼ÛµÇ´Â ÆÄÀϰ´Ã¼¸¦ ¹ÝȯÇÑ´Ù. |
String |
getFilename()
¼Û/¼ö½ÅµÇ°í ÀÖ´Â ÆÄÀÏÀÇ À̸§À» ¾ò¾î¿Â´Ù. |
static VolatileTransferServer |
getInstance(MSNMessenger msn,
ToSendFile tosend,
FileTransferMessage msg)
VolatileTransferServerÀÇ ÀνºÅϽº¸¦ »ý¼ºÇÑ´Ù. |
int |
getPort()
ÀÌ ¼¹ö°¡ ÆÄÀϼ۽ſ¡ »ç¿ëÇÏ´Â port¹øÈ£¸¦ ¹ÝȯÇÑ´Ù. |
int |
getPostedLength()
ÇöÀç ½ÇÁ¦·Î »ó´ëpeer¿¡ Àü¼ÛµÈ byteÀÇ ¼ö¸¦ ¹ÝȯÇÑ´Ù. |
String |
getReceiverName()
ÆÄÀÏÀ» ¼ö½Å¹Þ´Â »ç¶÷ÀÇ LoginNameÀ» ¹ÝȯÇÑ´Ù. |
protected void |
makeConnection()
ÁÖ¾îÁø ServerSocketÀ¸·Î ¼³Á¤µÈ port¸¦ bindÇÏ°í °ü·Ã StreamÀ» »ý¼ºÇÑ´Ù. |
void |
processMessage(String header,
String body)
|
void |
run()
Thread main loop ó¸® ºÎºÐÀÌ´Ù. |
void |
sendFileContent()
|
void |
sendMessage(String header,
String body)
|
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static VolatileTransferServer getInstance(MSNMessenger msn,
ToSendFile tosend,
FileTransferMessage msg)
throws FileNotFoundException
FileNotFoundExceptionpublic int getPort()
public String getReceiverName()
public String getAuthCookie()
public String getCookie()
public File getFile()
public String getFilename()
VolatileTransfer
getFilename in interface VolatileTransferpublic int getPostedLength()
public int getCommitPercent()
VolatileTransfer
getCommitPercent in interface VolatileTransferpublic final void run()
run in interface Runnablerun in class Thread
public void processMessage(String header,
String body)
throws Throwable
Throwable
public void sendMessage(String header,
String body)
throws IOException
IOException
public void sendFileContent()
throws IOException,
InterruptedException
IOException
InterruptedExceptionpublic void close()
protected void fireStart()
protected void fireError(Throwable e)
protected void makeConnection()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||