You probably want to use the System.Net.Sockets.TCPClient or UDPClient objects. You'll pick a port, or range of ports (search for assigned ports and pick from the unassigned range) and send your data directly as an array of bytes (this can easily be an entire class serialized into bytes or xml).
UDP can work great because you don't have to worry about maintaining connections and its designed for just shooting information without worrying about its arrival. A simple acknowledgement system lets you ensure you've got the current data.
|