Skip to content
This repository was archived by the owner on Mar 6, 2021. It is now read-only.

killerwhile/repeating-files-streaming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Files Streaming though HTTP

Java project that enables File Streaming through HTTP at blazing high throughput. Expect to max out your network interface. Based on Netty.io and heavily inspirated from Http Static File Server.

Usage

Server Side

Build it using maven.

Then:

    java -cp target/repeating-files-streaming-*.jar ch.noisette.io.httpstream.HttpStreamServerMain [portNumber [chrootDir]]
  • portNumber set the port the streaming server will listen too. If not set, a free port will be randomly picked up
  • chrootDir is the base directory from where file will be streamed. If not set, the default chroot dir is ${user.dir}/repeating-files. Particular care is taken to not go out of this chroot doitr
Client Side
    curl http://server:portNumber/relative/path/to/file[?numberOfTimesToRepeatTheFile]
  • numberOfTimesToRepeatTheFile tells the number of times the file will be append to the stream before closing the connection. It not set, the file will be appened forever.

About

Simple Files Streaming though HTTP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages