c# - Can I send only byte array with asynchronous Socket class? -
i work on server/client program based on asynchronous socket. far see send() method of socket class accept byte buffer. have convert byte array or there other method?
what should send simple string example?
string sendmessage = "this clarified example now"; byte[] bytemessage = system.text.encoding.ascii.getbytes(sendmessage)
should need. i, one, fan of 30+ character function calls.
Comments
Post a Comment