looking for server client example or help delphi

Reply

Join Date: Oct 2004
Posts: 44
Reputation: ultimate_fusion is an unknown quantity at this point 
Solved Threads: 0
ultimate_fusion ultimate_fusion is offline Offline
Light Poster

looking for server client example or help delphi

 
0
  #1
Feb 27th, 2008
hi,
i am looking for a sample program for delphi for a server client. I was wanting to use sockets and i am using pascal. if any one know of any good resource site or has some same code.

I tired the following example
http://www.dcs.napier.ac.uk/~bill/delphi_page.htm
but when i compile t said client socket doesnt have corresponding component???


thanks for looking
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 71
Reputation: Micheus is an unknown quantity at this point 
Solved Threads: 4
Micheus's Avatar
Micheus Micheus is offline Offline
Junior Poster in Training

Re: looking for server client example or help delphi

 
0
  #2
Feb 27th, 2008
Originally Posted by ultimate_fusion View Post
I was wanting to use sockets and i am using pascal. if any one know of any good resource site or has some same code.
I have a sample, but I build than with Delphi7 compiler, using TServerSocket and TClientSocket from Internet pallete.

It shows how to:
- save the connected client in order to interchange data;
- send message (text) from client to server and vice-verse;
- send formated command to server to be processed;
- monitore client and server disconnection (server ou client Stop to listen);

Take a look to attachment. If it interest You, let me know because the comments is all in portuguese.

First, start the SocketServer.exe program and click Start Server button. At last, start how many clients (SocketClient.exe program) You want to test. Type the server name to respective edit control (if all prograns in the same machine, You must type LocalHost) and click Start Client.

Bye
Attached Files
File Type: zip SockeTest.zip (441.1 KB, 394 views)
"It always has, at least, two ways to make one same thing. Exactly that they are certain and wrong"(Micheus)

Brazil - Blumenau
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 44
Reputation: ultimate_fusion is an unknown quantity at this point 
Solved Threads: 0
ultimate_fusion ultimate_fusion is offline Offline
Light Poster

Re: looking for server client example or help delphi

 
0
  #3
Feb 28th, 2008
the file is corrupt or invalid
,UF
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 71
Reputation: Micheus is an unknown quantity at this point 
Solved Threads: 4
Micheus's Avatar
Micheus Micheus is offline Offline
Junior Poster in Training

Re: looking for server client example or help delphi

 
0
  #4
Feb 28th, 2008
Originally Posted by ultimate_fusion View Post
the file is corrupt or invalid
,UF
I download it with no problem...

So, try download than from my shared resources on 4Shared. Looking for Programacao folder and expand it. There is a folder named Socket and You will see two samples zipped in there.

Bye
"It always has, at least, two ways to make one same thing. Exactly that they are certain and wrong"(Micheus)

Brazil - Blumenau
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 3
Reputation: GerardJ is an unknown quantity at this point 
Solved Threads: 0
GerardJ GerardJ is offline Offline
Newbie Poster

Re: looking for server client example or help delphi

 
0
  #5
Nov 11th, 2008
This does soemthing close from what I'm looking for. As I guess it is using Indy, I assume it is multithread.
My problem is how to attach the read write handler to the ServerSockeet? I can launch the sever, I can connect a client, but I do not know how to adress the correct handler to read any received message...
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: looking for server client example or help delphi

 
0
  #6
Nov 11th, 2008
Have you checked the examples that come with Indy - and delphi itself?
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 3
Reputation: GerardJ is an unknown quantity at this point 
Solved Threads: 0
GerardJ GerardJ is offline Offline
Newbie Poster

Re: looking for server client example or help delphi

 
0
  #7
Nov 11th, 2008
I'm working with Turbo Delphi and event if Indy seems to be in I don't think I have any example of code. If you can indicate me some of these and where I can reach them It would be great!
Thanks.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: looking for server client example or help delphi

 
0
  #8
Nov 11th, 2008
You should have the examples, however, you could download them from the indys website as per the readme in the indy directory under your demos.

For server and client socket raw from delphi, there are a number of examples on code central. And in fact theres a tutorial on there for those 2 components.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 3
Reputation: GerardJ is an unknown quantity at this point 
Solved Threads: 0
GerardJ GerardJ is offline Offline
Newbie Poster

Re: looking for server client example or help delphi

 
0
  #9
Nov 11th, 2008
The site http://www.nevrona.com/indy I have in the read.me file leads to a not available page. And on the Indy site I do not see where to download anything!
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: looking for server client example or help delphi

 
0
  #10
Nov 11th, 2008
I guess google was too much to ask too, www.indyproject.org
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Pascal and Delphi Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC