Chapter 8

Client (and Server) Sockets Communication

 

 

 

 

 

 

COMPLETED PROJECT DOWNLOAD

 

 

 

 

What we have in this chapter?

  1. Introduction

  2. Overview

    Protocol Introduction

    TCP

    UDP

    Socket Basics

    C++ Simple Server Socket Program Example

  3. C++ Simple Client Socket Program Example

  4. C# Simple Client Server Socket Program Example Part a | Part b

  5. C# Adding Simple Client Socket Project Program Example

  6. VB .NET Simple Client Server Socket Program Example

  7. VB .NET: Adding Simple Client Socket Project Program Example Part a | Part b

  8. Creating Socket

  9. Binding

    Connecting

    Transferring Data

    Sending Data

    Receiving Data

    Closing

    Socket Options

    Socket Ioctls

  10. Creating Protocols Header Definition Class (C++) Part a | Part b | Part c | Part d | Part e

  11. Creating Protocols Header Definition Class (C#) Part a | Part b | Part c | Part d | Part e

  12. C++ Raw UDP Socket Program Example

  13. C# Raw UDP Socket Program Example

  14. C# Raw Socket Ping Program Example Part a | Part b

  15. C++ Raw Socket IGMP Program Example

  16. C# Raw Socket IGMP Program Example

  17. Setting a Socket to Non-Blocking Mode

  18. IP Multicasting

    Joining a Group

    Sending Data to a Multicast Group

    Leaving a Group

  19. C++ Multicast Program Example Part a | Part b

  20. C# Multicast Program Example

  21. VB .NET Multicast Program Example

  22. Raw Sockets

  23. Sending with Raw Sockets

    Receiving with Raw Sockets

    Sample: IPv4 Raw Socket and ICMP

    Using the HeaderIncluded Option

    Computing Protocol Checksums

    Simplified Socket Classes

    TcpClient

    TcpListener

    UdpClient

  24. C++ TcpListener Program Example

  25. C# TcpListener Program Example

  26. VB .NET TcpListener Program Example

  27. C++ TCP Client Program Example

  28. C# TCP Client Program Example

  29. VB .NET TCP Client Program Example

  30. C++ UDP Client and Server Program Example

  31. C# UDP Client and Server Program Example

  32. VB .NET UDP Client and Server Program Example

  33. Code Access Security

 

 

Summary

 

This chapter we will introduce the basics of programming with the UDP and TCP protocol over IPv4 and IPv6. We will begin by introducing the protocols themselves and continue with an introduction to the Socket class, followed by advanced topics such as socket options, IP multicasting, and raw sockets. The last few sections will cover the TcpClient, TcpListener, and UdpClient classes, which are very basic classes for TCP and UDP networking. The topics in this chapter will cover mostly the client-side aspect of network programming however the server program examples will also presented in order to test the client programs. The next chapter will cover in detail the server side of socket programming, and it will go into detail about asynchronous socket operations.

 

 

 

 

HOME

 

 

 

Custom Search

< IP Addressing and DNS | Part 1 | Part 2 | Part 3a | Part 3b | Part 4a | Part 4b | Part 5 | Part 6a | Part 6b | Part 6c | Part 6d | Part 6e | Part 7a | Part 7b | Part 7c | Part 7d | Part 7e | Part 8 | Part 9 | Part 10a | Part 10b | Part 11 | Part 12a | Part 12b | Part 13 | Part 14 | Part 15 | Part 16 | Part 17 | Part 18 | Part 19 | Part 20 | Server/listening Sockets >