C# Corner

  About Socket
A Socket is a software object that can work as an end point which is used for establishing a bidirectional communication network link between a server and a client side program. In UNIX operating system that socket is endpoint for inter process communication (IPC) but In Java Socket classes represent the communication between client and server programs. Socket classes handle client-side communication and server Socket classes are handle server-side communication. In communication network there are mainly two types of classes first one is active and second one is passive. Active sockets are connected with the remote active sockets through an open data connection and when that connection is off then the active sockets at each end point are auto destroyed. Passive sockets are not connected because they wait for an incoming connection that will spawn a new active Socket.
Related resources for Socket
  • Sending An HL7 Message, Receiving It Using A Listener And Sending An Acknowledgement Back1/18/2018 11:33:55 PM. HL7 (Health Level Seven) is a set of standards, formats and definitions for the exchange, integration, sharing, and retrieval of electronic health information. The HL7 standards are produced by the HL
  • Socket.io Programming With Example In Node.js12/8/2017 12:04:01 PM. Hello every one today I will explain about socket.io in Node JS
  • Creating A Chat Application In Node.js With Express, MongoDB, Mongoose And Socket.io12/5/2017 3:23:04 PM. In this article, we are going to create a chat application in NodeJS with the back end MongoDB. We will also be using Mongoose for creating the MongoDB models and Socket.io for making multi direction
  • How To Use WebSockets In ASP.NET Core - Day Nine8/3/2017 6:41:04 AM. In the previous article of this series, we discussed the URL rewriting middleware concept within .net core applications. Now in this article, we will discuss about web sockets and how to use web socke
  • How To Make A Chat Application Using Sockets In Java4/17/2017 12:42:11 AM. In this article, you will learn how to make a chat Application , using Sockets in Java.
  • NodeJS By .Net Platform7/7/2016 12:20:20 AM. In this article you will learn about NodeJS By .Net Platform.
  • Voice of a Developer: Javascript WebSocket - Part 275/18/2016 1:28:12 PM. In this article, we will understand WebSocket that is a new revolution in client server communication. This is Part 27 of the article series.
  • Send and Receive Data Using Socket4/28/2015 7:19:05 AM. In this blog you will learn how to send and receive data via TCP/IP using Socket in .NET Framework
  • An Overview of WebSocket and Hub in SignalR4/9/2015 4:26:36 PM. This article describes the two main functionality of SignalR, WebSockets and SignalR Hub.
  • Applied C#.NET Socket Programming10/20/2014 8:45:36 PM. This article explains the key networking concepts, for instance ISO stack, of TCP/IP under the C# framework by employing its essential socket classes and how applications can logically and physically be distributed in a network environment.
  • Socket Programming in C#8/28/2014 1:47:31 AM. This program is useful for a starter who wants to write C# code using .Net Sockets.
  • Learn HTML5 - Part 4: WebSocket API6/12/2014 2:34:19 PM. This part will drive you to basics of WebSocket APIs of HTML5 and how to implement them on the client side.
  • HTML 5 Web Sockets9/6/2013 3:08:21 PM. HTML 5 introduced a new specification for Bi-Directional communication or Full Duplex connection between the server and the client
  • InetAddress and Datagram Class In Java6/29/2013 4:15:44 PM. In this article we discuss the InetAddress, DatagramSocket and DatagramPacket classes in Java.
  • How To Make a Chat Application in C#6/24/2013 8:33:15 PM. In this article I will show you how to make a chat application in C#,
  • How the URL and URLConnection Classes Work In Java6/12/2013 8:19:26 PM. In this article we discuss the URL and URLConnection classes in Java.
  • Introduction To Socket Programming In Java6/10/2013 6:49:46 PM. In this article we discuss socket programming in Java
  • HTML5 WebSockets (Test WebSocket For Broadcasting): Part 35/31/2013 3:14:30 PM. As you learn about HTML5 WebSockets and testing with client server in my previous article here in this article we will going to test the websockets for broadcasting messages.
  • HTML5 WebSockets (Test WebSocket For Client/server) : Part 25/30/2013 4:29:17 PM. As you learn about HTML5 WebSockets in my previous article which is introduction article here in this article we will going to test the websockets.
  • HTML5 WebSockets Introduction: Part 15/30/2013 11:00:22 AM. As here I am writing article about HTML5 WebSockets, let’s concentrate on it, on HTML5 Server Sent Events I will be writing another article.
  • Datagram Socket Listener Windows Store App1/7/2013 4:03:55 AM. How to create Windows Store Apps for Datagram Socket Listener using JavaScript.
  • Host WCF Websocket Service as Windows Service12/31/2012 12:14:46 PM. Here in this article we will learn how to host a WCF Websocket service as a Windows service.
  • Socket Closing Windows Store Apps12/21/2012 12:15:13 PM. In this article I described how to create a Windows Store App for Closing the Socket using JavaScript.
  • Web Socket in Windows Store Apps10/26/2012 5:00:44 PM. In this article I described how to create a Windows Store App to to use a Message Web Socket to send UTF-8 strings using JavaScript.
  • Introduction to Parametric Singleton Pattern10/4/2012 11:55:17 AM. This article explains about Parametric Singleton Pattern.
  • WinChat For .NET9/30/2012 2:48:50 AM. WinChat For .NET is a simple peer-to-peer chatting program that functions very similarly to the WinChat program provided by Windows 2000. It provides all the functionalities that the original WinChat program provides.
  • FileSharing Server in C# and .NET9/29/2012 7:28:48 AM. The server acts as a File Sharing Server, it listens for multiple clients to connect to it. The Clients have a option to either Download any of the Files available with the server for download.
  • SharePoint 2010 - Create SSL Enabled Site8/16/2012 6:20:28 PM. As part of development activities we might need to create a SSL enabled site inside SharePoint 2010. These sites will be accessed using HTTPS instead of HTTP.
  • Websocket - Server Using HttpListener and Client With ClientWebSocket8/4/2012 12:58:25 PM. In this article you will see how to host a Websocket service as a windows service.
  • .NET 4.0 MEF FAQ (Socket, Plug and Extension)5/15/2012 1:23:26 PM. This FAQ deep dives in to .Net 4.0 MEF fundamentals (Import and Export) and also explains when to use MEF over DI / IOC. This article also explains step by step on how to use MEF in various technologies like Silverlight, WPF and ASP.NET.
  • Check if Email Address Really Exist or not Using C# 5/15/2012 12:58:25 PM. This article demonstrate basic technique for checking if particular email is exist or not. using SMTP protocol specifications in RFC 821.
  • Send and receive data on a udp socket.4/10/2012 8:05:22 AM. I am writing a simple code to send and receive data on a udp socket.
  • Multithreaded Sockets (Multithreaded Server) and Working With URL Class2/23/2012 11:00:25 PM. In this article we describe the basic need of creating a Multithreaded server and what is the URL class and its methods. We also give examples of Multithreaded server and URL classes method.
  • Networking in JAVA2/20/2012 5:38:08 PM. In this article we are exploring networking using TCP/IP protocols and try to make a small server and clients and show some information.
  • How to Secure a Web Site Using SSL1/18/2012 11:36:57 PM. Secure communication is an integral part of securing your distributed application to protect sensitive data, including credentials, passed to and from your application, and between application tiers.
  • Web Service Design for Chunked Transfer of Large Quantities of Data8/19/2011 7:33:43 AM. In this article we are going to demonstrate design techniques which can be used to produce such Web service. Solution which will be developed along the course of this text is for demonstration purpose only and cannot be applied to practical, real world problems as is. But we hope that methods used to develop it can be applied to much more complex cases.
  • Websocket API in HTML 56/10/2011 12:08:13 PM. Here you will see Websocket API in HTML 5.
  • Crystal Report - Error returned from Windows Sockets API9/29/2010 11:49:04 PM. Crystal Report - Error returned from Windows Sockets API
  • Create Socket based Email Application in Vb.net8/9/2010 11:52:20 PM. In this we will learn how to create email application in vb.net
  • Printing in C#8/5/2010 11:40:52 PM. This application will send raw data to a networked printer.
  • How to create proxy server between application and remote host3/3/2010 1:41:59 AM. This article will show how to create proxy-like server that will stand between application (client) and its remote server using asynchronous sockets.
  • Set up Secure Sockets Layer (SSL) using Digital Certificates3/25/2009 12:27:27 PM. This article explains how to secure an IIS Web application using SSL certificates.
  • Set up Secure Sockets Layer (SSL) using Digital Certificates3/6/2007 9:33:51 AM. This article explains how to secure an IIS Web application using SSL certificates.
  • Set up Secure Sockets Layer (SSL) using Digital Certificates3/6/2007 9:33:51 AM. This article explains how to secure an IIS Web application using SSL certificates.
  • Set up Secure Sockets Layer (SSL) using Digital Certificates3/6/2007 9:33:51 AM. This article explains how to secure an IIS Web application using SSL certificates.
  • A Simple Multi-threaded TCP/UDP Server and Client V2.1/31/2007 4:07:15 AM. This is the second version of my client/server program. The server and the client can be run on the same machine or on different machines. The following is the brief description of the server and the client programs specifically.
  • FTP Server in C#8/30/2006 3:26:42 AM. The application is a simple implementation of FTP Protocol RFC 959.
  • Peer-to-peer Chat Program using Asynchronous Socket8/30/2006 1:53:46 AM. This is a simple chat program, which uses asynchronous socket to provide connection between two machines.
  • IP Lookup program in VB.NET4/13/2006 12:50:01 AM. This is an IP look up program that uses VB.NET Windows Forms and IPHostEntry to resolve the DNS request. You enter the URL in the first box and press the Look Up button and the IP shows in the bottom box.
  • IP Lookup program in VB.NET4/13/2006 12:50:01 AM. This is an IP look up program that uses VB.NET Windows Forms and IPHostEntry to resolve the DNS request. You enter the URL in the first box and press the Look Up button and the IP shows in the bottom box.
  • WhoIs in ASP.NET and VB.NET4/12/2006 5:57:42 AM. Quite often you want to know who owns a given domain. To obtain the registry information, you go to the respective registry and start a so called WHOIS query (lookup). The trick is that you have to know which registry is responsible for which TLD (Top Level Domain).
  • WhoIs in ASP.NET and VB.NET4/12/2006 5:57:42 AM. Quite often you want to know who owns a given domain. To obtain the registry information, you go to the respective registry and start a so called WHOIS query (lookup). The trick is that you have to know which registry is responsible for which TLD (Top Level Domain).
  • Adapter Pattern in VB.NET3/18/2006 6:20:20 AM. During object-oriented developments, some times we have to use an unrelated class along with our existing class hierarchy. The simplest solution is to make a wrapper or adaptor around the foreign class, which is acceptable by the existing class hierarchy. This is what known as the ADAPTOR PATTERN or WRAPPER PATTERN.
  • Adapter Pattern in VB.NET3/18/2006 6:20:20 AM. During object-oriented developments, some times we have to use an unrelated class along with our existing class hierarchy. The simplest solution is to make a wrapper or adaptor around the foreign class, which is acceptable by the existing class hierarchy. This is what known as the ADAPTOR PATTERN or WRAPPER PATTERN.
  • Creating your own Web Server using C#2/9/2006 1:57:46 AM. This article explains how to write a simple web server application using C#.
  • How to synchronize data in Pocket PC and main database1/30/2006 11:32:33 PM. The main objective of the article is to present how to synchronize the data between the Pocket PC database and main database using Pocket PC Emulator and Web Service in .NET
  • How to synchronize data in Pocket PC and main database1/30/2006 11:32:10 PM. The main objective of the article is to present how to synchronize the data between the Pocket PC database and main database using Pocket PC Emulator and Web Service in .NET
  • Multi-threaded Web Applications - Case II: Port Scanner1/28/2006 6:41:10 AM. This article continues the 4-parts series of Multi-threaded Web Applications. In the first part, I have demonstrated how you can use multi-threading with ASP.NET to make a web based search engine more responsive, and to reduce the time required to compose the result. In this article, I will demonstrate how you can apply the same technique to a web based port scanner.
  • Portscanning for Kazaa using C# Sockets1/3/2006 11:09:25 PM. In this article, you will learn how to write c# code to scan a host computer, and determine if it is running Kazaa, the popular P2P file sharing program.
  • Simple SMTP Mailer12/28/2005 1:45:10 AM. This is a simple program which shows how to send mail via SMTP without using any framework support. While using the .NET SMTP classes may be a little easier, it is good to be able to go under the hood and get your hands dirty to understand what is going on at the socket level. For simple text messages, this implementation works fine.
  • Socket Programming12/27/2005 7:01:32 AM. This is a simple Client/Server program showing the communication taking place between the client and the server.
  • WhoIs Sample Code12/27/2005 6:57:13 AM. Sample example shows you how to implement WhoIs...
  • TCP Date Client/Server12/27/2005 6:38:29 AM. Free to use Tutorials on Communicating using TCP Sockets on Microsoft's .NET Platform using C#...
  • TCP/IPLib Sample12/27/2005 6:03:15 AM. This compopnent contains both a TCP/IP server and client. TcpIpClient inherits from System.Net.Sockets.TCPClient and is very straight forward. After construction, specifying the host and port, a network connection is established by calling Connect(). Internally, upon a successful connection, the client receives a TcpIpPacket, which contains a unique cookie that is used in any subsequent transactions.
  • TCP Client and Server12/27/2005 5:38:25 AM. You need to compile the server and the client programs separately. Before compiling, change the IP address in both programs to match that of your machine (NOTE: You can get IP address of your machine if you run 'ipconfig' from the command prompt in Windows NT/2000 m/c's)
  • Socket Chat12/27/2005 5:14:00 AM. This is an implementation of a Chat program using sockets. Along with basic chat capability,
  • Console Based Chat12/27/2005 4:58:54 AM. This is a article on how to create a simple console based chat application using socket connections.
  • Real Time Application12/27/2005 4:48:29 AM. The Real time Application is a sample that shows the communication techniques between a client (TcpClient) and a server (TcpServer) application using Socket class on each side. The project also demonstrates how to using listview control in the real time project.
  • Network Programming in C# - Part 212/27/2005 4:21:17 AM. This is the second part of the series of articles about the network programming with C#.
  • Network Programming in C# - Part 112/27/2005 4:20:02 AM. The .NET framework provides two namespaces, System.Net and System.Net.Sockets for network programming
  • Simple Sniffer in C#12/27/2005 3:50:13 AM. This program shows you how to retrieve data from a packet using Sockets.
  • IP LookUp Program in .NET12/27/2005 1:27:08 AM. This is an IP look up program that uses C# Windows Forms and IPHostEntry to resolve the DNS request.
  • Distributed Cross Platform Applications, the Easy Way 12/26/2005 6:34:08 AM. There are many ways of transferring data from one process to another. All those methods have some advantages, but also some drawbacks.
  • Glue IIS with Business Logical Tier using Batching, Asynchrony, and Parallel Computation12/20/2005 12:36:50 AM. A great and unusual way to boost your web application performance and scalability five times or more.
  • Multithreaded N-N ChatApplication using Socket Programming10/19/2005 8:01:03 AM. Multithreaded N-N Chat Application is LAN based application. where any number of users can login and take part in chating.This is not a general chat room where a message sent, gets displayed to each person currently loged in. You can send message to only the intended receipent where you are assured that nobody other will get the message,except the main server where you will see all the messages sent through this application.