Minor change to API (renamed get_device_id to get_id). More complete Scala binding

This commit is contained in:
Joseph Henry
2017-10-16 15:12:37 -07:00
parent e8f1a4db73
commit fdd6010456
13 changed files with 288 additions and 76 deletions

View File

@@ -18,7 +18,7 @@ struct ZT {
static char* getDeviceId() {
char* id = new char [ZT_ID_LEN + 1];
zts_get_device_id(id);
zts_get_id(id);
return id;
}
@@ -28,7 +28,7 @@ struct ZT {
return addr_str;
}
static int socket() {
static int socket() {åå
return zts_socket(AF_INET, SOCK_STREAM, 0);
}