summaryrefslogtreecommitdiff
path: root/support/dktools/dktools/en/dk-send.txt
blob: 9648f83d108e586b66807ca01dc780787d9110f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77

NAME

dk-send - Send data to one or multiple recipients (dk-recv processes)

SYNOPSIS

dk-send [<option(s)>] <port> [<file>]

DESCRIPTION

The program accepts incoming connection requests and establishes connections.
The file contents (or data from standard input) is sent to all recipients.

OPTIONS

-n <number>			Number of expected clients or ``unlimited''.
--number-of-clients=<number>	When specifying ``unlimited'' here, the
				last client must use the -t option.

-a <clients>			Comma-separated list of allowed client
--allow=<clients>		addresses. Each client address consists
				of an IP address (IPv4 or IPv6), optionally
				followed by a netmask (IP address or bit
				number). IP address and mask are separated
				by a slash.

-l				Listen on local interfaces only.
--local-only

-b <number>			Number of connection requests to queue
--backlog=<number>		if necessary.

-c <timeout>			Timeout in seconds for read attempt after
--connect-timeout=<timeout>	establishing a connection.

EXIT STATUS

0 on success, all other values indicate errors.

EXAMPLES

* Send an entire hard disk or partition
  dd if=/dev/sda bs=4096 | dk-send 9876

* ... to 3 recipients
  dd if=/dev/sda bs=4096 | dk-send -n 3 9876

* ... which must be in 192.0.2.0/255.255.255.0
  dd if=/dev/sda bs=4096 | dk-send -n 3 -a 192.0.2.0/255.255.255.0 9876
  or
  dd if=/dev/sda bs=4096 | dk-send -n 3 -a 192.0.2.0/24 9876

RESTRICTIONS

On Windows the file name length is restricted to _MAX_PATH (260) characters
if the file name contains a wildcard (* or ? character).

AUTHOR

Dirk Krause

HISTORY

The functionality of this program was available in ``dknet -s'' in version
3.x.x.

COPYRIGHT AND LICENSE

Run
  dk-send --license
to see license information.

SEE ALSO

http://sourceforge.net/p/dktools/wiki/Home/