Changes remote_name to remote_ip (#87)

Was confusing, as remote_name seemed like a name but wasn't.
Also changes remote_ip in the C api to use an NT_String
This commit is contained in:
Thad House
2016-08-07 14:38:20 -07:00
committed by Peter Johnson
parent 0f9f7309e3
commit bc99d341fb
5 changed files with 10 additions and 10 deletions

View File

@@ -428,9 +428,9 @@ static jobject ToJavaObject(JNIEnv *env, const nt::ConnectionInfo &info) {
env->GetMethodID(connectionInfoCls, "<init>",
"(Ljava/lang/String;Ljava/lang/String;IJI)V");
JavaLocal<jstring> remote_id(env, ToJavaString(env, info.remote_id));
JavaLocal<jstring> remote_name(env, ToJavaString(env, info.remote_name));
JavaLocal<jstring> remote_ip(env, ToJavaString(env, info.remote_ip));
return env->NewObject(connectionInfoCls, constructor, remote_id.obj(),
remote_name.obj(), (jint)info.remote_port,
remote_ip.obj(), (jint)info.remote_port,
(jlong)info.last_update, (jint)info.protocol_version);
}