edu.utah.janosvm.kit.comm.jsi
Class NativePlexChannel
java.lang.Object
|
+--edu.utah.janosvm.kit.comm.jsi.NativePlexChannel
- All Implemented Interfaces:
- JSIChannel
- public final class NativePlexChannel
- extends java.lang.Object
- implements JSIChannel
Method Summary |
(package private) static void |
()
|
(package private) static void |
bindNativeClass()
|
void |
disconnect()
Disconnect the channel from its peer. |
protected void |
finalize()
|
private void |
init(java.lang.String protocol)
|
byte[] |
recvMessage()
Receive a flattened message from the peer. |
void |
replyMessage(byte[] msg)
Send a reply message to the peer. |
void |
sendMessage(byte[] msg)
Send a message to the peer. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0 |
NativePlexChannel
public NativePlexChannel(java.lang.String protocol)
throws java.io.IOException
bindNativeClass
static void bindNativeClass()
static void ()
init
private void init(java.lang.String protocol)
throws java.io.IOException
sendMessage
public void sendMessage(byte[] msg)
throws java.io.IOException
- Description copied from interface:
JSIChannel
- Send a message to the peer.
- Specified by:
sendMessage
in interface JSIChannel
- Following copied from interface:
edu.utah.janosvm.kit.comm.jsi.JSIChannel
- Parameters:
msg
- A flattened JSI message.- Throws:
Throws
- an IOException if something went wrong.
replyMessage
public void replyMessage(byte[] msg)
throws java.io.IOException
- Description copied from interface:
JSIChannel
- Send a reply message to the peer.
- Specified by:
replyMessage
in interface JSIChannel
- Following copied from interface:
edu.utah.janosvm.kit.comm.jsi.JSIChannel
- Parameters:
msg
- A flattened JSI message.- Throws:
Throws
- an IOException if something went wrong.
recvMessage
public byte[] recvMessage()
throws java.io.IOException
- Description copied from interface:
JSIChannel
- Receive a flattened message from the peer.
- Specified by:
recvMessage
in interface JSIChannel
- Following copied from interface:
edu.utah.janosvm.kit.comm.jsi.JSIChannel
- Returns:
- The flattened message or null if the channel is no longer
connected.
- Throws:
Throws
- an IOException if something went wrong.
disconnect
public void disconnect()
- Description copied from interface:
JSIChannel
- Disconnect the channel from its peer.
- Specified by:
disconnect
in interface JSIChannel
finalize
protected void finalize()
- Overrides:
finalize
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003