472,110 Members | 2,289 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,110 software developers and data experts.

c# - file transfer - using sockets

I need help coding a file transfer in C#. It would be over TCP/IP using sockets...
most of the solutions i have come across, they use networkstream
and i have read online that there is no need to use networkstream with c# sockets... so how do I do it?
also, do I need to worry about serialization/deserialization?
any help would be greatly appreciated
Aug 28 '07 #1
3 3308
is my question clear?
Aug 29 '07 #2
Hi......... This Is.................how To Convert Filestream To Bytestream Using C#.net
Aug 29 '07 #3
Plater
7,872 Expert 4TB
Well, what is your trouble then?

Create your server/client programs using the Socket object (instead of TcpClient and TcpListener) and then read and write using the Send() and Receive() functions on the socket.
Aug 29 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by clintonG | last post: by
11 posts views Thread by Abhishek | last post: by
3 posts views Thread by Papanii | last post: by
2 posts views Thread by Joe_Black | last post: by
2 posts views Thread by Pramod | last post: by
10 posts views Thread by David | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.