Currently browsing category

C#

How to transfer Large File using C# Socket

Now I will discuss about, how we can transfer a large file (file size in GB) using Microsoft dot net socket programming using C# (C sharp) language. This code has written in Visual Studio 2005 (dot net 2). Basic Knowledge To cover this article you need to read my few …

Asynchronous Socket Server Programming for Beginner

It’s a sample Server socket code that code based on MSDN sample code. That code works asynchronously for send/receive data between client and server. By that code any one can transfer data easily as when he want. Here some string data has been transferred. Before sending string data just it …

Asynchronous Socket Client for Beginner

It’s a sample client socket code that code based on MSDN sample code. using System; using System.Net; using System.Net.Sockets; using System.Threading; using System.Text; // State object for receiving data from remote device. public class StateObject { // Client socket. public Socket workSocket = null; // Size of receive buffer. public …

File Transfer using C# .Net Socket Programming 3/3

Continued code… Server Code: [C#] using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; using System.IO; namespace beginSocketServer { //FILE TRANSFER USING C#.NET SOCKET PROGRAMMING – SERVER class Program { static void Main(string[] args) { try { Console.WriteLine(“That program can transfer small file. I’ve test up to 850kb file”); …