path: root/python/trx/udp_link.py
AgeCommit message (Collapse)AuthorFilesLines
2019-01-16python/trx: use CamelCase naming for basic classesVadim Yanitskiy1-1/+1
Change-Id: Ica9c56d01191dda38e63b51caba2ec8c63b671c9
2018-08-10apps/grgsm_trx: print bind / remote address and portv0.42.1Vadim Yanitskiy1-0/+6
Change-Id: If750d476f3972f1ab5c5b637438d14d40b1e3d87
2018-08-10apps/grgsm_trx: introduce bind address optionVadim Yanitskiy1-2/+2
The new option (-b --bind-addr) allows one to specify the bind address for both DATA and CTRL interfaces. By default, '' is used, so there are no restrictions for the L1 source address. Change-Id: I3339f686b53db07cfd1bff9a516f4bdc28058cd9
2018-08-10trx/ctrl_if.py: send control responses to where commands are fromVadim Yanitskiy1-4/+7
When we receive a control command, we should not simply send the response to the default destination, but send it back to the exact IP/prt from which the command originated. This ensures correct routing of responses even in case multiple programs are interfacing concurrently with a control socket. Cherry-picked from: I24a0bba6eed059b101af95dac7d059f34dd715fc Change-Id: I1f304ea887dc957d3ad53adb1e3c56ab27d8f196
2018-08-10trx/udp_link.py: set SO_REUSEADDR socket optionVadim Yanitskiy1-0/+1
Setting this option allows one to reuse existing connections, for example, by injecting CTRL commands or DATA bursts into existing connections. Cherry-picked from: I0882c76affa9a668a12d10967081054d2b666ed1 Change-Id: I6d256683a7aa0419cd5bd0a3eaa97aefdf3254f9
2018-08-10trx/udp_link.py: close socket in destructorVadim Yanitskiy1-3/+3
Previously it was required to call the UDPLink.shutdown() method manually in order to close a socket. Let's do it automatically using the destructor of UDPLink. Cherry-picked from: I59c3dc61ec58cd9effeb789947d28fd602ca91f4 Change-Id: Ief7aa21d1e50682a90616833b679741957193aae
2017-12-01trx: passing remote addr to bindPiotr Krysik1-1/+1
2017-11-05python/trx: follow GNU Radio class naming conventionsVadim Yanitskiy1-1/+1
2017-09-19Moved trx utilities from apps subdirectory - the grgsm_trx app need to be ↵Piotr Krysik1-0/+56