public class FecServer extends Object implements Runnable
     Date:     11 APR 2005
     Time:     1023:20
     Author:   Terry D. Norbraten
     Comments: New
     Date:     October 03, 2005
     Time:     2252
     Author:   Terry Norbraten
     Comments: Mod. to pass schema location to FecDecoder.  Now imports
               FecDecoder class from the xsbc1.4.jar.
     Date:     June 12, 2006
     Time:     0903
     Author:   Terry Norbraten
     Comments: Mod. to replace sysouts with log4j statements, rename relative
               path to AVCL schema location
   
 
workbench.xmlutilities| Modifier and Type | Field and Description | 
|---|---|
| static String | AVCLSCHEMALocation of AVCL schema for use by XSBC routines | 
| static int | DEFAULT_PORTLocal port designation | 
| static int | FEC_KDefault FEC Parameter K value | 
| static int | FEC_NDefault FEC Parameter N value | 
| static int | FEC_PACKET_SIZEDefault FEC Parameter packet size value | 
| protected int | fecK | 
| protected int | fecN | 
| protected int | fecPacketSize | 
| protected int | port | 
| Modifier and Type | Method and Description | 
|---|---|
| protected static FecServer | getInstance() | 
| static FecServer | getInstance(int port,
           int k,
           int n,
           int pSize)Returns a copy of the current server or a new one if it doesn't exist. | 
| void | run()On the fly thread FEC decoding routine | 
| void | stop()Closes the existing server socket and stops execution of the thread | 
public static final int DEFAULT_PORT
public static final int FEC_K
public static final int FEC_N
public static final int FEC_PACKET_SIZE
public static final String AVCLSCHEMA
protected int fecK
protected int fecN
protected int fecPacketSize
protected int port
public void stop()
public static FecServer getInstance(int port, int k, int n, int pSize) throws IOException
port - the port to receive UDP packets fromk - the FEC Parameter Kn - the FEC Parameter NpSize - the FEC Parameter packetSizeIOExceptionprotected static FecServer getInstance() throws IOException
IOException