Chapter 8Client (and Server) Sockets Communication
|
||
|
What we have in this chapter?
OverviewProtocol IntroductionTCPUDPSocket BasicsC++ Simple Server Socket Program ExampleC# Adding Simple Client Socket Project Program ExampleBindingConnectingTransferring DataSending DataReceiving DataClosingSocket OptionsSocket IoctlsC# Raw Socket IGMP Program ExampleIP MulticastingJoining a GroupSending Data to a Multicast GroupLeaving a GroupSending with Raw SocketsReceiving with Raw SocketsSample: IPv4 Raw Socket and ICMPUsing the HeaderIncluded OptionComputing Protocol ChecksumsSimplified Socket ClassesTcpClientTcpListenerUdpClientC# TcpListener Program ExampleC++ TCP Client Program ExampleVB .NET TCP Client Program ExampleC# UDP Client and Server Program ExampleCode 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.
|
|
|
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 > |
||