Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattbui/networkproject
https://github.com/mattbui/networkproject
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mattbui/networkproject
- Owner: mattbui
- Created: 2017-09-15T13:12:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-29T08:50:10.000Z (almost 4 years ago)
- Last Synced: 2024-10-30T02:54:38.748Z (about 2 months ago)
- Language: Java
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Network Protocols
A toy project, implemented reliable data transfer network protocol to transfer string to 3 server simultaneously using raw socket
compile:
```
javac -cp rocksaw-1.1.0.jar; *.java
```run servers:
```
java -cp rocksaw-1.1.0.jar; runServer
```example: `java -cp rocksaw-1.1.0.jar; runServer 3200 1600 100`
run client:
```
java -cp rocksaw-1.1.0.jar; runClient
```
example: ``java -cp rocksaw-1.1.0.jar; runClient 192.168.100.10 3200 helloWorld!``Note:
- The rocksaw dll file is 32bits so this need to be compile by java 32bits
- Run command prompt with administrator's permission.
- Client's fix port is 80, consider not to use the same port for servers if client and servers run in the same machine.
- Time for client to shutdown is a little bit long ( this doesn't happen on ubuntu, it shuts down right away) so please be patient.