Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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] 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