Are there any ways to send anything besides strings through a tcplistener? Because all of the examples that I have seen so far involve encoding a string to an array of bytes, sending that through, and decoding it on the other side.
Encoding.ASCII.GetBytes("message");
//This is then sent as an array of bytes
What if I wanted to send a float through, or an int through, or something else? Would this involve 'converting' an object to an array of bytes and sending that over?
[Edit] I apologize if this is a stupid question, but I'm trying to learn more about networking here.