On Fri, 28 Sep 2007 20:25:15 -0000 "sejal patel" <[EMAIL PROTECTED]> wrote:
> I have to deeloped concurrent server that can communicate with a > telent client, standard web browser. > > output look like this > > %telnet 172.16.225.130 8081 > Trying 172.16.225.130... > Connected to 172.16.225.130 (172.16.225.130) > Escape character is '^] > GET /simple.html > this is just a <x> test. > > i enter only first and fifth line. > > %telnet 172.16.225.130 8081 > Trying 172.16.225.130... > Connected to 172.16.225.130 (172.16.225.130) > Escape character is '^] > GET /simple.html x hacked > this is just a hacked test. > > using GET and POST i have to develope server who communicate with > telnet and bowser. > > I can GET /simple.html to server side,means if i send request using > telnet clinet then i can get responce back what client has sent. > > but only with o localhost 8081 in telnet,if i want to connect with > any domain then? e.x. o www.yahoo.com <http://www.yahoo.com> 8081 > > please help me... Ok, you're asking a lot of different things in this question. Can you define the question a little more? The best part of getting an answer is to understand the question. You're asking several things. The latter part of your mail asks about DNS - that's something that you should avoid getting into if your task (presumably part of a programming course you're doing) is to solve a programming problem. The former part is about the client/server socket relationships. I advise that you look into threading, this will make the programming task much easier as you can "fork off" (to use an incorrect expression) the processing to a separate entity to handle the request. An alternative is to handle that in a single process using 'select', which is perhaps closer to multiprocessing. There is a very good guide that I suggest you read which helped me immensely called BeeJ's guide to socket programming. If your prefer books then why not get Advanced UNIX programming from Addison Wesley. To follow up the threads, look into the pthread library. -- The bread crumbs to the demarc is bombing like a macintosh because of someone halting red5.teleport.com. Apu is playing dope-wars on the palm pilot. :: http://www.s5h.net/ :: http://www.s5h.net/gpg [Non-text portions of this message have been removed]
