How can I make a server answer to both UDP and TCP? We were tasked with making a QOTD server, and so far we’re able to make it answer to TCP but we don’t know how to make it answer with UDP.
The net
provides tools for both TCP and UDP.
But your question is unclear. What kind of server do you want to build? How shall it behave? What do you have so far?
1 Like
You don’t make a server but two.One for tcp and one for udp in separate goroutines but in the same main package. Look an example here.
2 Likes
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.