• Advertisement
Sign in to follow this  

socket vs streamwriter

This topic is 3233 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm programming sockets in C# and i would like to know what the differences are between the socket class and the streamwriter class. Especially for multithreading and game development. Which one would you choose and why?

Share this post


Link to post
Share on other sites
Advertisement
I'm not sure what you're asking. StreamWriter is a class that helps you to write data to an underlying stream (which may be a file on disk, a stream in memory, a network stream etc) and Socket is a class that allows you to transfer bytes over a network; I don't know you can really compare the two.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement