Codemesh Runtime v3 C++ API Reference  3.9.205
Public Member Functions | List of all members
IPv4Sockets_JNIEnv Struct Reference

A JNIEnv type that uses IPv4 sockets to communicate with an out-of-process JVM. More...

#include <IPv4Sockets_JNIEnv.h>

Inheritance diagram for IPv4Sockets_JNIEnv:
Inheritance graph
[legend]
Collaboration diagram for IPv4Sockets_JNIEnv:
Collaboration graph
[legend]

Public Member Functions

 IPv4Sockets_JNIEnv (IPv4Sockets_JavaVM *ipv4_jvm)
 Constructor that establishes the IPv4Sockets_JavaVM that. More...
 
void setThreadID (jint assigned_id)
 Set the ID by which the remote JVM knows this thread. The ID is obtained via the THREAD_ID_REQUEST when attaching.
 
jint getThreadID (void) const
 
jint getMemberId (jclass classId, const char *name, const char *sig) const
 Returns the server-asigned member ID of a class element.
 
int getFieldValue (xmog_remote_java_value &result, jclass classId, xmog_base *target, jfieldID fid)
 Returns the value of a field.
 
int setFieldValue (jclass classId, xmog_base *target, jfieldID fid, const xmog_remote_java_value &val)
 Sets the value of a field.
 
int callMethod (xmog_remote_java_value &result, jclass classId, xmog_base *target, jmethodID mid, int numArgs, const xmog_remote_java_value *args, bool bIsCtor=false, bool bLimitRetValCopying=false)
 Calls a method.
 
- Public Member Functions inherited from xmog_JNIEnv
 xmog_JNIEnv (xmog_JavaVM *jvm)
 A constructor that associates the env with a jvm.
 
 ~xmog_JNIEnv ()
 Destructor.
 
void set_localenv (xmog_localenv *env)
 Sets the higher-level abstraction that owns this instance into this instance.
 
xmog_localenvget_localenv () const
 Returns the higher-level abstraction that owns this instance.
 
xmog_JavaVMget_jvm () const
 Returns the jvm to which this instance belongs.
 
void set_throwable (const xmog_remote_java_exception &t)
 Sets a Throwable into the instance.
 
const xmog_remote_java_exceptionget_throwable () const
 Returns a Throwable that has been set into the instance.
 
const xmog_remote_java_exceptionget_previous_throwable () const
 Returns a Throwable that was set into the instance but then cleared.
 

Detailed Description

A JNIEnv type that uses IPv4 sockets to communicate with an out-of-process JVM.

Constructor & Destructor Documentation

◆ IPv4Sockets_JNIEnv()

IPv4Sockets_JNIEnv::IPv4Sockets_JNIEnv ( IPv4Sockets_JavaVM ipv4_jvm)

Constructor that establishes the IPv4Sockets_JavaVM that.

controls message sending to the shared JVM.


The documentation for this struct was generated from the following file:

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.