This commit is contained in:
smallsql 2011-07-09 10:50:12 +00:00
Родитель dc46961844
Коммит b52ab7950e
1 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -25,6 +25,8 @@
package sun.nio.ch;
import ikvm.internal.NotYetImplementedError;
import java.io.FileDescriptor;
import java.io.IOException;
import java.net.*;
@ -117,6 +119,13 @@ class DatagramChannelImpl
}
}
public DatagramChannelImpl(SelectorProvider sp, ProtocolFamily family)
throws IOException
{
super(sp);
throw new NotYetImplementedError(); //TODO JDK7
}
public DatagramChannelImpl(SelectorProvider sp, FileDescriptor fd)
throws IOException
{
@ -425,7 +434,7 @@ class DatagramChannelImpl
}
}
public void bind(SocketAddress local) throws IOException {
public DatagramChannel bind(SocketAddress local) throws IOException {
synchronized (readLock) {
synchronized (writeLock) {
synchronized (stateLock) {
@ -441,6 +450,7 @@ class DatagramChannelImpl
}
}
}
return this;
}
public boolean isConnected() {