mkh.sip
Class T38Sender

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.comp.Component
          extended bydrcl.net.Module
              extended bydrcl.inet.application.SApplication
                  extended bydrcl.inet.application.ftp
                      extended bymkh.sip.T38Sender
All Implemented Interfaces:
drcl.comp.ActiveComponent, java.lang.Cloneable, drcl.ObjectCloneable, drcl.ObjectDuplicable, java.io.Serializable

public class T38Sender
extends drcl.inet.application.ftp

This class is a T.38 Sender (Basically an FTP Server). "helper" in SApplication.java Line 59 must be declared public and the file gets recompiled and stored in the class folder if one wants to compile the T38Sender.java

Version:
1.0, 14/07/2004
Author:
Masood Khosroshahy ( www.m-kh.info )
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class drcl.comp.Component
drcl.comp.Component.Locks
 
Field Summary
 drcl.comp.Port faxPort
           
 
Fields inherited from class drcl.inet.application.SApplication
helper
 
Fields inherited from class drcl.net.Module
downPort, PortGroup_DOWN, PortGroup_UP, timerPort, upPort
 
Fields inherited from class drcl.comp.Component
FLAG_COMPONENT_NOTIFICATION, FLAG_DEBUG_ENABLED, FLAG_DIRECT_OUTPUT_ENABLED, FLAG_ENABLED, FLAG_ERROR_ENABLED, FLAG_EVENT_ENABLED, FLAG_GARBAGE_DISPLAY_ENABLED, FLAG_GARBAGE_ENABLED, FLAG_PORT_NOTIFICATION, FLAG_STARTED, FLAG_STOPPED, FLAG_TRACE_ENABLED, FLAG_UNDEFINED_START, id, infoPort, locks, name, parent, PortGroup_DEFAULT_GROUP, PortGroup_EVENT, PortGroup_SERVICE, Root, Trace_DATA, Trace_SEND
 
Constructor Summary
T38Sender()
          Constructor.
 
Method Summary
 void duplicate(java.lang.Object source)
           
 java.lang.String info()
           
 void process(java.lang.Object data, drcl.comp.Port inPort)
          The process() method of drcl.inet.application.SApplication has been overridden.
 void reset()
           
 
Methods inherited from class drcl.inet.application.ftp
_start, setup
 
Methods inherited from class drcl.inet.application.SApplication
getInputStream, getOutputStream, interrupt, interruptReceive, receive, receive, receive, receive, send, send
 
Methods inherited from class drcl.net.Module
cancelTimeout, dataArriveAtDownPort, dataArriveAtUpPort, deliver, processOther, removeDefaultDownPort, removeDefaultUpPort, removeTimerPort, setTimeout, setTimeoutAt, timeout
 
Methods inherited from class drcl.comp.Component
_resume, _stop, addComponent, addComponent, addEventPort, addEventPort, addForkPort, addPort, addPort, addPort, addPort, addPort, addPort, addPort, addPort, addServerPort, addServerPort, cancelFork, componentAdded, componentRemoved, connect, containsComponent, containsComponent, containsPort, debug, disconnectAll, disconnectAllPeers, disconnectAllPorts, drop, drop, error, error, expose, exposeEventPorts, exposePort, exposePort, exposePort, exposePort, exposePort, findAvailable, findAvailable, findAvailable, finishing, fork, forkAt, getAllComponents, getAllPorts, getAllPorts, getAllWiresInside, getAllWiresInsideOut, getAllWiresOut, getComponent, getComponentFlag, getComponentFlag, getContract, getContractHT, getContractHT, getDebugFlagsInBinary, getDebugLevelNames, getForkManager, getID, getName, getParent, getPort, getPort, getRoot, getRuntime, getTime, iduplicate, isAncestorOf, isComponentNotificationEnabled, isContainer, isDebugEnabled, isDebugEnabledAt, isDirectlyRelatedTo, isDirectOutputEnabled, isEnabled, isErrorNoticeEnabled, isEventExportEnabled, isGarbageDisplayEnabled, isGarbageEnabled, isPortNotificationEnabled, isPortRemovable, isStarted, isStopped, isTraceEnabled, lock, notify, notifyAll, operate, portAdded, portRemoved, reboot, removeAll, removeAllComponents, removeAllPorts, removeAllPorts, removeComponent, removeComponent, removePort, removePort, removePort, resume, run, sduplicate, send, sendAt, setComponentFlag, setComponentFlag, setComponentNotificationEnabled, setContract, setDebugEnabled, setDebugEnabled, setDebugEnabledAt, setDebugEnabledAt, setDebugEnabledAt, setDirectOutputEnabled, setDirectOutputEnabled, setEnabled, setErrorNoticeEnabled, setErrorNoticeEnabled, setEventExportEnabled, setEventExportEnabled, setExecutionBoundary, setGarbageDisplayEnabled, setGarbageDisplayEnabled, setGarbageEnabled, setGarbageEnabled, setID, setID, setName, setPort, setPort, setPortNotificationEnabled, setPortRemovable, setRuntime, setTraceEnabled, setTraceEnabled, sleepFor, sleepUntil, stop, toString, unexpose, unlock, useLocalForkManager, useLocalForkManager, wait, yield
 
Methods inherited from class drcl.DrclObj
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

faxPort

public drcl.comp.Port faxPort
Constructor Detail

T38Sender

public T38Sender()
          throws java.io.IOException
Constructor. faxPort is initialized for listening to "Ready" notifications. To-be-sent fax (file) name is also set to "ToBeSentFax.JPG" (The to-be-sent fax has to have exactly this name and extention, otherwise the code has to be recompiled using the preferred names).

Method Detail

process

public void process(java.lang.Object data,
                    drcl.comp.Port inPort)
The process() method of drcl.inet.application.SApplication has been overridden. and "data" is first examined to see if it is a fax start notification from the user agent module and then if it's not, it is directed to the "helper" variable of SApplication.


reset

public void reset()

duplicate

public void duplicate(java.lang.Object source)

info

public java.lang.String info()