Skip to content

Commit

Permalink
0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Immueggpain authored and Immueggpain committed Dec 28, 2019
1 parent 1577d93 commit 358c734
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.github.immueggpain</groupId>
<artifactId>simple-streaming</artifactId>
<version>0.0.1</version>
<version>0.0.2</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
version = Launcher.VERSTR, subcommands = { HelpCommand.class, StreamServer.class, Serve.class })
public class Launcher implements Callable<Void> {

public static final String VERSTR = "0.0.1";
public static final String VERSTR = "0.0.2";
public static final int LOCAL_PORT = 2233;
public static final int LOCAL_OVPN_PORT = 1194;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ private void accept_thread(int listen_port) {
private void send_thread(Socket socket) {
try {
OutputStream os = socket.getOutputStream();
byte[] buf = new byte[1024 * 64];

FileUtils.copyFile(new File(filepath), os);
long ct = FileUtils.copyFile(new File(filepath), os);
System.out.println("close socket " + ct);
socket.close();
} catch (Exception e) {
e.printStackTrace();
Expand Down

0 comments on commit 358c734

Please sign in to comment.