Im making a file manager (Server-Client application) so i can mess with remote computer files
im using listview to watch the remote files
Is there anyway possible to send a ListViewItem over a TCP Socket ? or i have to send information as a string and split them?
sorry for bad english.. thanks in advance 🙂
TCP socket is an endpoint for TCP protocol. TCP protocol transmits any binary data you might want to transmit. It is up to you to serialize your structures in a form that you can transmit over the wire.
There are several ways to serialize classes in .NET, such as binary serialization, XML serialization, and many third party libraries as well as manually.
ListViewItemexplicitly supports binary serialization by implementing ISerializable interface. Examples how to use it can be found here and here: