public void init(String applet_dir,String webserver_rootDir); This will be called when SAS starts. public void initSession(InetAddress applet_addr, int applet_port); This will be called when a new session is opened public int open(int port); This will be called when the client opens a UDP port. Typically, the port is 0, which implies a system assigned UDP port. For exceptional cases, if listening for TRAP or SNMP PDUs, a specific port can be specified. The return value will be used, to allow for custom port assignment if needed. public SnmpPDU requestPDU(SnmpPDU pdu); This is the PDU being sent to the agent, which can be modified as required by the custom class. public SnmpPDU responsePDU(SnmpPDU pdu); This is the response PDU from the agent, which can be modified as required. public byte[] clientCall(byte data[]); This is to allow the applet client to invoke a method on the server. A corresponding method will be provided in the SASClient class. Any arguments and return values, will need to be serialized. public void closeSession(InetAddress applet_addr, int applet_port); This is called when an applet session is closed.
public void init(InetAddress applet_addr, int applet_port); This will be called when a new session is opened public int open(int port); This will be called when the client opens a UDP port. Typically, the port is 0, which implies a system assigned UDP port. For exceptional cases, if listening for TRAP or SNMP PDUs, a specific port can be specified. The return value will be used, to allow for custom port assignment if needed. public SnmpPDU requestPDU(SnmpPDU pdu); This is the PDU being sent to the agent, which can be modified as required by the custom class. public SnmpPDU responsePDU(SnmpPDU pdu); This is the response PDU from the agent, which can be modified as required. public byte[] clientCall(byte data[]); This is to allow the applet client to invoke a method on the server. A corresponding method will be provided in the SASClient class. Any arguments and return values, will need to be serialized. public void closeSession(); This is called when the session is closed. The object will be de-referenced and garbage collected after this, if all of it's threads are stopped.
Specify dir path (path can be specified in filename), create a directory delete a file. Corresponding methods were added to SASClient. createDir(String dir) Creates a directory with specified relative or absolute path. deleteDir(String dir) Deletes a directory with specified relative or absolute path. deleteFile(String file) Deletes a file with specified relative or absolute path.
Java is a trademark of Sun Microsystems, Inc.
Netscape and Netscape Navigator are trademarks of Netscape Communications Corporation.