summaryrefslogtreecommitdiff
path: root/grc/blocks/gr_socket_pdu.xml
blob: a175c36991323ba749df616286573a77b43b5c75 (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
<?xml version="1.0"?>
<!--
###################################################
## Socket PDU Message source/sink
###################################################
 -->
<block>
	<name>Socket PDU</name>
	<key>gr_socket_pdu</key>
	<import>from gnuradio import gr</import>
	<make>gr.socket_pdu($type, $host, $port, $mtu)</make>
    <param>
        <name>Type</name>
        <key>type</key>
        <value>TCP_SERVER</value>
        <type>enum</type>
        <option>
            <name>TCP Server</name>
            <key>"TCP_SERVER"</key>
        </option>
        <option>
            <name>TCP Client</name>
            <key>"TCP_CLIENT"</key>
        </option>
        <option>
            <name>UDP Server</name>
            <key>"UDP_SERVER"</key>
        </option>
        <option>
            <name>UDP Client</name>
            <key>"UDP_CLIENT"</key>
        </option>
    </param>
    <param>
        <name>Host</name>
        <key>host</key>
        <value></value>
        <type>string</type>
    </param>
    <param>
        <name>Port</name>
        <key>port</key>
        <value>52001</value>
        <type>string</type>
    </param>
    <param>
        <name>MTU</name>
        <key>mtu</key>
        <value>10000</value>
        <type>int</type>
    </param>
	<sink>
		<name>pdus</name>
		<type>message</type>
        <optional>1</optional>
	</sink>
	<source>
		<name>pdus</name>
		<type>message</type>
        <optional>1</optional>
	</source>
</block>