Home arrow Delphi-Kylix arrow Page 2 - Important Procedures for an Internet Access Control Application

Important Procedures for an Internet Access Control Application

In the preceding article we started to explore the code that makes up the server communication. If you haven’t read that article, please make sure to do so, because almost everything that I will be discussing in this article will directly reference code that we discussed there. A lot of the things that we will be discussing here will make sense once you have read the previous article.

Author Info:
By: David Web
Rating: 5 stars5 stars5 stars5 stars5 stars / 7
September 15, 2008
  1. · Important Procedures for an Internet Access Control Application
  2. · Taking Names
  3. · Disconnecting from the Server
  4. · The tsExecute Procedure
  5. · Suggested Improvements

print this article

Important Procedures for an Internet Access Control Application - Taking Names
(Page 2 of 5 )

The ‘compname’ variable will take the workstation's name (that is the actual name of the computer that is connecting). At the moment it is commented out for debugging purposes; be sure to uncomment this line when you test the application.

//compname:= GStack.HostByAddress(IP);

The next line of code reads the communication that is sent by the workstation. This will include the name of the workstation. Currently the name is filled in manually, but it will be automatically filled in when you uncomment the line above.



The string is then parsed into different sections using the parse function:


The computer name is then stored in the compname variable:


Then the code checks to see if the name was actually sent. If so, the list view component is updated accordingly:

if compname <> '' then










end else

blog comments powered by Disqus

- Loading an XML Document into the DOM
- Delphi Wrapper Classes and XML
- Delphi and the DOM
- Delphi and XML
- Internet Access: Client Service
- Finishing the Client for an Internet Access ...
- The Client for an Internet Access Control Ap...
- User Management for an Internet Access Contr...
- Important Procedures for an Internet Access ...
- Server Code for an Internet Access Control A...
- Constructing the Interface for an Internet A...
- Building a Server Application for an Interne...
- Building an Internet Access Control Applicat...
- Client Dataset: Working with Data Packets an...
- Using the Client Dataset in an N-Tiered Appl...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials