https://github.com/mhutter/gudcat
Send data via UDP in a controlled manner
https://github.com/mhutter/gudcat
Last synced: over 1 year ago
JSON representation
Send data via UDP in a controlled manner
- Host: GitHub
- URL: https://github.com/mhutter/gudcat
- Owner: mhutter
- License: mit
- Created: 2016-08-10T14:42:29.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-08-23T14:39:11.000Z (almost 4 years ago)
- Last Synced: 2025-01-29T02:24:52.226Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gudcat
[](https://godoc.org/github.com/mhutter/gudcat)
gudcat lets you send data via UDP in a more or less controlled manner.
## Synopsis
```bash
# on the server
gudcat server :3000 > target.file
# on the client
gudcat client -size 512 -delay 1ms < source.file
```
## Installation
go get -u github.com/mhutter/gudcat/gudcat
(yep, thats `gudcat` twice)
## Usage
Usage:
gudcat client [options] address
gudcat server address
### Client
Usage:
gudcat client [options] address
Read data from stdin and send it to
via UDP.
Usage of flags:
-delay duration
Delay between packages. Valid time units are 'ns', 'us' (or 'µs'),
'ms', 's', 'm', 'h'.
-size int
package size in bytes (default 64000)
Examples:
gudcat client -delay 10ms -size 510 localhost:3388 < input.file
gudcat client '[fe80::1]:3388'
### Server
Usage:
gudcat server [options] address
Listen on
for data and print it to stdout
Options:
-timeout duration
Valid time units are 'ns', 'us' (or 'µs'), 'ms', 's', 'm', 'h'.
Timeout: The timeout will only start once the server has
received some data. New data will reset the timeout.
Examples:
gudcat server -timeout 1s :3388
gudcat server [::]:3388
gudcat server 127.0.0.1:3388