mirror of
https://github.com/2003scape/deep-c-rsc.git
synced 2024-03-22 05:49:51 -04:00
584 lines
18 KiB
C
584 lines
18 KiB
C
/* DO NOT EDIT THIS FILE - it is machine generated (JCGO_116) */
|
|
|
|
#ifdef JCGO_SEPARATED
|
|
#define JCGO_116
|
|
#include "jcgortl.h"
|
|
#include "Main.h"
|
|
#endif
|
|
|
|
#ifdef JCGO_116
|
|
|
|
#ifdef CHKALL_gnu_java_net_PlainSocketImpl
|
|
#include "jcgobchk.h"
|
|
#endif
|
|
|
|
JCGO_NOSEP_FRWINL jboolean CFASTCALL
|
|
gnu_java_net_PlainSocketImpl__isInChannelOperation__( gnu_java_net_PlainSocketImpl
|
|
This )
|
|
{
|
|
{
|
|
return (jboolean)jfalse;
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC gnu_java_net_PlainSocketImpl CFASTCALL
|
|
gnu_java_net_PlainSocketImpl__this__( gnu_java_net_PlainSocketImpl
|
|
This )
|
|
{
|
|
{
|
|
(java_net_SocketImpl__this__((java_net_SocketImpl)This));
|
|
JCGO_FIELD_NZACCESS(This, impl)= gnu_java_net_VMPlainSocketImpl__new__();
|
|
}
|
|
return This;
|
|
}
|
|
|
|
JCGO_NOSEP_FRWINL gnu_java_net_PlainSocketImpl CFASTCALL
|
|
gnu_java_net_PlainSocketImpl__new__( void )
|
|
{
|
|
return gnu_java_net_PlainSocketImpl__this__(
|
|
(gnu_java_net_PlainSocketImpl)jcgo_newObject((jvtable)&gnu_java_net_PlainSocketImpl_methods));
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC void CFASTCALL
|
|
gnu_java_net_PlainSocketImpl__setOption__ILo( gnu_java_net_PlainSocketImpl
|
|
This, java_lang_Object value, jint optionId )
|
|
{
|
|
{
|
|
jObject jcgo_rcvrL1;
|
|
switch (optionId)
|
|
{
|
|
case java_net_SocketOptions__SO_TIMEOUT:
|
|
if (JCGO_FIELD_NZACCESS(This, channel) == jnull && jcgo_instanceOf0(OBJT_java_lang_Integer,
|
|
MAXT_java_lang_Integer, (jObject)value))
|
|
{
|
|
JCGO_FIELD_NZACCESS(This, initialTimeout)= (java_lang_Integer__intValue__(
|
|
((java_lang_Integer)value)));
|
|
return;
|
|
}
|
|
case java_net_SocketOptions__SO_LINGER0:
|
|
case java_net_SocketOptions__IP_MULTICAST_LOOP0:
|
|
case java_net_SocketOptions__SO_BROADCAST0:
|
|
case java_net_SocketOptions__SO_KEEPALIVE0:
|
|
case java_net_SocketOptions__SO_OOBINLINE0:
|
|
case java_net_SocketOptions__TCP_NODELAY0:
|
|
case java_net_SocketOptions__IP_TOS0:
|
|
case java_net_SocketOptions__SO_RCVBUF0:
|
|
case java_net_SocketOptions__SO_SNDBUF0:
|
|
case java_net_SocketOptions__SO_REUSEADDR0:
|
|
(jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, impl), JCGO_CALL_FINALF((gnu_java_net_VMPlainSocketImpl)jcgo_rcvrL1)
|
|
gnu_java_net_VMPlainSocketImpl__setOption__ILo(
|
|
(gnu_java_net_VMPlainSocketImpl)jcgo_rcvrL1, value, optionId));
|
|
return;
|
|
default:
|
|
JCGO_THROW_EXC((java_net_SocketException__new__Ls(
|
|
java_lang_VMSystem__concat0X__LsLs(
|
|
JCGO_STRREF_OF(jcgo_string2_PlnSckIm), (java_lang_String__valueOf__I(
|
|
optionId))))));
|
|
}
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC void CFASTCALL
|
|
gnu_java_net_PlainSocketImpl__create__Z( gnu_java_net_PlainSocketImpl
|
|
This, jboolean stream )
|
|
{
|
|
JCGO_SYNC_BLOCKSAFENZ(This)
|
|
{
|
|
gnu_java_nio_VMChannel vmchannel;
|
|
jObject jcgo_rcvrL1;
|
|
JCGO_FIELD_NZACCESS(This, channel)= (gnu_java_nio_SocketChannelImpl__new__Z(
|
|
(jboolean)jfalse));
|
|
vmchannel= (jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, channel),
|
|
JCGO_CALL_FINALF((gnu_java_nio_SocketChannelImpl)jcgo_rcvrL1) gnu_java_nio_SocketChannelImpl__getVMChannel__(
|
|
(gnu_java_nio_SocketChannelImpl)jcgo_rcvrL1));
|
|
(JCGO_CALL_FINALF(vmchannel) gnu_java_nio_VMChannel__initSocket__Z(
|
|
vmchannel, (jboolean)stream));
|
|
(jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, channel), JCGO_CALL_FINALF((gnu_java_nio_SocketChannelImpl)jcgo_rcvrL1)
|
|
java_nio_channels_spi_AbstractSelectableChannel__configureBlocking__Z(
|
|
(java_nio_channels_spi_AbstractSelectableChannel)jcgo_rcvrL1, (jboolean)jtrue));
|
|
(jcgo_rcvrL1= (jObject)(jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
|
|
impl), JCGO_CALL_FINALF((gnu_java_net_VMPlainSocketImpl)jcgo_rcvrL1)
|
|
gnu_java_net_VMPlainSocketImpl__getState__(
|
|
(gnu_java_net_VMPlainSocketImpl)jcgo_rcvrL1)), gnu_java_net_VMPlainSocketImpl_State__setChannelFD__L7r5z2(
|
|
(gnu_java_net_VMPlainSocketImpl_State)jcgo_rcvrL1, (gnu_java_nio_VMChannel__getState__(
|
|
vmchannel))));
|
|
if (JCGO_FIELD_NZACCESS(This, initialTimeout) != 0)
|
|
{
|
|
jObject jcgo_rcvrL1;
|
|
struct java_lang_Integer_s jcgo_stackobj1;
|
|
(jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, impl), JCGO_CALL_FINALF((gnu_java_net_VMPlainSocketImpl)jcgo_rcvrL1)
|
|
gnu_java_net_VMPlainSocketImpl__setOption__ILo(
|
|
(gnu_java_net_VMPlainSocketImpl)jcgo_rcvrL1, (java_lang_Object)(java_lang_Integer__this__I(
|
|
JCGO_STACKOBJ_NEW(jcgo_stackobj1, java_lang_Integer_methods), JCGO_FIELD_NZACCESS(This,
|
|
initialTimeout))), java_net_SocketOptions__SO_TIMEOUT));
|
|
JCGO_FIELD_NZACCESS(This, initialTimeout)= 0;
|
|
}
|
|
}
|
|
JCGO_SYNC_END
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC void CFASTCALL
|
|
gnu_java_net_PlainSocketImpl__connect__L2kl8gI( gnu_java_net_PlainSocketImpl
|
|
This, java_net_SocketAddress address, jint timeout )
|
|
{
|
|
JCGO_SYNC_BLOCKSAFENZ(This)
|
|
{
|
|
java_net_InetSocketAddress addr;
|
|
JCGO_TRY_VOLATILE jboolean connected;
|
|
if (JCGO_FIELD_NZACCESS(This, channel) == jnull)
|
|
{
|
|
(JCGO_CALL_NZVFUNC(This)->create__Z(
|
|
This, (jboolean)jtrue));
|
|
}
|
|
;
|
|
{
|
|
JCGO_TRY_BLOCK
|
|
{
|
|
jObject jcgo_rcvrL1;
|
|
connected= (jboolean)(jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
|
|
channel), JCGO_CALL_FINALF((gnu_java_nio_SocketChannelImpl)jcgo_rcvrL1)
|
|
gnu_java_nio_SocketChannelImpl__connect__L2kl8gI(
|
|
(gnu_java_nio_SocketChannelImpl)jcgo_rcvrL1, address, timeout));
|
|
}
|
|
JCGO_TRY_LEAVE
|
|
JCGO_TRY_CATCHES(1)
|
|
JCGO_TRY_CATCH(OBJT_java_nio_channels_UnresolvedAddressException,
|
|
MAXT_java_nio_channels_UnresolvedAddressException)
|
|
{
|
|
jObject jcgo_rcvrL1;
|
|
JCGO_THROW_EXC((java_net_UnknownHostException__new__Ls(
|
|
(jcgo_rcvrL1= (jObject)((java_net_InetSocketAddress)JCGO_CAST_OBJECT0(OBJT_java_net_InetSocketAddress,
|
|
MAXT_java_net_InetSocketAddress, address)), JCGO_CALL_FINALF((java_net_InetSocketAddress)jcgo_rcvrL1)
|
|
java_net_InetSocketAddress__getHostName__(
|
|
(java_net_InetSocketAddress)jcgo_rcvrL1)))));
|
|
}
|
|
JCGO_TRY_RETHROW(1)
|
|
}
|
|
if (!connected)
|
|
{
|
|
JCGO_THROW_EXC((java_net_SocketTimeoutException__new__Ls(
|
|
JCGO_STRREF_OF(jcgo_string3_PlnSckIm))));
|
|
}
|
|
addr= (java_net_InetSocketAddress)JCGO_CAST_OBJECT0(OBJT_java_net_InetSocketAddress,
|
|
MAXT_java_net_InetSocketAddress, address);
|
|
JCGO_FIELD_NZACCESS(This, address)= (JCGO_CALL_FINALF(addr) java_net_InetSocketAddress__getAddress__(
|
|
addr));
|
|
JCGO_FIELD_NZACCESS(This, port)= (java_net_InetSocketAddress__getPort__(
|
|
addr));
|
|
}
|
|
JCGO_SYNC_END
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC void CFASTCALL
|
|
gnu_java_net_PlainSocketImpl__bind__L7lnuwI( gnu_java_net_PlainSocketImpl
|
|
This, java_net_InetAddress addr, jint port )
|
|
{
|
|
JCGO_SYNC_BLOCKSAFENZ(This)
|
|
{
|
|
jObject jcgo_rcvrL1;
|
|
struct java_net_InetSocketAddress_s jcgo_stackobj1;
|
|
if (JCGO_FIELD_NZACCESS(This, channel) == jnull)
|
|
{
|
|
(JCGO_CALL_NZVFUNC(This)->create__Z(
|
|
This, (jboolean)jtrue));
|
|
}
|
|
(jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, impl), JCGO_CALL_FINALF((gnu_java_net_VMPlainSocketImpl)jcgo_rcvrL1)
|
|
gnu_java_net_VMPlainSocketImpl__bind__L5zjct(
|
|
(gnu_java_net_VMPlainSocketImpl)jcgo_rcvrL1, (java_net_InetSocketAddress__this__L7lnuwI(
|
|
JCGO_STACKOBJ_NEW(jcgo_stackobj1, java_net_InetSocketAddress_methods),
|
|
addr, port))));
|
|
JCGO_FIELD_NZACCESS(This, localport)= (jcgo_rcvrL1= (jObject)(jcgo_rcvrL1=
|
|
(jObject)(jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, channel),
|
|
JCGO_CALL_FINALF((gnu_java_nio_SocketChannelImpl)jcgo_rcvrL1) gnu_java_nio_SocketChannelImpl__getVMChannel__(
|
|
(gnu_java_nio_SocketChannelImpl)jcgo_rcvrL1)), JCGO_CALL_FINALF((gnu_java_nio_VMChannel)jcgo_rcvrL1)
|
|
gnu_java_nio_VMChannel__getLocalAddress__(
|
|
(gnu_java_nio_VMChannel)jcgo_rcvrL1)), JCGO_CALL_FINALF((java_net_InetSocketAddress)jcgo_rcvrL1)
|
|
java_net_InetSocketAddress__getPort__(
|
|
(java_net_InetSocketAddress)jcgo_rcvrL1));
|
|
}
|
|
JCGO_SYNC_END
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC jint CFASTCALL
|
|
gnu_java_net_PlainSocketImpl__available__( gnu_java_net_PlainSocketImpl
|
|
This )
|
|
{
|
|
{
|
|
jObject jcgo_rcvrL1;
|
|
if (JCGO_FIELD_NZACCESS(This, channel) == jnull)
|
|
{
|
|
JCGO_THROW_EXC((java_net_SocketException__new__Ls(
|
|
JCGO_STRREF_OF(jcgo_string2_ScktHndl))));
|
|
}
|
|
return (jcgo_rcvrL1= (jObject)(jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
|
|
channel), JCGO_CALL_FINALF((gnu_java_nio_SocketChannelImpl)jcgo_rcvrL1)
|
|
gnu_java_nio_SocketChannelImpl__getVMChannel__(
|
|
(gnu_java_nio_SocketChannelImpl)jcgo_rcvrL1)), JCGO_CALL_FINALF((gnu_java_nio_VMChannel)jcgo_rcvrL1)
|
|
gnu_java_nio_VMChannel__available__(
|
|
(gnu_java_nio_VMChannel)jcgo_rcvrL1));
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC void CFASTCALL
|
|
gnu_java_net_PlainSocketImpl__close__( gnu_java_net_PlainSocketImpl
|
|
This )
|
|
{
|
|
{
|
|
jObject jcgo_rcvrL1;
|
|
if ((gnu_java_net_VMPlainSocketImpl_State__isValid__(
|
|
(jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, impl), JCGO_CALL_FINALF((gnu_java_net_VMPlainSocketImpl)jcgo_rcvrL1)
|
|
gnu_java_net_VMPlainSocketImpl__getState__(
|
|
(gnu_java_net_VMPlainSocketImpl)jcgo_rcvrL1)))))
|
|
{
|
|
jObject jcgo_rcvrL1;
|
|
(jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This, impl), JCGO_CALL_FINALF((gnu_java_net_VMPlainSocketImpl)jcgo_rcvrL1)
|
|
gnu_java_net_VMPlainSocketImpl__close__(
|
|
(gnu_java_net_VMPlainSocketImpl)jcgo_rcvrL1));
|
|
}
|
|
JCGO_FIELD_NZACCESS(This, address)= (java_net_InetAddress)jnull;
|
|
JCGO_FIELD_NZACCESS(This, port)= (-(jint)1);
|
|
}
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC java_io_InputStream CFASTCALL
|
|
gnu_java_net_PlainSocketImpl__getInputStream__( gnu_java_net_PlainSocketImpl
|
|
This )
|
|
{
|
|
JCGO_SYNC_BLOCKSAFENZ(This)
|
|
{
|
|
if (JCGO_FIELD_NZACCESS(This, in) == jnull)
|
|
{
|
|
JCGO_FIELD_NZACCESS(This, in)= (java_io_InputStream)(gnu_java_net_PlainSocketImpl_SocketInputStream__new__L81fmm(
|
|
This));
|
|
}
|
|
{
|
|
java_io_InputStream jcgo_retval= JCGO_FIELD_NZACCESS(This, in);
|
|
#ifndef JCGO_SEHTRY
|
|
JCGO_SYNC_JUMPLEAVE(0);
|
|
#endif
|
|
return jcgo_retval;
|
|
}
|
|
}
|
|
JCGO_SYNC_ENDUNREACH
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC java_io_OutputStream CFASTCALL
|
|
gnu_java_net_PlainSocketImpl__getOutputStream__( gnu_java_net_PlainSocketImpl
|
|
This )
|
|
{
|
|
JCGO_SYNC_BLOCKSAFENZ(This)
|
|
{
|
|
if (JCGO_FIELD_NZACCESS(This, out) == jnull)
|
|
{
|
|
JCGO_FIELD_NZACCESS(This, out)= (java_io_OutputStream)(gnu_java_net_PlainSocketImpl_SocketOutputStream__new__L81fmm(
|
|
This));
|
|
}
|
|
{
|
|
java_io_OutputStream jcgo_retval= JCGO_FIELD_NZACCESS(This, out);
|
|
#ifndef JCGO_SEHTRY
|
|
JCGO_SYNC_JUMPLEAVE(0);
|
|
#endif
|
|
return jcgo_retval;
|
|
}
|
|
}
|
|
JCGO_SYNC_ENDUNREACH
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC java_net_InetAddress CFASTCALL
|
|
gnu_java_net_PlainSocketImpl__getInetAddress__( gnu_java_net_PlainSocketImpl
|
|
This )
|
|
{
|
|
{
|
|
if (JCGO_FIELD_NZACCESS(This, channel) == jnull)
|
|
{
|
|
return (java_net_InetAddress)jnull;
|
|
}
|
|
{
|
|
JCGO_TRY_BLOCK
|
|
{
|
|
java_net_InetSocketAddress remote;
|
|
jObject jcgo_rcvrL1;
|
|
remote= (jcgo_rcvrL1= (jObject)(jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
|
|
channel), JCGO_CALL_FINALF((gnu_java_nio_SocketChannelImpl)jcgo_rcvrL1)
|
|
gnu_java_nio_SocketChannelImpl__getVMChannel__(
|
|
(gnu_java_nio_SocketChannelImpl)jcgo_rcvrL1)), JCGO_CALL_FINALF((gnu_java_nio_VMChannel)jcgo_rcvrL1)
|
|
gnu_java_nio_VMChannel__getPeerAddress__(
|
|
(gnu_java_nio_VMChannel)jcgo_rcvrL1));
|
|
if (remote == jnull)
|
|
{
|
|
#ifndef JCGO_SEHTRY
|
|
jcgo_tryLeave();
|
|
#endif
|
|
return (java_net_InetAddress)jnull;
|
|
}
|
|
if (JCGO_FIELD_NZACCESS(This, address) != jnull)
|
|
{
|
|
{
|
|
java_net_InetAddress jcgo_retval= JCGO_FIELD_NZACCESS(This, address);
|
|
#ifndef JCGO_SEHTRY
|
|
jcgo_tryLeave();
|
|
#endif
|
|
return jcgo_retval;
|
|
}
|
|
}
|
|
{
|
|
java_net_InetAddress jcgo_retval= (java_net_InetSocketAddress__getAddress__(
|
|
remote));
|
|
#ifndef JCGO_SEHTRY
|
|
jcgo_tryLeave();
|
|
#endif
|
|
return jcgo_retval;
|
|
}
|
|
}
|
|
JCGO_TRY_LEAVE
|
|
JCGO_TRY_CATCHES(1)
|
|
JCGO_TRY_CATCH(OBJT_java_io_IOException, MAXT_java_io_IOException)
|
|
{
|
|
return (java_net_InetAddress)jnull;
|
|
}
|
|
JCGO_TRY_RETHROW(1)
|
|
}
|
|
}
|
|
return jnull;
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC jint CFASTCALL
|
|
gnu_java_net_PlainSocketImpl__getLocalPort__( gnu_java_net_PlainSocketImpl
|
|
This )
|
|
{
|
|
{
|
|
if (JCGO_FIELD_NZACCESS(This, channel) == jnull)
|
|
{
|
|
return (-(jint)1);
|
|
}
|
|
{
|
|
JCGO_TRY_BLOCK
|
|
{
|
|
java_net_InetSocketAddress local;
|
|
jObject jcgo_rcvrL1;
|
|
local= (jcgo_rcvrL1= (jObject)(jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
|
|
channel), JCGO_CALL_FINALF((gnu_java_nio_SocketChannelImpl)jcgo_rcvrL1)
|
|
gnu_java_nio_SocketChannelImpl__getVMChannel__(
|
|
(gnu_java_nio_SocketChannelImpl)jcgo_rcvrL1)), JCGO_CALL_FINALF((gnu_java_nio_VMChannel)jcgo_rcvrL1)
|
|
gnu_java_nio_VMChannel__getLocalAddress__(
|
|
(gnu_java_nio_VMChannel)jcgo_rcvrL1));
|
|
if (local == jnull)
|
|
{
|
|
#ifndef JCGO_SEHTRY
|
|
jcgo_tryLeave();
|
|
#endif
|
|
return (-(jint)1);
|
|
}
|
|
{
|
|
jint jcgo_retval= (java_net_InetSocketAddress__getPort__(
|
|
local));
|
|
#ifndef JCGO_SEHTRY
|
|
jcgo_tryLeave();
|
|
#endif
|
|
return jcgo_retval;
|
|
}
|
|
}
|
|
JCGO_TRY_LEAVE
|
|
JCGO_TRY_CATCHES(1)
|
|
JCGO_TRY_CATCH(OBJT_java_io_IOException, MAXT_java_io_IOException)
|
|
{
|
|
return (-(jint)1);
|
|
}
|
|
JCGO_TRY_RETHROW(1)
|
|
}
|
|
}
|
|
return (jint)0;
|
|
}
|
|
|
|
JCGO_NOSEP_FRWINL java_net_InetSocketAddress CFASTCALL
|
|
gnu_java_net_PlainSocketImpl__getLocalAddress__( gnu_java_net_PlainSocketImpl
|
|
This )
|
|
{
|
|
{
|
|
if (JCGO_FIELD_NZACCESS(This, channel) == jnull)
|
|
{
|
|
return (java_net_InetSocketAddress)jnull;
|
|
}
|
|
{
|
|
JCGO_TRY_BLOCK
|
|
{
|
|
jObject jcgo_rcvrL1;
|
|
{
|
|
java_net_InetSocketAddress jcgo_retval= (jcgo_rcvrL1= (jObject)(jcgo_rcvrL1=
|
|
(jObject)JCGO_FIELD_NZACCESS(This, channel), JCGO_CALL_FINALF((gnu_java_nio_SocketChannelImpl)jcgo_rcvrL1)
|
|
gnu_java_nio_SocketChannelImpl__getVMChannel__(
|
|
(gnu_java_nio_SocketChannelImpl)jcgo_rcvrL1)), JCGO_CALL_FINALF((gnu_java_nio_VMChannel)jcgo_rcvrL1)
|
|
gnu_java_nio_VMChannel__getLocalAddress__(
|
|
(gnu_java_nio_VMChannel)jcgo_rcvrL1));
|
|
#ifndef JCGO_SEHTRY
|
|
jcgo_tryLeave();
|
|
#endif
|
|
return jcgo_retval;
|
|
}
|
|
}
|
|
JCGO_TRY_LEAVE
|
|
JCGO_TRY_CATCHES(1)
|
|
JCGO_TRY_CATCH(OBJT_java_io_IOException, MAXT_java_io_IOException)
|
|
{
|
|
return (java_net_InetSocketAddress)jnull;
|
|
}
|
|
JCGO_TRY_RETHROW(1)
|
|
}
|
|
}
|
|
return jnull;
|
|
}
|
|
|
|
JCGO_NOSEP_STATIC jint CFASTCALL
|
|
gnu_java_net_PlainSocketImpl__getPort__( gnu_java_net_PlainSocketImpl
|
|
This )
|
|
{
|
|
{
|
|
if (JCGO_FIELD_NZACCESS(This, channel) == jnull)
|
|
{
|
|
return (-(jint)1);
|
|
}
|
|
{
|
|
JCGO_TRY_BLOCK
|
|
{
|
|
java_net_InetSocketAddress remote;
|
|
jObject jcgo_rcvrL1;
|
|
remote= (jcgo_rcvrL1= (jObject)(jcgo_rcvrL1= (jObject)JCGO_FIELD_NZACCESS(This,
|
|
channel), JCGO_CALL_FINALF((gnu_java_nio_SocketChannelImpl)jcgo_rcvrL1)
|
|
gnu_java_nio_SocketChannelImpl__getVMChannel__(
|
|
(gnu_java_nio_SocketChannelImpl)jcgo_rcvrL1)), JCGO_CALL_FINALF((gnu_java_nio_VMChannel)jcgo_rcvrL1)
|
|
gnu_java_nio_VMChannel__getPeerAddress__(
|
|
(gnu_java_nio_VMChannel)jcgo_rcvrL1));
|
|
if (remote == jnull)
|
|
{
|
|
#ifndef JCGO_SEHTRY
|
|
jcgo_tryLeave();
|
|
#endif
|
|
return (-(jint)1);
|
|
}
|
|
{
|
|
jint jcgo_retval= (java_net_InetSocketAddress__getPort__(
|
|
remote));
|
|
#ifndef JCGO_SEHTRY
|
|
jcgo_tryLeave();
|
|
#endif
|
|
return jcgo_retval;
|
|
}
|
|
}
|
|
JCGO_TRY_LEAVE
|
|
JCGO_TRY_CATCHES(1)
|
|
JCGO_TRY_CATCH(OBJT_java_io_IOException, MAXT_java_io_IOException)
|
|
{
|
|
return (-(jint)1);
|
|
}
|
|
JCGO_TRY_RETHROW(1)
|
|
}
|
|
}
|
|
return (jint)0;
|
|
}
|
|
|
|
JCGO_NOSEP_DATA CONST struct gnu_java_net_PlainSocketImpl_methods_s
|
|
gnu_java_net_PlainSocketImpl_methods=
|
|
{
|
|
JCGO_CLASSREF_OF(gnu_java_net_PlainSocketImpl__class),
|
|
JCGO_GCJDESCR_INIT(gnu_java_net_PlainSocketImpl_s, channel)
|
|
OBJT_gnu_java_net_PlainSocketImpl,
|
|
(JCGO_OBJSIZE_T)sizeof(struct gnu_java_net_PlainSocketImpl_s),
|
|
NULL,
|
|
JCGO_CLINIT_INIT(0)
|
|
gnu_java_net_PlainSocketImpl__this__,
|
|
java_lang_Object__equals__Lo,
|
|
java_lang_Object__hashCode__,
|
|
java_net_SocketImpl__toString__,
|
|
java_lang_Object__finalize__,
|
|
gnu_java_net_PlainSocketImpl__create__Z,
|
|
gnu_java_net_PlainSocketImpl__getInetAddress__,
|
|
gnu_java_net_PlainSocketImpl__getPort__
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct gnu_java_net_PlainSocketImpl_class_s
|
|
gnu_java_net_PlainSocketImpl__class JCGO_THRD_ATTRNONGC=
|
|
{
|
|
{
|
|
&java_lang_Class_methods,
|
|
JCGO_MON_INIT
|
|
JCGO_OBJREF_OF(*(java_lang_Object)&gnu_java_net_PlainSocketImpl_methods),
|
|
JCGO_STRREF_OF(jcgo_string1_PlnSckIm),
|
|
JCGO_CLASSREF_OF(java_net_SocketImpl__class),
|
|
((jObjectArr)JCGO_OBJREF_OF(jcgo_array3_Object)),
|
|
0x1
|
|
}
|
|
};
|
|
|
|
JCGO_NOSEP_DATA CONST jcgo_arrtype668_Mdclnt jcgo_array4_PlnSckIm=
|
|
{
|
|
(jvtable)&jbyteArr_methods,
|
|
JCGO_MON_INIT
|
|
46,
|
|
{
|
|
(jbyte)(jchar)103/*'g'*/, (jbyte)(jchar)110/*'n'*/, (jbyte)(jchar)117/*'u'*/,
|
|
(jbyte)(jchar)46/*'.'*/, (jbyte)(jchar)106/*'j'*/, (jbyte)(jchar)97/*'a'*/,
|
|
(jbyte)(jchar)118/*'v'*/, (jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)46/*'.'*/,
|
|
(jbyte)(jchar)110/*'n'*/, (jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)116/*'t'*/,
|
|
(jbyte)(jchar)46/*'.'*/, (jbyte)(jchar)80/*'P'*/, (jbyte)(jchar)108/*'l'*/,
|
|
(jbyte)(jchar)97/*'a'*/, (jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)110/*'n'*/,
|
|
(jbyte)(jchar)83/*'S'*/, (jbyte)(jchar)111/*'o'*/, (jbyte)(jchar)99/*'c'*/,
|
|
(jbyte)(jchar)107/*'k'*/, (jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)116/*'t'*/,
|
|
(jbyte)(jchar)73/*'I'*/, (jbyte)(jchar)109/*'m'*/, (jbyte)(jchar)112/*'p'*/,
|
|
(jbyte)(jchar)108/*'l'*/, (jbyte)(jchar)36/*'$'*/, (jbyte)(jchar)83/*'S'*/,
|
|
(jbyte)(jchar)111/*'o'*/, (jbyte)(jchar)99/*'c'*/, (jbyte)(jchar)107/*'k'*/,
|
|
(jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)116/*'t'*/, (jbyte)(jchar)73/*'I'*/,
|
|
(jbyte)(jchar)110/*'n'*/, (jbyte)(jchar)112/*'p'*/, (jbyte)(jchar)117/*'u'*/,
|
|
(jbyte)(jchar)116/*'t'*/, (jbyte)(jchar)83/*'S'*/, (jbyte)(jchar)116/*'t'*/,
|
|
(jbyte)(jchar)114/*'r'*/, (jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)97/*'a'*/,
|
|
(jbyte)(jchar)109/*'m'*/
|
|
}
|
|
};
|
|
|
|
JCGO_NOSEP_DATA CONST jcgo_arrtype492_Mdclnt jcgo_array5_PlnSckIm=
|
|
{
|
|
(jvtable)&jbyteArr_methods,
|
|
JCGO_MON_INIT
|
|
17,
|
|
{
|
|
(jbyte)(jchar)99/*'c'*/, (jbyte)(jchar)111/*'o'*/, (jbyte)(jchar)110/*'n'*/,
|
|
(jbyte)(jchar)110/*'n'*/, (jbyte)(jchar)101/*'e'*/, (jbyte)(jchar)99/*'c'*/,
|
|
(jbyte)(jchar)116/*'t'*/, (jbyte)(jchar)32/*' '*/, (jbyte)(jchar)116/*'t'*/,
|
|
(jbyte)(jchar)105/*'i'*/, (jbyte)(jchar)109/*'m'*/, (jbyte)(jchar)101/*'e'*/,
|
|
(jbyte)(jchar)100/*'d'*/, (jbyte)(jchar)32/*' '*/, (jbyte)(jchar)111/*'o'*/,
|
|
(jbyte)(jchar)117/*'u'*/, (jbyte)(jchar)116/*'t'*/
|
|
}
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string1_PlnSckIm
|
|
JCGO_THRD_ATTRNONGC=
|
|
{
|
|
&java_lang_String_methods,
|
|
JCGO_MON_INIT
|
|
(java_lang_Object)JCGO_OBJREF_OF(jcgo_array4_PlnSckIm),
|
|
0, 28, (jint)0x5493b2e0L
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string2_PlnSckIm
|
|
JCGO_THRD_ATTRNONGC=
|
|
{
|
|
&java_lang_String_methods,
|
|
JCGO_MON_INIT
|
|
(java_lang_Object)JCGO_OBJREF_OF(jcgo_array680_VMSstmPr),
|
|
0, 25, (jint)0x3ad20b4bL
|
|
};
|
|
|
|
JCGO_NOSEP_DATA JCGO_NOTHR_CONST struct java_lang_String_s jcgo_string3_PlnSckIm
|
|
JCGO_THRD_ATTRNONGC=
|
|
{
|
|
&java_lang_String_methods,
|
|
JCGO_MON_INIT
|
|
(java_lang_Object)JCGO_OBJREF_OF(jcgo_array5_PlnSckIm),
|
|
0, 17, (jint)0xc007cf2fL
|
|
};
|
|
|
|
#ifdef CHKALL_gnu_java_net_PlainSocketImpl
|
|
#include "jcgochke.h"
|
|
#endif
|
|
|
|
#endif
|