Chapter 8

Client (and Server) Sockets Communication

 

 

 

 

 

COMPLETED PROJECT DOWNLOAD

What we have in this chapter?

  1. Introduction

  2. Overview

  3. Protocol Introduction

  4. TCP

  5. UDP

  6. Socket Basics

  7. C++ Simple Server Socket Program Example

  8. C++ Simple Client Socket Program Example

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

  10. C# Adding Simple Client Socket Project Program Example

  11. VB .NET Simple Client Server Socket Program Example

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

  13. Creating Socket

  14. Binding

  15. Connecting

  16. Transferring Data

  17. Sending Data

  18. Receiving Data

  19. Closing

  20. Socket Options

  21. Socket Ioctls

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

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

  24. C++ Raw UDP Socket Program Example

  25. C# Raw UDP Socket Program Example

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

  27. C++ Raw Socket IGMP Program Example

  28. C# Raw Socket IGMP Program Example

  29. Setting a Socket to Non-Blocking Mode

  30. IP Multicasting

  31. Joining a Group

  32. Sending Data to a Multicast Group

  33. Leaving a Group

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

  35. C# Multicast Program Example

  36. VB .NET Multicast Program Example

  37. Raw Sockets

  38. Sending with Raw Sockets

  39. Receiving with Raw Sockets

  40. Sample: IPv4 Raw Socket and ICMP

  41. Using the HeaderIncluded Option

  42. Computing Protocol Checksums

  43. Simplified Socket Classes

  44. TcpClient

  45. TcpListener

  46. UdpClient

  47. C++ TcpListener Program Example

  48. C# TcpListener Program Example

  49. VB .NET TcpListener Program Example

  50. C++ TCP Client Program Example

  51. C# TCP Client Program Example

  52. VB .NET TCP Client Program Example

  53. C++ UDP Client and Server Program Example

  54. C# UDP Client and Server Program Example

  55. VB .NET UDP Client and Server Program Example

  56. 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 >