-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:hsheth2/gonet into develop
- Loading branch information
Showing
20 changed files
with
350 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
sudo: required | ||
|
||
language: go | ||
|
||
go: | ||
- 1.6 | ||
|
||
services: | ||
- docker | ||
|
||
before_install: | ||
- docker pull hsheth2/gonet-base | ||
- docker run --privileged -v `pwd`:/go/src/github.com/hsheth2/gonet hsheth2/gonet-base:latest /bin/bash -c "cd /go/src/github.com/hsheth2/gonet && make && make test" | ||
|
||
script: | ||
- make depend build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright (c) 2015-2016 Harshal Sheth and Aashish Welling. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,31 @@ | ||
# GoNet | ||
[](https://godoc.org/github.com/hsheth2/gonet) | ||
[](https://travis-ci.org/hsheth2/gonet) | ||
[](https://goreportcard.com/report/github.com/hsheth2/gonet) | ||
[](https://codeclimate.com/github/hsheth2/gonet) | ||
[](http://www.opensource.org/licenses/MIT) | ||
|
||
A network stack written in Go with the CSP style. | ||
|
||
Note: This project only works on linux machines (because of its dependency on the tap device). | ||
|
||
Warning: This project is still under development. | ||
|
||
## Usage | ||
*Note: This project only works on linux machines (because of its dependency on the tap device).* | ||
|
||
To install `GoNet`: | ||
|
||
1. Run `go get github.com/hsheth2/gonet` | ||
2. In the directory, run `make`. | ||
|
||
You can use its functionallity by importing it in your own projects. See the GoDoc for documentation. | ||
|
||
We also included a simple demo application: a basic HTTP server. Once you have run `make` in the `GoNet` source directory, there will be an executable called `gohttp` in your Go bin. This executable will run the HTTP server, and will serve the files in whatever directory it is run in. | ||
|
||
Because `GoNet` runs on the tap interface, it will be accessible at `10.0.0.2`. | ||
|
||
## Contributors | ||
This project was created by [Harshal Sheth](https://github.com/hsheth2) | ||
and [Aashish Welling](https://github.com/omegablitz). | ||
|
||
|
||
## License | ||
GoNet is released under the [MIT License](http://www.opensource.org/licenses/MIT). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker rm gonet | ||
|
||
# should be run in gonet source directory | ||
docker pull hsheth2/gonet-base | ||
docker run -it --privileged --name gonet -v `pwd`:/go/src/github.com/hsheth2/gonet hsheth2/gonet-base:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.