Add option to change type of connection (TCP/UDP, TLS/DTLS/NoSec).

latest commit 61cf15d501
@jirihnidek jirihnidek authored