Skip to content

Commit

Permalink
Minor modification
Browse files Browse the repository at this point in the history
  • Loading branch information
dujeonglee committed Oct 13, 2017
1 parent 1c90125 commit 1efb60b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion example/java/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static void main (String[] args)
final long handle = ncsocket.InitSocket(args[0], 500, 500);

do {
int ret = ncsocket.Receive(handle, buffer, 1500, info, 2, 500);
int ret = ncsocket.Receive(handle, buffer, buffer.length, info, info.length, 500);
if(ret == 1 && buffer[0] == BYEBYE)
{
System.out.println("Bye.");
Expand Down Expand Up @@ -59,6 +59,7 @@ else if(args.length == 3)
}
buffer[0] = BYEBYE;
ncsocket.Send(handle, args[1], args[2], buffer, 1);
ncsocket.WaitUntilTxIsCompleted(handle, args[1], args[2]);
ncsocket.FreeSocket(handle);
}
else
Expand Down
2 changes: 1 addition & 1 deletion example/java/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all clean
.PHONY: all clean run

LIBDIR := ../../lib
NATIVELIB := $(LIBDIR)/libjncsocket.so
Expand Down

0 comments on commit 1efb60b

Please sign in to comment.