Document directory
- Windows Network Programming-Delphi
Windows Network Programming-Delphi
DelphiTutorial Series of books(084)《WindowsNetwork ProgrammingDelphiArticle Organize netizens (state)Email:Shuaihj@163.com
:
Part1
Part2
Part3
- Author: Xiao qiushui wenjuan
- Series name: Computer Programming Series
- Press: Tsinghua University Press
- ISBN: 7900630945
- Mounting time:
- Published on: February 1, January 2001
- Page number: 280
- Version: 1-1
Introduction
Internet technology is undoubtedly the biggest hotspot in today's computer technology. This book uses the latest version of Delphi, one of the most popular rad software, as a development tool. It tries its best to include popular protocols on the Internet, describes the development principles of network applications and how to implement them on the Windows platform. This book focuses on programming instances, supplemented by necessary technical points, and introduces in detail various aspects of network programming, covering most of the protocols used in network communication, including online chat, obtaining network parameters, sending and receiving emails, ping, FIP client, web server and browser, telnet server and client, rib s dial-up Internet access, and TAPI programming. This book is suitable for medium and senior programmers who use Delphi for Windows Network Programming. Of course, beginners can also benefit from this.
Directory
Instance 1 uses Winsock for online chat
Main Content
This example
Technical topics
※Winsock Introduction
※Use of major Winsock API functions
※Scktcomp encapsulation of WinSock APIs
Step -- Implement the chat program
Create a new project
Monitoring status at startup
Connect to chat server
Conversation between the client and the server
Instance 2 get host name and IP address
Main Content
This example
Technical topics
※How to obtain the Host Name and IP address
Step -- get host name and IP address
Create a new project
Provides two core functions
Create an abnormal window and hide it from taskbar
Complete other Interface Programming
Instance 3 Nic physical address
Main Content
This example
Technical topics
※Netbios Network Programming Interface
※Netbios Basic Concepts
※Netbios Programming
※Use NetBIOS to obtain Network Parameters
Step -- Obtain the physical address of the NIC
Create a new project
List available Lana numbers when a form is created
Resets the selected Lana number.
Obtain a physical address
Instance 4 FTP Client Program
Main Content
This example
Technical topics
Strong FIP Protocol and its implementation methods
※Using tnmftp Components
※Microsoft Internet Transfer
※Use wininet API directly
Step -- Implement FTP Client Program
Create a new component tdragdropftp
Install this component
Use this component to implement FTP client programs
Areas for improvement
Instance 5 ping and trace route
Main Content
This example
Technical topics
※Internet Control Packet protocol ICMP
※Icmp Message format
※Icmp Packet Classification
Step 1-implement Ping utility
Create a component ticmp
Tping component derived from ticmp
Use the Tping component to create a Ping utility
Step 2: implement the trace route Utility
Ttraceroute component derived from ticmp
Use the ttraceroute component to create a trace route Utility
Instance 6 programming Telnet
Main Content
This example
Technical topics
※Telnet (Remote logon)
Step 1: implement the teinet Server
Create a common component twsocket
Monitor telnet ports
Remote interaction with clients
Step 2: implement the Telnet Client
Create a Telnet client component ttncnx
Use the ttncnx component to complete the Telnet Client
Instance 7 email receiving and receiving program
Main Content
This example
Technical topics
※Email format
※Pop3 Protocol Introduction
※Smtp Protocol Introduction
※Pop3 4 protocol implementation in Delphi
※Implementation of SMTP protocol in Delphi
Step 1-implement the email receiving program
Create a new project
Achieve Server login
Get email list
Receive specified email
Disconnect from the server
Handle other events
Step 2: implement the mail sending program
Create a new project
Achieve Server login
Send email
Verify the user's presence
Extended email list
Disconnect from the server
Handle other events
Instance 8 Finger query
Main Content
This example
Technical topics
※Finger Protocol
Step -- Implement the finger Client
Create a new project
Query finger in a separate thread
Complete other auxiliary Interface Programming
Instance 9 Ras dial-up Internet access
Main Content
This example
Technical topics
※Ras Introduction
※Dialing and hanging up
※Connection Management
※Phone book management
Step -- Implement the RAS Client
Create a new project and introduce the RAS Library
Implement the phone book management function
Complete dialing and hanging up
Instance 10 web servers and browsers
Main Content
This example
Technical topics
※World Wide Web
※Uniform Resource Identifier
※Hypertext Transfer Protocol
※Use the Microsoft webbrowser control.
※Tnmhttp and thtml Components
Step 1: implement a simple WWW browser
Create a new project
Complete the browsing task of the program
Step 2: implement web servers
Create a new project
Start the Web Server
Web Server master Loop
Thttpserverthread Thread class
Instance 11 Web Service Program
Main Content
This example
Technical topics
※Working principle and category of web service programs
※Cgi Introduction
※Isapi Overview
※Delphi's support for Web service programs
※Component classes provided by Delphi for Web service programs
※Debugging web server programs
Step 1: implement the ISAPI Service Program
Create a new Web Service Project
Set the default web module
Add and process action items
Step 2: implement the CGI Service Program
Instance 12 TAPI Programming
Main Content
This example
Technical topics
※Services provided by TAPI
※Tapi Classification
※Communication process description
Step 1-implement a dialing program
Create a new project and implement its main form
Call form
Implement dialing monitoring forms