Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfrijters <jfrijters>2011-08-18 16:06:22 +0400
committerjfrijters <jfrijters>2011-08-18 16:06:22 +0400
commit4eef39b7c507d518eeb80fc570453e3682d6268d (patch)
tree94255f12ba2c3383dc0823ed22c88d6d5f67d6fb /openjdk/sun/nio/ch/NativeDispatcher.java
parent05be269edcd34db64d7cfdcdfc85f62854109ba3 (diff)
Indirect socket read/write operations via the NativeDispatcher.
Diffstat (limited to 'openjdk/sun/nio/ch/NativeDispatcher.java')
-rw-r--r--openjdk/sun/nio/ch/NativeDispatcher.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/openjdk/sun/nio/ch/NativeDispatcher.java b/openjdk/sun/nio/ch/NativeDispatcher.java
index 823a101f..7f523265 100644
--- a/openjdk/sun/nio/ch/NativeDispatcher.java
+++ b/openjdk/sun/nio/ch/NativeDispatcher.java
@@ -26,6 +26,7 @@
package sun.nio.ch;
import java.io.*;
+import java.nio.ByteBuffer;
/**
* Allows different platforms to call different native methods
@@ -34,6 +35,13 @@ import java.io.*;
abstract class NativeDispatcher
{
+ abstract int read(FileDescriptor fd, byte[] buf, int offset, int length) throws IOException;
+
+ abstract int write(FileDescriptor fd, byte[] buf, int offset, int length) throws IOException;
+
+ abstract long read(FileDescriptor fd, ByteBuffer[] bufs, int offset, int length) throws IOException;
+
+ abstract long write(FileDescriptor fd, ByteBuffer[] bufs, int offset, int length) throws IOException;
abstract void close(FileDescriptor fd) throws IOException;