TCP/IP Socket Programming in C# .Net For Coders & Students

TCP/IP Socket Programming in C# .Net For Coders & Students

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 4.5 Hours | 905 MB

Learn socket programming in C# .Net , use async/await to create distributed applications, build a class library

Learn socket programming in C# .Net

Get proficient in computer network socket programming using TCP/IP streaming sockets and become a better professional programmer.

An important concept of socket programming & network communication is covered in every video lecture. Concise C# code examples are supplied in Visual Studio solution form, and a demo after every couple of lectures will show you practical implementation of the concepts described earlier.

By the end of this course, you will be able to create CSharp .Net software capable of sending and receiving data over TCP/IP sockets on peer to peer basis with async and await keywords. You will learn not only socket programming, but async/await keywords as well. The course will make you a better programmer.

Why take this course?

You should take this course if you’re a professional(or student) with some coding experience in the past but lack understanding of how computer networks work on a software level(either in C#, Java, or C++).

You will learn techniques which are useful in real life scenarios commonly faced by programmers.

Many students of distributed application programming university courses have taken this course in the past and posted positive comments in reviews. They were able to easily complete their assignments on their own after watching this course.

Section 1 is available for free, it contains very useful information anybody can benefit from, whether they’re familiar with C#.Net or not.

Minimum upfront theory

A lot of courses tend to pile up theory ahead of the real code, this course is going take a minimum theory first approach.

You will learn essentials of network programming and start writing C# code in under 15 minutes.

Use of Windows Forms and class library

This course will use a class library project in C# along with Win Forms, an approach different from many other courses who use command line projects. My teaching methodology makes the course lot less boring and non-classroom like, practically useful and really suitable for professionals.

Short, sweet, to the point

Entire course is designed with the busy professionals in mind and the videos were created to make your online learning experience fruitful and easy. It is a project based training.

Asynchronous programming with async/await keywords, modern real world solution

async/await keywords were introduced in C# 5.0. In traditional socket programming scenarios, (multi) threading is use to create a responsive server or client. I have bypassed that route and shown you how to use asynchronous sockets directly. I first explain you what are async/await keywords and then I show how to use these for non-blocking network I/O. This part of the puzzle in the key to high traffic enterprise applications.

Reinforced learning

Each section contains a quiz on the end which is very helpful to ensure that you review and retain important bits of information imparted in relevant course section.

Join an active community

Become a part of the programmers community who have already taken this course. Your questions will be answered by the fellow students and the course instructor as well. Really a wonderful place to start learning!

Learn something new

Sockets are considered an advanced topic, a danger zone in programming parlance. Knowing it means you take your trade seriously.

Object Oriented Programming

This course teaches you how to create a distributed application using the principles of OOP. You are going to bridge the gap between the back-end C#.Net class library and the fron-tend WinForms application using an implementation of Publisher/Subscriber model based on EventHandler classes. This course also shows you what are event handlers and how to create your own event.

Bonus

You will also learn how to resolve a hostname to IP Address using System.Net.DNS class. You’ll also implement various sanity checks using tryparse and try/catch.

You don’t need to learn C to work on this course.

Socket Java, python socket udp

What you’ll learn

  • TCP/IP Socket programming basics and advanced level with async/await in C# .Net
  • Develop a sound understanding of how networking applications communicate in C# .Net
  • Network Programming using .Net Framework networking Namespaces in C#
Table of Contents

Introduction to TCPIP socket programming in C# .Net using Visual Studio
1 Introduction to TCPIP socket programming in C# .Net using Visual Studio

Deprecated Section Common Network Programming Topics
2 Understanding and Using Loop-back Address
3 Finding IPv4 Address using Code
4 Handling more than one clients connection requests on server
5 Bonus Maintaining a list of clients to handle multiple clients on your server
6 Bonus Demo – Handling multiple clients on TCPIP server

Essential Networking Theory For Socket Programming
7 The Host In Computer Network – Networking Essentials
8 IP Address In Computer Network – Networking Essentials
9 Port Numbers In Computer Network Socket Programming- Networking Essentials
10 ClientServer Model as used in TCPIP Stream Sockets – Networking Essentials
11 Enable the Telnet client utility – Networking Essentials

Socket Programming in C# For Beginners
12 Server Side TCPIP Socket Programming C# .Net Project Setup in Visual Studio
13 Client Side Socket Programming VS Project Setup, using methods Connect, TryParse
14 Socket.Send() & Socket.Receive() Calls On Client Side TCPIP Socket in C#.Net
15 Demo – Run TCPIP Client & Server network programs, improve Server
16 Section Summary
17 Demo – Accept Incoming Connections on Socket in C# .Net Using Telnet Client
18 Receive Data on a TCPIP Socket in C# .Net
19 Using Encoding.ASCII.GetString to Convert Bytes To String for socket transfer
20 Demo – Communicate between C# desktop & Android app, configure Windows Firewall
21 Socket Programming Send Data on a TCPIP Socket in C# .Net
22 Socket Programming Example Demo – Send and Receive Data on TCPIP Sockets in C#
23 Introduction to Client Side TCPIP Socket Programming in C# .Net

TCPIP Server Asynchronous Socket Programming With async & await Keywords in C#
24 Section Intro Asynchronous socket programming with async await in C# .Net
25 How to Stop Listening for New Connections and Disconnect Client Sockets Properly
26 Demo TcpListener.Stop and TcpClient.Close Calls to Stop Server
27 Section Summary TCPIP Server Side Asynchronous Socket Programming in C# .Net
28 Example Disadvantage of synchronous IO in C# .Net
29 Accepting a TCPClient Connection Asynchronously with await keyword in C#
30 Demo Accept TCPClient Asynchronously
31 Continuously Accept Client Connections, Exception Handling in C# async Method
32 Use System.Net.Socket.NetworkStream & StreamReader to read data from client
33 Demo Read Data On Network Stream and Endless Accept async in C#.Net
34 How to Handle Multiple Network Clients on Server in C# .Net
35 Demo Send Data to Multiple Network Clients from List at Once, SendAll Method

Async Client Side Socket Programming
36 Client side async socket Visual Studio C# project setup
37 Section Summary Async client socket programming in C# .Net with asyncawait
38 Client Socket Programming using async keyword in C#.Net
39 Creating a console application and adding C# socket library reference
40 Reading data from TcpClient socket network stream with ReadAsync in C# .Net
41 Demo Async Client side TCPIP socket programming in C# .Net
42 Writing data on the a client socket with StreamWriter in C# .Net
43 Demo Write data on TcpClient network stream with StreamWriter in C#.Net
44 Close Connection on TCPClient for socket programming in C# .Net
45 Demo Closing connection on TcpClient for socket programming in C# .Net

Using Publisher Subscriber Model To Add Events for socket library in C# .Net
46 Introduction to pubsub model and eventsdelegates in C#.Net
47 Adding a ClientConnected event to the server socket library in C# .Net
48 Adding a TextReceived event on the server to socket library in C# .Net
49 Publishing event TextReceived on client to socket library in C# .Net
50 Additional Events C# Source Code

Socket Programming Additional Helpful Topics in C# .Net
51 Finding IP Address & Hostname of Your Windows PC from Command Prompt
52 Role of DHCP and DNS in a Computer Network
53 Resolving Hostname to IP Address Using System.Net.DNS for socket programming C#
54 Demo Resolving Hostname with System.Net.DNS Class in C# .Net
55 How to use StreamReader.ReadLineAsync and StreamWriter.WriteLineAsync in C# .Net
56 Bonus UDP Socket Programming in C# .Net

Deprecated Section Creating a TCPIP socket server
57 Setting up the project in Visual Studio
58 Creating a TCPIP Server
59 Preparing a TCPListener
60 Listening for incoming connection requests
61 Demo, incoming connection requests
62 Getting hold of a TCPClient object
63 Reading data from a TCPClient network stream
64 Demo, reading data
65 Writing data to a TCPClient network stream
66 Demo, writing data

Deprecated Section Creating a TCPIP socket client
67 Setting up the project for socket client in Visual Studio
68 Connect to a TCPIP socket server in C# .Net
69 Send data to a TCPIP socket server
70 Demo, connect to TCPIP socket server and send data
71 Receiving data from a server
72 Demo, receiving data from server