/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
#include <stdlib.h>
#include <jni.h>
#include "SharedMemory.h"
#include "jdwpTransport.h"
#include "shmemBase.h"
#include "sys.h"
/*
* JNI interface to the shared memory transport. These JNI methods
* call the base shared memory support to do the real work.
*
* That is, this is the front-ends interface to our shared memory
* transport establishment code.
*/
/*
* When initializing the transport from the front end, we use
* standard malloc and free for allocation.
*/
}
void
{
return;
}
}
void
{
} else {
}
}
/*
* Class: com_sun_tools_jdi_SharedMemoryTransport
* Method: accept0
* Signature: (J)J
*/
{
if (rc == SYS_TIMEOUT) {
"Timed out waiting for target VM to connect");
} else {
}
return -1;
}
return CONNECTION_TO_ID(connection);
}
/*
* Class: com_sun_tools_jdi_SharedMemoryTransport
* Method: attach0
*/
{
const char *addrChars;
return CONNECTION_TO_ID(connection);
return CONNECTION_TO_ID(connection);
}
}
return CONNECTION_TO_ID(connection);
}
/*
* Class: com_sun_tools_jdi_SharedMemoryTransport
* Method: name
*/
{
char *namePtr;
} else {
}
}
return nameString;
}
/*
* Class: com_sun_tools_jdi_SharedMemoryTransport
* Method: initialize
* Signature: ()V
*/
{
if (rc != 0) {
return;
}
return;
}
}
/*
* Class: com_sun_tools_jdi_SharedMemoryTransport
* Method: startListening0
*/
{
return TRANSPORT_TO_ID(transport);
return TRANSPORT_TO_ID(transport);
}
}
}
}
return TRANSPORT_TO_ID(transport);
}
/*
* Class: com_sun_tools_jdi_SharedMemoryTransport
* Method: stopListening0
* Signature: (J)V
*/
{
}