public class OsfwWorker extends Object implements Runnable
As part of the simple firewall test, the Server must try to connect to the Client's ephemeral port and send a TEST_MSG message containing a pre-defined string "Simple firewall test" of 20 chars using this newly created connection. This class implements this functionality. The result of the test is set back into the Tcpbw100._iS2cSFWResult variable (using setter methods) for the test results to be interpreted later
Constructor and Description |
---|
OsfwWorker(ServerSocket srvSocketParam,
int iParamTestTime)
Constructor
|
OsfwWorker(ServerSocket srvSocketParam,
int iParamTestTime,
Tcpbw100 _localParam)
Constructor accepting Tcpbw100 parameter
|
Modifier and Type | Method and Description |
---|---|
void |
finalize()
Make current thread sleep for 1000 ms
|
void |
run()
run() method of this SFW Worker thread.
|
OsfwWorker(ServerSocket srvSocketParam, int iParamTestTime)
srvSocketParam
- Socket used to transmit protocol messagesiParamTestTime
- Test time duration to wait for message from serverOsfwWorker(ServerSocket srvSocketParam, int iParamTestTime, Tcpbw100 _localParam)
srvSocketParam
- Socket on which to accept connectionsiParamTestTime
- Test time duration to wait for message from server_localParam
- Applet object used to set the result of the S->C firewall testpublic void finalize()
public void run()