implement default port with tertiary expression

note uninitialised request structs will produce undefined behaviour
Merge pull request #5 from ichpuchtli/default-port

implement default port with tertiary expression