Académique Documents
Professionnel Documents
Culture Documents
Chapter 2:
IP Programming Basics
Chapter 3:
Chapter 4:
DNS and C#
MA
3
41
87
125
TE
Connection-Oriented Sockets
167
Chapter 6:
Connectionless Sockets
209
Chapter 7:
249
Chapter 8:
Asynchronous Sockets
291
Chapter 9:
Using Threads
333
IP Multicasting
375
GH
Chapter 5:
CO
Chapter 10:
Part III
RI
The C# Language
TE
Chapter 1:
xix
RI
Part II
PY
Part I
AL
Introduction
ICMP
411
Chapter 12:
SNMP
441
Chapter 13:
SMTP
477
Chapter 14:
HTTP
511
Chapter 15:
Active Directory
535
Chapter 16:
Remoting
563
Chapter 17:
Security
593
Index
623
Contents
Introduction
Part I
Chapter 1
xix
The C# Language
Basics of .NET
Common Language Runtime (CLR)
MSIL Code
Installing a C# Development Environment
C# Development Options
Downloading the .NET Framework SDK
Installing the .NET Framework SDK
The C# Runtime Environment
Downloading and Installing the C# Runtime Package
Developing with the C# Runtime
C# Programming Basics
Creating C# Programs
Compiling and Running C# Programs
Using Multiple Source Files
Debugging C# Programs
Debugging MSIL Code
C# Features
C# Namespaces
Using Strings in C# Programs
C# Streams
C# Exception Programming
Summary
4
4
5
6
7
8
9
10
11
11
12
12
15
16
17
22
23
24
28
33
36
39
Contents
Chapter 2
Chapter 3
Chapter 4
IP Programming Basics
41
42
43
44
48
51
51
56
61
68
69
70
71
72
72
74
80
83
84
87
88
98
103
103
108
119
120
120
122
123
124
DNS and C#
125
127
127
130
Contents
Part II
Chapter 5
Chapter 6
xi
131
136
138
138
141
144
153
153
159
164
165
Connection-Oriented Sockets
167
168
168
172
172
173
174
176
177
177
180
184
198
198
202
207
Connectionless Sockets
209
210
211
215
217
219
xii
Contents
Chapter 7
Chapter 8
220
223
223
228
242
242
245
247
249
250
250
251
252
254
255
255
256
257
258
259
259
260
260
262
263
264
265
265
272
280
288
Asynchronous Sockets
291
292
293
Contents
Chapter 9
xiii
297
298
298
301
304
305
312
319
319
324
331
Using Threads
333
334
335
343
350
350
351
354
354
357
357
358
359
363
364
365
366
367
369
369
371
373
xiv
Contents
Chapter 10
Part III
Chapter 11
IP Multicasting
375
What Is Broadcasting?
Local versus Global Broadcasts
Implementing Broadcasting with C#
Using Broadcast Packets to Advertise a Server
The Advertising Loop
What Is Multicasting?
Multicast Techniques
Sending Multicast Packets through Routers
C# IP Multicast Support
C# Socket Multicasting
C# UdpClient Multicasting
Sample Multicast Application
Testing the Multicast Chat Program
Summary
376
376
377
382
382
390
391
392
393
394
399
402
405
406
409
ICMP
411
412
412
413
415
415
416
417
417
417
420
420
422
423
425
426
431
Contents
Chapter 12
Chapter 13
xv
432
434
435
435
437
438
SNMP
441
Understanding SNMP
SNMP Commands
Community Names
Common Management Information Base
Working with SNMP Packets
SNMP Packet Format
SNMP Packet Layout
SNMP Communication
Creating a Simple SNMP Class
The SNMP Class Program
Walking through the Class
The SimpleSNMP Program
Testing the Program
Watching the Packets
Using Vendor MIBs
The Cisco CPU MIB
The CiscoRouter Program
Using GetNextRequest Queries
Extracting the Next MIB
The getnextMIB() Method
The MAC Address Program
Testing the Program
Summary
442
443
444
445
448
448
450
452
452
453
455
457
461
462
463
463
466
469
469
470
471
473
474
SMTP
477
E-mail Basics
The MTA Process
478
478
xvi
Contents
Chapter 14
480
481
483
483
484
485
486
487
488
488
491
493
494
495
495
499
501
501
504
510
HTTP
511
512
512
515
516
519
521
522
523
525
528
529
531
532
533
534
Contents
Chapter 15
Chapter 16
xvii
Active Directory
535
536
536
537
539
539
543
543
546
546
550
556
556
557
558
558
560
561
Remoting
563
564
564
571
574
575
576
577
577
577
578
578
579
583
585
585
586
590
xviii
Contents
Chapter 17
Index
Security
593
594
594
595
596
597
603
604
606
610
610
612
615
621
623