diff options
author | pjain <pjain@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-03-10 03:52:32 +0000 |
---|---|---|
committer | pjain <pjain@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-03-10 03:52:32 +0000 |
commit | 012789af20f884b3a727b1862eed599a9954ccd4 (patch) | |
tree | 9e916d88a6a05947770dade304b791e430583e9c /java | |
parent | 707a2b3376302505b3bbb70f187e75555580b0d3 (diff) | |
download | ATCD-012789af20f884b3a727b1862eed599a9954ccd4.tar.gz |
Added two new classes/files, namely IOCntlCmds and IOCntlMsg.
Diffstat (limited to 'java')
-rw-r--r-- | java/src/IOCntlCmds.java | 34 | ||||
-rw-r--r-- | java/src/IOCntlMsg.java | 123 |
2 files changed, 157 insertions, 0 deletions
diff --git a/java/src/IOCntlCmds.java b/java/src/IOCntlCmds.java new file mode 100644 index 00000000000..9512a02bc35 --- /dev/null +++ b/java/src/IOCntlCmds.java @@ -0,0 +1,34 @@ +/************************************************* + * + * = PACKAGE + * ACE.ASX + * + * = FILENAME + * TaskFlags.java + * + *@author Prashant Jain + * + *************************************************/ +package ACE.ASX; + +public abstract class IOCntlCmds +{ + /** Set the low water mark. */ + public static final int SET_LWM = 1; + + /** Get the low water mark. */ + public static final int GET_LWM = 2; + + /** Set the high water mark. */ + public static final int SET_HWM = 3; + + /** Get the high water mark. */ + public static final int GET_HWM = 4; + + /** Link modules */ + public static final int MOD_LINK = 5; + + /** Unlink modules */ + public static final int MOD_UNLINK = 6; + +} diff --git a/java/src/IOCntlMsg.java b/java/src/IOCntlMsg.java new file mode 100644 index 00000000000..b33b3c5d31a --- /dev/null +++ b/java/src/IOCntlMsg.java @@ -0,0 +1,123 @@ +/************************************************* + * + * = PACKAGE + * ACE.ASX + * + * = FILENAME + * IOCntlMsg.java + * + *@author Prashant Jain + * + *************************************************/ +package ACE.ASX; + +import ACE.OS.*; + +/** + * <hr> + * <h2>SYNOPSIS</h2> + *<blockquote> + * Data format for IOCTL messages + *</blockquote> + */ +public class IOCntlMsg +{ + + // = Initialization method. + + /* + * Initialize the control message. + *@param c IOCntlCmd for the control message. Note that this should + * be of type IOCntlCmds + */ + public IOCntlMsg (int c) + { + this.cmd_ = c; + } + + // = Get/set methods + + /* + * Get the command. + *@return the command. + */ + public int cmd () + { + return this.cmd_; + } + + /* + * Set the command. + *@param c the command. + */ + public void cmd (int c) + { + this.cmd_ = c; + } + + /* + * Get the count. + *@return the count. + */ + public int count () + { + return this.count_; + } + + /* + * Set the count. + *@param c the count. + */ + public void count (int c) + { + this.count_ = c; + } + + /* + * Get the error. + *@return the error. + */ + public int error () + { + return this.error_; + } + + /* + * Set the error. + *@param e the error. + */ + public void error (int e) + { + this.error_ = e; + } + + /* + * Get the return value. + *@return the return value. + */ + public int rval () + { + return this.rval_; + } + + /* + * Set the return value. + *@param r the return value. + */ + public void rval (int r) + { + this.rval_ = r; + } + + private int cmd_; + // Command. + + private int count_; + // Count. + + private int error_; + // Error. + + private int rval_; + // Return value +} |