Hi, i need to create a server that handles both tcp and upd
so i have like:
ServerSocket tcpServer = new ServerSocket(port) // for tcp connection
....
DatagramSocket udpServer = new DatagramSocket(port) // for udp connections
What I want to know is how can I check if im receiving a TCP connection or a UDP connection ?
ex:
if(tcpConnection){ //do things}
...
if(udpConnection){ //do other things }