38 |
|
|
39 |
package gnu.CORBA.GIOP; |
package gnu.CORBA.GIOP; |
40 |
|
|
41 |
import gnu.CORBA.IOR; |
import gnu.CORBA.Minor; |
42 |
|
|
43 |
import org.omg.CORBA.MARSHAL; |
import org.omg.CORBA.MARSHAL; |
44 |
|
|
45 |
import java.io.IOException; |
import java.io.IOException; |
46 |
import java.io.OutputStream; |
import java.io.OutputStream; |
47 |
|
|
|
import java.net.Socket; |
|
|
|
|
48 |
/** |
/** |
49 |
* The explicit command to close the connection. |
* The explicit command to close the connection. |
50 |
* |
* |
58 |
public class CloseMessage |
public class CloseMessage |
59 |
extends MessageHeader |
extends MessageHeader |
60 |
{ |
{ |
61 |
|
/** |
62 |
|
* Use serialVersionUID for interoperability. |
63 |
|
*/ |
64 |
|
private static final long serialVersionUID = 1; |
65 |
|
|
66 |
/** |
/** |
67 |
* The singleton close message is typically enough, despite new |
* The singleton close message is typically enough, despite new |
68 |
* instances may be instantiated if the specific version field |
* instances may be instantiated if the specific version field |
98 |
catch (IOException ex) |
catch (IOException ex) |
99 |
{ |
{ |
100 |
MARSHAL m = new MARSHAL("Unable to flush the stream"); |
MARSHAL m = new MARSHAL("Unable to flush the stream"); |
101 |
|
m.minor = Minor.Header; |
102 |
m.initCause(ex); |
m.initCause(ex); |
103 |
throw m; |
throw m; |
104 |
} |
} |