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

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -