Skip to content

Commit

Permalink
0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Immueggpain authored and Immueggpain committed Dec 28, 2019
1 parent 048e165 commit 8d1da95
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 45 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.5</version>
<version>0.0.6</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
39 changes: 0 additions & 39 deletions src/main/java/com/github/immueggpain/simplestreaming/Hash.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
import picocli.CommandLine.HelpCommand;

@Command(description = "Streaming with OBS", name = "simple-streaming", mixinStandardHelpOptions = true,
version = Launcher.VERSTR, subcommands = { HelpCommand.class, StreamServer.class, Serve.class })
version = Launcher.VERSTR,
subcommands = { HelpCommand.class, StreamUpload.class, StreamServer.class, Serve.class })
public class Launcher implements Callable<Void> {

public static final String VERSTR = "0.0.5";
public static final String VERSTR = "0.0.6";
public static final int LOCAL_PORT = 2233;
public static final int LOCAL_OVPN_PORT = 1194;
public static final int BUFLEN = 1024 * 16;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;

@Command(description = "Start uploader", name = "upload", mixinStandardHelpOptions = true, version = Launcher.VERSTR)
@Command(description = "Start downloader", name = "download", mixinStandardHelpOptions = true,
version = Launcher.VERSTR)
public class StreamDownloader implements Callable<Void> {

@Option(names = { "-p", "--port" }, required = true, description = "server's port")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,9 @@ public Void call() throws Exception {

private static long copyLarge(final RandomAccessFile input, final OutputStream output, final byte[] buffer)
throws IOException {
long count = 0;
int n;
while (-1 != (n = input.read(buffer))) {
output.write(buffer, 0, n);
count += n;
}
return input.getFilePointer();
}
Expand Down

0 comments on commit 8d1da95

Please sign in to comment.