DelphiFAQ Home Search:

Client / Server programming - generic steps to start a server or a client


comments17 comments. Current rating: 4 stars (6 votes). Leave comments and/ or rate it.

Client/server network programming requires a server running on one machine to listen and answer requests and one or more clients running either on the same machine or different machines connected to the server through a network.

Independent from your operating system and programming language, you'll have to follow the following basic steps to create and run a server (the function refers to the unix naming convention; almost all languages have interfaces to them):

  1. Create a socket with socket
  2. Bind the socket to a port address with bind
  3. Listen to the socket at the port address with listen
  4. Accept client connections with accept

Creating a client involves less steps:
  1. Create a socket with socket
  2. Connect the socket to the remote machine with connect

Most modern environments offer classes, components, beans, Active-X controls.. libraries.. to abstract this process but it's good to know the basic steps that happen behind the scenes in case you get an error message 'Cannot bind socket'.. 'port already in use'.


You are on page 1 of 2, other pages: [1] 2
2009-06-08, 11:56:00
wanwan from Japan  
2009-06-08, 11:56:58
wanwan from Japan  
@2009-06-08, 07:36:47 from Morocco

This image was also posted here:
Primer for first time visitors (Dating Scams)
Dating scammer Olga
Dating scammer Anna mandy
Dating scammer Rhoda Naa from Accra, Ghana

2009-06-08, 11:57:57
wanwan from Japan  
2009-06-08, 11:59:00
wanwan from Japan  
2009-06-08, 17:16:56
[hidden] from Salem, United States  
Anonymous from Morocco

OK Morocco
What point are, You trying to make by posting that copy of
what, I wrote on this thread all over this site ?
Then only speak what, I believe to be French ?
What are, You playing at ?
If, You have something to say to me then say it.
Don't play like a child and post things all over this site.
I guarantee, You will not be able to keep doing that for very long
if, You choose to keep doing it.

Agent 86 Maxwell Smart \\'^o^'//

To everyone else this Morocco idiot copied and pasted
my words from the Bill Dorsen thread.

2009-06-08, 23:34:46
anonymous from United States  
From BadDog:

Your warnings are heeded WanWan and Agent 86.

I thank you for the visual aids!

Awesome dog, WanWan I have a beagle; looks like their brother.

Be careful to not step too hard on any annoying frogs!

Got hit on by an Esmerelda@hotmail today....Oh the fun begins!

What if this takes away from time with real girlfriend ?
Is that virtual infidelity?

Keep up the good work guys!


2009-06-09, 00:31:09
Agent,86 from Salem, United States  

I Thank You for the lovely Frog picture. LOL
Even in Chariots of Fire it was the Frogs that made
Little run on a different Day. LOL
Trust me, I don't want to have to scrape to much off shoes. LOL
It seems the Moroccan is like the Scirocco from which, He came.
We will see if, He returns ?

Kind Regards Agent 86 Maxwell Smart \\'^o^'//

Yes Wanwan My Asian Friend is much like, His Ancestors
Always coming up with something new like Water Skiing LOL
This image was also posted here:
Dating scammer Rhoda Naa from Accra, Ghana

2009-06-09, 03:02:33
wanwan from Japan  
2009-06-19, 00:15:49
Agent,86 from Salem, United States  
To future readers of this thread

The Poster from Morocco has been removed completely.
So if the line of postings that fallowed it look out of place that's the
reason they were put here in the first place.
Another Idiot removed Thanks to everyone who responded to the moron.

Kind regards Agent 86 Maxwell Smart \\'^o^'//

The Garbage has been taken out !!!!!!!!!!!!!!!!
This image was also posted here:
Dating scammer Ekaterina Rozhentsova
Various dating scammers
Dating scammer Anna
Dating scammer Faniya from Russia

2009-06-19, 06:12:45
wanwan from Japan  
@our great agent86!!

Great contributions !!
This image was also posted here:
Another dating / chat scam - USA/ Nigeria connection

2009-06-26, 10:18:18
anonymous from United States  
From BadDog:

Great job Agent 86. Smoked that Sala-getti.

WanWan. You are good man and good friend. I salute you and your family.

Keep up the good work my friends.


2010-05-19, 00:26:19
Satyavir from India  
Do you want to increase your income by doing part time job? The Jobs is very simple. Choose your own timings & Work 4 hours daily and earn up to 30,000/- per month.Call: 0124-4221618, Posted Id-831183P
2012-09-29, 06:55:40
anonymous from Ghana  
Accra Ghana west afican

2012-09-29, 07:01:53
anonymous from Ghana  
2013-07-10, 09:53:02
raffaele mosca from Italy  
Raffaele Moscow to be robbed and poisoned
You are on page 1 of 2, other pages: [1] 2



NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: