Skip to content

Vilgefortzz/send-file-via-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

send-file-via-http

Sending files via http based on server-client

Install Gorilla WebSocket:

$  go get github.com/gorilla/websocket

To run the program, start the server with passing arguments:

$ go run server.go -- arg1
  • arg1(optional) - host name (e.g. 127.0.0.1)

Next, start the client with passing arguments:

$ go run client.go -- arg1 arg2
  • arg1 - name of the file located in send-files directory (e.g. hello.go)

  • arg2(optional) - host name (e.g. 127.0.0.1)


To run tests from /tests (server must be running):

$ go test -v

Releases

No releases published

Packages

No packages published

Languages