Пример #1
0
new public static void @static(){
//XMLVM_BEGIN_WRAPPER[java.io.FileDescriptor: void <clinit>()]
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    _r0_o = new global::java.io.FileDescriptor();
    ((global::java.io.FileDescriptor) _r0_o).@this();
    global::java.io.FileDescriptor._fin = (global::java.io.FileDescriptor) _r0_o;
    _r0_o = new global::java.io.FileDescriptor();
    ((global::java.io.FileDescriptor) _r0_o).@this();
    global::java.io.FileDescriptor._fout = (global::java.io.FileDescriptor) _r0_o;
    _r0_o = new global::java.io.FileDescriptor();
    ((global::java.io.FileDescriptor) _r0_o).@this();
    global::java.io.FileDescriptor._ferr = (global::java.io.FileDescriptor) _r0_o;
    _r0_o = global::java.io.FileDescriptor._fin;
    _r1.l = 0L;
    ((global::java.io.FileDescriptor) _r0_o)._fdescriptor = _r1.l;
    _r0_o = global::java.io.FileDescriptor._fout;
    _r1.l = 1L;
    ((global::java.io.FileDescriptor) _r0_o)._fdescriptor = _r1.l;
    _r0_o = global::java.io.FileDescriptor._ferr;
    _r1.l = 2L;
    ((global::java.io.FileDescriptor) _r0_o)._fdescriptor = _r1.l;
    global::java.io.FileDescriptor.oneTimeInitialization();
    return;
//XMLVM_END_WRAPPER[java.io.FileDescriptor: void <clinit>()]
}
Пример #2
0
public void @this(global::java.io.File n1){
//XMLVM_BEGIN_WRAPPER[java.io.FileInputStream: void <init>(java.io.File)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r5_o = null;
    global::System.Object _r6_o = null;
    _r5_o = this;
    _r6_o = n1;
    _r1_o = null;
    _r4.i = 0;
    _r3.i = 1;
    ((global::java.io.InputStream) _r5_o).@this();
    _r0_o = global::org.apache.harmony.luni.platform.Platform.getFileSystem();
    ((global::java.io.FileInputStream) _r5_o)._ffileSystem = (global::org.apache.harmony.luni.platform.IFileSystem) _r0_o;
    _r0_o = new global::java.io.FileInputStream_2RepositioningLock();
    ((global::java.io.FileInputStream_2RepositioningLock) _r0_o).@this((global::java.io.FileInputStream_2RepositioningLock) _r1_o);
    ((global::java.io.FileInputStream) _r5_o)._frepositioningLock = (global::java.lang.Object) _r0_o;
    _r0_o = global::java.lang.System.getSecurityManager();
    if (_r0_o == null) goto label30;
    if (_r6_o != null) goto label44;
    label27:;
    ((global::java.lang.SecurityManager) _r0_o).checkRead((global::java.lang.String) _r1_o);
    label30:;
    if (_r6_o != null) goto label49;
    _r0_o = new global::java.lang.NullPointerException();
    // Value=luni.4D
    _r1_o = new global::java.lang.String();
    ((global::java.lang.String)_r1_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)108)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 52)), unchecked((char) unchecked((uint) 68))}));
    _r1_o = global::[email protected]((global::java.lang.String) _r1_o);
    ((global::java.lang.NullPointerException) _r0_o).@this((global::java.lang.String) _r1_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.lang.NullPointerException) _r0_o);
    label44:;
    _r1_o = ((global::java.io.File) _r6_o).getPath();
    goto label27;
    label49:;
    _r0_o = new global::java.io.FileDescriptor();
    ((global::java.io.FileDescriptor) _r0_o).@this();
    ((global::java.io.FileInputStream) _r5_o)._ffd = (global::java.io.FileDescriptor) _r0_o;
    _r0_o = ((global::java.io.FileInputStream) _r5_o)._ffd;
    ((global::java.io.FileDescriptor) _r0_o)._freadOnly = 0!=_r3.i;
    _r0_o = ((global::java.io.FileInputStream) _r5_o)._ffd;
    _r1_o = ((global::java.io.FileInputStream) _r5_o)._ffileSystem;
    _r2_o = ((global::java.io.File) _r6_o).properPath(0!=_r3.i);
    _r1.l = ((global::org.apache.harmony.luni.platform.IFileSystem) _r1_o).open((global::org.xmlvm._nArrayAdapter<sbyte>) _r2_o, (int) _r4.i);
    ((global::java.io.FileDescriptor) _r0_o)._fdescriptor = _r1.l;
    ((global::java.io.FileInputStream) _r5_o)._finnerFD = 0!=_r3.i;
    _r0_o = ((global::java.io.FileInputStream) _r5_o)._ffd;
    _r0.l = ((global::java.io.FileDescriptor) _r0_o)._fdescriptor;
    _r0_o = global::org.apache.harmony.nio.FileChannelFactory.getFileChannel((global::java.lang.Object) _r5_o, (long) _r0.l, (int) _r4.i);
    ((global::java.io.FileInputStream) _r5_o)._fchannel = (global::java.nio.channels.FileChannel) _r0_o;
    return;
//XMLVM_END_WRAPPER[java.io.FileInputStream: void <init>(java.io.File)]
}
Пример #3
0
public void @this(global::java.io.File n1, bool n2){
//XMLVM_BEGIN_WRAPPER[java.io.FileOutputStream: void <init>(java.io.File, boolean)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::org.xmlvm._nElement _r4;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r6_o = null;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nElement _r8;
    _r6_o = this;
    _r7_o = n1;
    _r8.i = n2 ? 1 : 0;
    _r5.i = 256;
    _r4.i = 1;
    ((global::java.io.OutputStream) _r6_o).@this();
    _r0_o = global::org.apache.harmony.luni.platform.Platform.getFileSystem();
    ((global::java.io.FileOutputStream) _r6_o)._ffileSystem = (global::org.apache.harmony.luni.platform.IFileSystem) _r0_o;
    _r0_o = global::java.lang.System.getSecurityManager();
    if (_r0_o == null) goto label25;
    _r1_o = ((global::java.io.File) _r7_o).getPath();
    ((global::java.lang.SecurityManager) _r0_o).checkWrite((global::java.lang.String) _r1_o);
    label25:;
    _r0_o = new global::java.io.FileDescriptor();
    ((global::java.io.FileDescriptor) _r0_o).@this();
    ((global::java.io.FileOutputStream) _r6_o)._ffd = (global::java.io.FileDescriptor) _r0_o;
    _r0_o = ((global::java.io.FileOutputStream) _r6_o)._ffd;
    _r1_o = ((global::java.io.FileOutputStream) _r6_o)._ffileSystem;
    _r2_o = ((global::java.io.File) _r7_o).properPath(0!=_r4.i);
    if (_r8.i == 0) goto label65;
    _r3.i = _r5.i;
    label43:;
    _r1.l = ((global::org.apache.harmony.luni.platform.IFileSystem) _r1_o).open((global::org.xmlvm._nArrayAdapter<sbyte>) _r2_o, (int) _r3.i);
    ((global::java.io.FileDescriptor) _r0_o)._fdescriptor = _r1.l;
    ((global::java.io.FileOutputStream) _r6_o)._finnerFD = 0!=_r4.i;
    _r0_o = ((global::java.io.FileOutputStream) _r6_o)._ffd;
    _r0.l = ((global::java.io.FileDescriptor) _r0_o)._fdescriptor;
    if (_r8.i == 0) goto label67;
    _r2.i = _r5.i;
    label58:;
    _r0_o = global::org.apache.harmony.nio.FileChannelFactory.getFileChannel((global::java.lang.Object) _r6_o, (long) _r0.l, (int) _r2.i);
    ((global::java.io.FileOutputStream) _r6_o)._fchannel = (global::java.nio.channels.FileChannel) _r0_o;
    return;
    label65:;
    _r3.i = _r4.i;
    goto label43;
    label67:;
    _r2.i = _r4.i;
    goto label58;
//XMLVM_END_WRAPPER[java.io.FileOutputStream: void <init>(java.io.File, boolean)]
}
Пример #4
0
new public void @this(){
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.net.PlainSocketImpl: void <init>()]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r2_o = null;
    _r2_o = this;
    _r1.i = 1;
    ((global::java.net.SocketImpl) _r2_o).@this();
    ((global::org.apache.harmony.luni.net.PlainSocketImpl) _r2_o)._ftcpNoDelay = 0!=_r1.i;
    _r0_o = global::org.apache.harmony.luni.platform.Platform.getNetworkSystem();
    ((global::org.apache.harmony.luni.net.PlainSocketImpl) _r2_o)._fnetImpl = (global::org.apache.harmony.luni.platform.INetworkSystem) _r0_o;
    _r0.i = 0;
    ((global::org.apache.harmony.luni.net.PlainSocketImpl) _r2_o)._freceiveTimeout = _r0.i;
    ((global::org.apache.harmony.luni.net.PlainSocketImpl) _r2_o)._fstreaming = 0!=_r1.i;
    _r0_o = new global::java.io.FileDescriptor();
    ((global::java.io.FileDescriptor) _r0_o).@this();
    ((global::org.apache.harmony.luni.net.PlainSocketImpl) _r2_o)._ffd = (global::java.io.FileDescriptor) _r0_o;
    return;
//XMLVM_END_WRAPPER[org.apache.harmony.luni.net.PlainSocketImpl: void <init>()]
}
Пример #5
0
        public virtual void createStreamSocket(global::java.io.FileDescriptor n1, bool n2)
        {
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: void createStreamSocket(java.io.FileDescriptor, boolean)]
            throw new global::org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
//XMLVM_END_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: void createStreamSocket(java.io.FileDescriptor, boolean)]
        }
Пример #6
0
        public virtual void accept(global::java.io.FileDescriptor n1, global::java.net.SocketImpl n2, global::java.io.FileDescriptor n3, int n4)
        {
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: void accept(java.io.FileDescriptor, java.net.SocketImpl, java.io.FileDescriptor, int)]
            throw new global::org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
//XMLVM_END_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: void accept(java.io.FileDescriptor, java.net.SocketImpl, java.io.FileDescriptor, int)]
        }
Пример #7
0
        public virtual int connectWithTimeout(global::java.io.FileDescriptor n1, int n2, int n3, global::java.net.InetAddress n4, int n5, int n6, global::java.lang.Long n7)
        {
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: int connectWithTimeout(java.io.FileDescriptor, int, int, java.net.InetAddress, int, int, java.lang.Long)]
            throw new global::org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
//XMLVM_END_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: int connectWithTimeout(java.io.FileDescriptor, int, int, java.net.InetAddress, int, int, java.lang.Long)]
        }
Пример #8
0
        public virtual long writev(global::java.io.FileDescriptor n1, global::org.xmlvm._nArrayAdapter <global::System.Object> n2, global::org.xmlvm._nArrayAdapter <int> n3, global::org.xmlvm._nArrayAdapter <int> n4, int n5)
        {
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: long writev(java.io.FileDescriptor, java.lang.Object[], int[], int[], int)]
            throw new global::org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
//XMLVM_END_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: long writev(java.io.FileDescriptor, java.lang.Object[], int[], int[], int)]
        }
Пример #9
0
        public virtual void connectStreamWithTimeoutSocket(global::java.io.FileDescriptor n1, int n2, int n3, int n4, global::java.net.InetAddress n5)
        {
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: void connectStreamWithTimeoutSocket(java.io.FileDescriptor, int, int, int, java.net.InetAddress)]
            throw new global::org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
//XMLVM_END_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: void connectStreamWithTimeoutSocket(java.io.FileDescriptor, int, int, int, java.net.InetAddress)]
        }
Пример #10
0
public override void close(){
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.net.PlainSocketImpl: void close()]
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::System.Object _r2_o = null;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r3_o = this;
    _r0_o = ((global::org.apache.harmony.luni.net.PlainSocketImpl) _r3_o)._ffd;
    global::System.Threading.Monitor.Enter(_r0_o);
    try {
    _r1_o = ((global::org.apache.harmony.luni.net.PlainSocketImpl) _r3_o)._ffd;
    _r1.i = ((global::java.io.FileDescriptor) _r1_o).valid() ? 1 : 0;
    if (_r1.i == 0) goto label38;
    _r1_o = ((global::org.apache.harmony.luni.net.PlainSocketImpl) _r3_o)._fnetImpl;
    _r1.i = ((global::org.apache.harmony.luni.platform.INetworkSystem) _r1_o).getSocketFlags();
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.Object) {
            _ex = ex;
            goto label40;
        }
        throw ex;
    } // end catch
    _r1.i = _r1.i & 8;
    if (_r1.i == 0) goto label24;
    try {
    ((global::org.apache.harmony.luni.net.PlainSocketImpl) _r3_o).shutdownOutput();
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.Exception) {
            _ex = ex;
            goto label43;
        }
        if (_java_exception is global::java.lang.Object) {
            _ex = ex;
            goto label40;
        }
        throw ex;
    } // end catch
    label24:;
    try {
    _r1_o = ((global::org.apache.harmony.luni.net.PlainSocketImpl) _r3_o)._fnetImpl;
    _r2_o = ((global::org.apache.harmony.luni.net.PlainSocketImpl) _r3_o)._ffd;
    ((global::org.apache.harmony.luni.platform.INetworkSystem) _r1_o).socketClose((global::java.io.FileDescriptor) _r2_o);
    _r1_o = new global::java.io.FileDescriptor();
    ((global::java.io.FileDescriptor) _r1_o).@this();
    ((global::org.apache.harmony.luni.net.PlainSocketImpl) _r3_o)._ffd = (global::java.io.FileDescriptor) _r1_o;
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.Object) {
            _ex = ex;
            goto label40;
        }
        throw ex;
    } // end catch
    label38:;
    try {
    global::System.Threading.Monitor.Exit(_r0_o);
    return;
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.Object) {
            _ex = ex;
            goto label40;
        }
        throw ex;
    } // end catch
    label40:;
    try {
    _r1_o = _ex.getJavaException();
    _ex = null;
    global::System.Threading.Monitor.Exit(_r0_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.lang.Object) {
            _ex = ex;
            goto label40;
        }
        throw ex;
    } // end catch
    throw new global::org.xmlvm._nExceptionAdapter((global::System.Object) _r1_o);
    label43:;
    _r1_o = _ex.getJavaException();
    _ex = null;
    goto label24;
//XMLVM_END_WRAPPER[org.apache.harmony.luni.net.PlainSocketImpl: void close()]
}
Пример #11
0
 public DirectByteBufferR(int prm1, long prm2, global::java.io.FileDescriptor prm3, global::java.lang.Runnable prm4) : base(default(int), default(long), default(global::java.io.FileDescriptor), default(global::java.lang.Runnable))
 {
 }
Пример #12
0
        public virtual int sendDatagramDirect(global::java.io.FileDescriptor n1, long n2, int n3, int n4, int n5, bool n6, int n7, global::java.net.InetAddress n8)
        {
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: int sendDatagramDirect(java.io.FileDescriptor, long, int, int, int, boolean, int, java.net.InetAddress)]
            throw new global::org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
//XMLVM_END_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: int sendDatagramDirect(java.io.FileDescriptor, long, int, int, int, boolean, int, java.net.InetAddress)]
        }
Пример #13
0
 public virtual void checkWrite(global::java.io.FileDescriptor prm1)
 {
 }
Пример #14
0
        public virtual int peekDatagram(global::java.io.FileDescriptor n1, global::java.net.InetAddress n2, int n3)
        {
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: int peekDatagram(java.io.FileDescriptor, java.net.InetAddress, int)]
            throw new global::org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
//XMLVM_END_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: int peekDatagram(java.io.FileDescriptor, java.net.InetAddress, int)]
        }
Пример #15
0
        public virtual int recvConnectedDatagramDirect(global::java.io.FileDescriptor n1, global::java.net.DatagramPacket n2, long n3, int n4, int n5, int n6, bool n7)
        {
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: int recvConnectedDatagramDirect(java.io.FileDescriptor, java.net.DatagramPacket, long, int, int, int, boolean)]
            throw new global::org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
//XMLVM_END_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: int recvConnectedDatagramDirect(java.io.FileDescriptor, java.net.DatagramPacket, long, int, int, int, boolean)]
        }
Пример #16
0
        public virtual global::System.Object getSocketLocalAddress(global::java.io.FileDescriptor n1, bool n2)
        {
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: java.net.InetAddress getSocketLocalAddress(java.io.FileDescriptor, boolean)]
            throw new global::org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
//XMLVM_END_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: java.net.InetAddress getSocketLocalAddress(java.io.FileDescriptor, boolean)]
        }
Пример #17
0
        private long transferImpl(long n1, global::java.io.FileDescriptor n2, long n3, long n4)
        {
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.platform.OSFileSystem: long transferImpl(long, java.io.FileDescriptor, long, long)]
            throw new global::org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
//XMLVM_END_WRAPPER[org.apache.harmony.luni.platform.OSFileSystem: long transferImpl(long, java.io.FileDescriptor, long, long)]
        }
Пример #18
0
 public DirectByteBuffer(int prm1, long prm2, global::java.io.FileDescriptor prm3, global::java.lang.Runnable prm4)
 {
 }
Пример #19
0
        public virtual void disconnectDatagram(global::java.io.FileDescriptor n1)
        {
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: void disconnectDatagram(java.io.FileDescriptor)]
            throw new global::org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
//XMLVM_END_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: void disconnectDatagram(java.io.FileDescriptor)]
        }
Пример #20
0
        public virtual int write(global::java.io.FileDescriptor n1, global::org.xmlvm._nArrayAdapter <sbyte> n2, int n3, int n4)
        {
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: int write(java.io.FileDescriptor, byte[], int, int)]
            throw new global::org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
//XMLVM_END_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: int write(java.io.FileDescriptor, byte[], int, int)]
        }
Пример #21
0
 public DualStackPlainSocketImpl(global::java.io.FileDescriptor prm1, bool prm2)
 {
 }
Пример #22
0
        public virtual int writeDirect(global::java.io.FileDescriptor n1, long n2, int n3)
        {
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: int writeDirect(java.io.FileDescriptor, long, int)]
            throw new global::org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
//XMLVM_END_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: int writeDirect(java.io.FileDescriptor, long, int)]
        }
Пример #23
0
        public virtual void setSocketOption(global::java.io.FileDescriptor n1, int n2, global::java.lang.Object n3)
        {
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: void setSocketOption(java.io.FileDescriptor, int, java.lang.Object)]
            throw new global::org.xmlvm._nNotYetImplementedException("native/wrapper method not yet implemented");
//XMLVM_END_WRAPPER[org.apache.harmony.luni.platform.OSNetworkSystem: void setSocketOption(java.io.FileDescriptor, int, java.lang.Object)]
        }
Пример #24
0
private bool isReachableByTCP(global::java.net.InetAddress n1, global::java.net.InetAddress n2, int n3){
//XMLVM_BEGIN_WRAPPER[java.net.InetAddress: boolean isReachableByTCP(java.net.InetAddress, java.net.InetAddress, int)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r5_o = null;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r8_o = null;
    global::System.Object _r9_o = null;
    global::System.Object _r10_o = null;
    global::org.xmlvm._nElement _r11;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r8_o = this;
    _r9_o = n1;
    _r10_o = n2;
    _r11.i = n3;
    _r1_o = new global::java.io.FileDescriptor();
    ((global::java.io.FileDescriptor) _r1_o).@this();
    _r4.i = 0;
    _r7.i = 0;
    _r0_o = global::java.net.InetAddress._fNETIMPL;
    _r2.i = global::org.apache.harmony.luni.net.NetUtil.preferIPv4Stack() ? 1 : 0;
    ((global::org.apache.harmony.luni.platform.INetworkSystem) _r0_o).createStreamSocket((global::java.io.FileDescriptor) _r1_o, 0!=_r2.i);
    if (_r10_o == null) goto label24;
    try {
    _r0_o = global::java.net.InetAddress._fNETIMPL;
    _r2.i = 0;
    ((global::org.apache.harmony.luni.platform.INetworkSystem) _r0_o).bind((global::java.io.FileDescriptor) _r1_o, (global::java.net.InetAddress) _r10_o, (int) _r2.i);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label39;
        }
        throw ex;
    } // end catch
    label24:;
    try {
    _r0_o = global::java.net.InetAddress._fNETIMPL;
    _r2.i = 7;
    _r3.i = _r11.i;
    _r5_o = _r9_o;
    ((global::org.apache.harmony.luni.platform.INetworkSystem) _r0_o).connectStreamWithTimeoutSocket((global::java.io.FileDescriptor) _r1_o, (int) _r2.i, (int) _r3.i, (int) _r4.i, (global::java.net.InetAddress) _r5_o);
    }
    catch (global::System.Exception e) {
 global::org.xmlvm._nExceptionAdapter ex = e as global::org.xmlvm._nExceptionAdapter ?? new global::org.xmlvm._nExceptionAdapter(e.ToString(), e.ToJavaException());
        global::System.Object _java_exception = ex.getJavaException();
        if (_java_exception is global::java.io.IOException) {
            _ex = ex;
            goto label39;
        }
        throw ex;
    } // end catch
    _r7.i = 1;
    label33:;
    _r0_o = global::java.net.InetAddress._fNETIMPL;
    ((global::org.apache.harmony.luni.platform.INetworkSystem) _r0_o).socketClose((global::java.io.FileDescriptor) _r1_o);
    return _r7.i!=0;
    label39:;
    _r0_o = _ex.getJavaException();
    _ex = null;
    _r6_o = _r0_o;
    // Value=Connection refused
    _r0_o = new global::java.lang.String();
    ((global::java.lang.String)_r0_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)67)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 32)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 102)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 100))}));
    _r2_o = ((global::java.io.IOException) _r6_o).getMessage();
    _r0.i = ((global::java.lang.String) _r0_o).equals((global::java.lang.Object) _r2_o) ? 1 : 0;
    if (_r0.i == 0) goto label33;
    _r7.i = 1;
    goto label33;
//XMLVM_END_WRAPPER[java.net.InetAddress: boolean isReachableByTCP(java.net.InetAddress, java.net.InetAddress, int)]
}