Question

I am new learner of c# and i want to send a text file in the form of segments from client to server using Udp in C#. but i do not know how to make segment of a text file and send it to the server kindly suggest me some good solution to this problem

Was it helpful?

Solution

Welcome to stack overflow!

Give this a shot. http://social.msdn.microsoft.com/Forums/en-US/92846ccb-fad3-469a-baf7-bb153ce2d82b/simple-udp-example-code

Replace

string text_to_send = Console.ReadLine();

With some file IO bits from here. http://msdn.microsoft.com/en-us/library/db5x7c0d(v=vs.110).aspx

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top