I recently made the jump from vb to c# and must say that I like it a lot but I am hitting a few speed bumps on the way. Hopefully this will be a straight forward question. I am trying to send a UDP packet on a timed interval (every 100 ms) to some specified port and address. After each send, I am trying to listen/receive on the same port for any response from the last command.
Currently I can send and separately just fine but I can't seem to get it to work at the same time. I am almost positive that I should be using the asynchronous method but I'm just not sure how to implement it. Also, I have been through just about every forum I know and downloaded every example I can find but nothing i have found so far provides examples of sending and receiving on the same port without closing the connection.
I'm not looking for someone to write code for me so just any help on the matter would be great.
ps. If anyone is interested. I am sending motor control commands to an arduino board. Upon receiving a UDP packet the arduino board sends a response back to the IP address and Port from which the packet was sent from.
This post has been edited by Brian2sos: 05 July 2012 - 06:16 PM