051 _ Delphi advanced network programming

Source: Internet
Author: User
Tags ftp file get ip ftp client
Document directory
  • Delphi advanced network programming
Delphi advanced network programming

DelphiTutorial Series of books(051)DelphiAdvanced Network Programming Organize netizens (state)Email:Shuaihj@163.com

:

Source code of the PDF attachment

  • Author: BAO min Wu Hao
  • Press: People's post and telecommunications Press
  • ISBN: 7115095256
  • Mounting time: 2002-12-23
  • Published on: February 1, August 2001
  • Start: 16
  • Page number: 372
  • Version: 1-1

Introduction

This book introduces how to use Delphi to implement network programming for Windows. The examples in this book make full use of the features of Delphi VCL and Winsock APIs to conveniently and quickly implement various network functions. The book consists of four parts: The first part introduces the TCP/IP protocol, Winsock knowledge and basic network components of Delphi; the second part explains how to use the advantages of Delphi and WinSock to implement the main protocol and the applications used inside the LAN. The third part is the implementation of common coding algorithms and encryption on the network; part 4 appendix provides common references for network programming. This book provides rich examples with all the implementation code. This book is suitable for programmers who use Delphi to develop network programs.

Directory

Chapter 2 TCP/IP protocol 1

1.1 TCP/IP protocol family 1

1.1.1 OSI model 1

1.1.2 DOD Model 2

1.1.3 main TCP/IP Protocol 3

1.1.4 process/application layer protocol 4

1.1.5 host-host Layer Protocol 5

1.1.6 Internet Layer Protocol 6

1.2 introduction to TCP/IP 7

1.2.1 IP packet data encapsulation 7

1.2.2 segment and reorganize IP datagram 8

1.2.3 IP address and subnet mask 8

1.2.4 domain name 9

1.2.5 port 10

1.2.6 Uri and Its Related Forms 10

Chapter 2 Winsock knowledge 12

2.1 Network Programming Interface (Winsock API) 12

2.2 WinSock programming model 12

2.2.1 Evolution from the socket programming model in UNIX to Winsock 12

. 2.2.2 understanding socket 13

2.2.3 use Winsock for development 13

2.3 description of common Winsock structures 14

2.3.1 sockaddr_in structure 14

2.3.2 hostent structure 16

2.4 introduction to common Winsock functions 16

2.4.1 basic socket function 17

2.4.2 database functions 17

2.4.3 extended functions provided by the Winsock specification 18

2.5 common Winsock functions 20

2.5.1 initialize Winsock 20

2.5.2 create socket 20

2.5.3 bind 21

2.5.4 establish socket connection 22

2.5.5 network I/O functions 23

2.5.6 disable socket 24

2.6 error handling 24

2.6.1 error handling function 24

2.6.2 common error codes 25

2.7 use Winsock API to implement finger 26

2.7.1 basic process 26

2.7.2 use Winsock API to implement finger 26

2.8 use Winsock API to implement echo 29

Chapter 2 Delphi network component 33

3.1 Delphi Socket network component introduction 33

3.1.1 clientsocket component 34

3.1.2 serversocket component 36

3.2 Delphi fastnet network component Introduction 37

3.2.1 nmdaytime component 38

3.2.2 nmecho component 39

3.2.3 nmfinger component 39

3.2.4 nmftp component 40

3.2.5 nmhttp component 45

3.2.6 nmmsg component 48

3.2.7 mmsgserv component 49

3.2.8 nmnntp component 49

3.2.9 nmpop3 component 52

3.2.10 nmsmtp component 54

3.2.11 nmstrm component 58

3.2.12 nmstrmserv component 59

3.2.13 nmurl component 59

3.2.14 nmuuprocessor component 60

3.2.15 nmudp component 61

3.2.16 powersock component 63

3.2.17 generalserver component 69

3.3 Delphi other network components 69

3.3.1 webdispatcher component 69

3.3.2 pageproducer component 71

3.3.3 querytableproducer component 73

3.3.4 datasettableproducer component 75

3.3.5 datasetpageproducer component 75

3.4 network programming using components 76

3.4.1 use the nmfinger component to implement the finger function 76

3.4.2 use the nmecho component to implement the echo function 79

Chapter 3 client programs and server programs 83

4.1 Introduction to network customer service system 83

4.2 Communication form between the server and the client 83

4.3 Use the fastnet component to transmit character information 85

4.4 use the fastnet component to transmit stream information 89

4.5 Use the socket component for information transfer 93

4.5.1 differences between socket components and fastnet components 93

4.5.2 basic functions 93

4.5.3 client program 93

4.5.4 server program 97

Chapter 1 basic network functions 5th

5.1 Get IP address 103

5.1.1 obtain IP address 103 using System Tools

5.1.2 Use the gethostbyname function to obtain IP address 104

5.1.3 use the wsaasyncgethostbyname function to obtain the IP address 106

5.1.4 handling of multiple IP addresses 109

5.1.5 differences between IP addresses and actual addresses 111

5.2 obtain subnet mask 113

5.2.1 obtain subnet mask 113 in Windows NT

5.2.2 obtain subnet mask 116 in Window 9x System

5.3 obtain computer name 117

5.3.1 obtain and set the host name 117

5.3.2 obtain remote host name 120

5.4 network connection detection 121

5.4.1 use wininet advanced function library function to detect network status 122

5.4.2 Check network status by reading system status parameters 123

5.5 get DNS settings 124

5.5.1 obtain DNS information in Windows NT 124

5.5.2 obtain DNS information in Windows 9x 126

5.6 obtain Nic information 127

5.6.1 use guid to get the NIC address 127

5.6.2 NetBIOS to obtain MAC address 129

5.6.3 obtain MAC address 131 using RPC

Chapter 2 TCP-related network protocol applications 6th

6.1 HTTP client implementation 134

6.1.1 HTTP 134

6.1.2 HTTP 136

6.1.3 compile the page browsing procedure 138

6.1.4 adjust Internet attributes 143

6.1.5 use the nmhttp component to access the authentication site 145

6.1.6 The headerinfo attribute of the nmhttp component is 148

6.1.7 access the site through proxy 148

6.1.8 about Cookie 151

6.1.9 download URL resource 152

6.1.10 download progress display 154

6.2 FTP client implementation 156

6.2.1 Introduction to FTP 156

6.2.2 file permissions on the FTP server: 156

6.2.3 FTP directory browsing 157

6.2.4 FTP directory operation 163

6.2.5 FTP file operation 166

6.3 POP3 client Implementation 171

6.3.1 POP3 171

6.3.2 receive email 172

6.3.3 prepare email reminder program 178

6.4 SMTP client implementation 183

6.4.1 SMTP Protocol Introduction 183

6.4.2 send email 183

6.4.3 send anonymous email 189

6.4.4 send mail list 191

6.4.5 send a message 197 to the system default email program

6.5 Telnet client implementation 201

6.5.1 Telnet Protocol Introduction 201

6.5.2 a simple Telnet client 201

6.5.3 Telnet negotiation method 205

6.5.4 constants used by Telnet 205

Chapter 2 UDP-related network applications 7th

7.1 send UDP packet 208

7.1.1 use the nmudp component to send UDP packets 208

7.1.2 use the Winsock function to send UDP data 212

7.2 use UDP protocol for network broadcast 215

Chapter 2 ICMP-related network applications 8th

8.1 ping command program implementation 220

8.2 tracert command program implementation 226

Chapter 2 CGI and ISAPI related programming 9th

9.1 CGI and ISAPI basics 234

9.1.1 public Gateway Interface (CGI) 234

9.1.2 isapis 236

9.1.3 CGI and isapi url 237

9.2 create a web application 237

9.2.1 twebrequest and twebresponse 244

9.2.2 form handler 247

9.2.3 use HTML content generator to create a dynamic webpage 252

9.2.4 transfer binary data stream file 257

Chapter 2 proxy related network applications 10th

10.1 network proxy basics 259

10.1.1 cause of proxy use 259

10.1.2 principles of network proxy 259

10.2 SOCKS5 proxy client implementation 260

10.2.1 SOCKS5 main workflow and data format description 260

10.2.2 SOCKS5 identity authentication sub-negotiation 262

10.2.3 SOCKS5 proxy client program implementation 263

10.3 telnet proxy service program implementation 271

Chapter 2 Dialing Network Programming 11th

11.1 use the AT command to dial 282

11.2 use TAPI 284

11.3 use RAS (Remote Access Service) 290

11.3.1 use the system phone book to dial 396

11.3.2 manage phone book entries 300

11.3.3 create a dial-up connection 303 in the program

11.3.4 status notification 311

Chapter 2 IRC protocol programming 12th

12.1 basic concepts of IRC protocol 318

12.1.1 channel 318

12.1.2 message 319

12.1.3 nick name 319

12.2 install and use the IRC service 320

12.2.1 install IRC server 320

12.2.2 use the IRC client 322

12.3 IRC command 323

12.3.1 connection and LOGIN command 323

Channel operation 12.3.2 326

12.3.3 query command 330

12.3.4 other commands 331

12.4 write IRC client 332

12.4.1 ircclient controls 332

12.4.2 use the ircclient control to program 336

Chapter 2 common network programming codes 13th

13.1 mime encoding 342

13.2 CRC verification 345

13.3 hash algorithm 346

13.4 symmetric encryption algorithm 348

13.4.1 des algorithms 348

13.4.2 blowfish algorithms 349

13.4.3 idea 349

13.5 crypto programming 352

Appendix A common service port 356

Appendix B common RFC document No. 363

Appendix C Delphi Network Resources 366

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.