rath.msnm
Class DispatchProcessor

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--rath.msnm.AbstractProcessor
              |
              +--rath.msnm.DispatchProcessor
All Implemented Interfaces:
Runnable

public class DispatchProcessor
extends AbstractProcessor

DS 서버와 version negotiation 부분을 하고 접속해야할 NS 서버의 위치를 알려주고 생을 마감하는 DispatchProcessor 클래스이다.

Version:
1.0.000, 2001/11/07
Author:
Jang-Ho Hwang, rath@xrath.com

Field Summary
 
Fields inherited from class rath.msnm.AbstractProcessor
callbackMap, in, isLive, msn, out, socket
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DispatchProcessor(MSNMessenger msn, ServerInfo info)
           
 
Method Summary
 void cleanUp()
          스레드가 종료되고 스트림을 닫기 직전에 호출된다.
 void init()
          DS와의 연결이 맺어졌으니, 통신을 시작하기 위해 Version 정보를 보내는 일을 하게 된다.
 void processINF(IncomingMessage msg)
           
 void processVER(IncomingMessage msg)
           
 void processXFR(IncomingMessage msg)
           
 
Methods inherited from class rath.msnm.AbstractProcessor
getCurrentTransactionId, getServerName, isAutoOutSend, lookupMethod, makeConnection, markTransactionId, processError, processMessage, processNotifyMessage, registerCallback, removeInfiniteTransactionId, run, sendCHLResponse, sendMessage, sendMimeMessage, setAutoOutSend, setServerName
 
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
 

Constructor Detail

DispatchProcessor

public DispatchProcessor(MSNMessenger msn,
                         ServerInfo info)
Method Detail

init

public void init()
          throws IOException
DS와의 연결이 맺어졌으니, 통신을 시작하기 위해 Version 정보를 보내는 일을 하게 된다.

Specified by:
init in class AbstractProcessor
IOException

processVER

public void processVER(IncomingMessage msg)
                throws Exception
Exception

processINF

public void processINF(IncomingMessage msg)
                throws Exception
Exception

processXFR

public void processXFR(IncomingMessage msg)
                throws Exception
Exception

cleanUp

public void cleanUp()
Description copied from class: AbstractProcessor
스레드가 종료되고 스트림을 닫기 직전에 호출된다.

Specified by:
cleanUp in class AbstractProcessor