mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
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:
committed by
Peter Johnson
parent
0f9f7309e3
commit
bc99d341fb
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user