Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mhutter/gudcat
Send data via UDP in a controlled manner
https://github.com/mhutter/gudcat
Last synced: 25 days 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-08-23T14:39:11.000Z (over 2 years ago)
- Last Synced: 2024-06-20T03:48:26.428Z (6 months 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
[![GoDoc](https://godoc.org/github.com/mhutter/gudcat?status.svg)](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] addressRead 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] addressListen on
for data and print it to stdoutOptions:
-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