I have multiple threads using multiple sockets but all pointing to one port. Will it work? I have seen some threads saying multiple Applications cant use the same ports but I'm not sure it directly addresses this question
Example of the code
static IPEndPoint b = new IPEndPoint(IPADRESS, PORT);
static Thread listenThread = new Thread(listen);
static Thread sendThread = new Thread(send);
static void listen(){
Socket socket = new Socket;
socket.bind(b);
while(exit == false){
Socket.listen(10);
//handle Data
}
static void send(){
Socket socket = new Socket;
socket.bind(b);
while(exit == false){
Socket.send(msg)
}