- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cleint-Server Question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2006 11:01 AM
тАО02-12-2006 11:01 AM
When a client and server applications are installed on the same host,
Q, Do they need to use ports to talk to each other? does it have to use tcp/ip?
Qestion 2. How does a server knows and fulfils client's request on the same host?
Please let me know
Cheers
Raf
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2006 01:08 PM
тАО02-12-2006 01:08 PM
SolutionFor communications between application on same host there are few different way to implement the IPC (inter process communication) TCP/IP is one of the commond methods. Others like pipes, FIFOs(named pipes) and for system V there are few more like message queues, Semaphores and Shared Memory.
Do a search on google interprocess communication and you will find a lot of information.
second question,
Usually there is a communication protocol being used by both clients and servers like HTTP, FTP this protocol defines commands, data structures format how to handle errors and which port server should listen on, etc etc. Everything is already defined before client can talk to server and server can process any requests from clients. Just like if you only speack English, you can only talk to someone speaks English as well. In this case, English is the protocol.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2006 01:39 PM
тАО02-12-2006 01:39 PM
Re: Cleint-Server Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2006 02:59 PM
тАО02-12-2006 02:59 PM
Re: Cleint-Server Question
Q1, Do they need to use ports to talk to each other? does it have to use tcp/ip?
Not necessarily TCP/IP, It can be any of IPC methods like, named pipes, fifo, etc.. Also, they can communicate via TCP/IP as well.
2. How does a server knows and fulfils client's request on the same host?
There maynot be any difference between same host and others(sometimes, may be). After all,
It(Server) is designed to serve to the clients.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2006 03:56 PM
тАО02-12-2006 03:56 PM
Re: Cleint-Server Question
Thanks Guys for your quick responses, I'm doing lot of reading on the internet to gain appropriate knowledge, I will be getting back with some more questions once I'm finished with my reading...
Thanks a lot, I will assign points soon...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2006 05:06 PM
тАО02-12-2006 05:06 PM
Re: Cleint-Server Question
Guys,
When client-server is talking to each other on the same host using tcp/ip, then what is the example of using TCP/IP on the same host?? is it when it uses ports to communicate each other or something else???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2006 05:16 PM
тАО02-12-2006 05:16 PM
Re: Cleint-Server Question
Find attached doc on Network Ports.
Thought this could be helpful.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2006 05:17 PM
тАО02-12-2006 05:17 PM
Re: Cleint-Server Question
You asked,
When client-server is talking to each other on the same host using tcp/ip, then what is the example of using TCP/IP on the same host?? is it when it uses ports to communicate each other or something else???
It depends, for example, you are running Apacher server on HP-UX and using Mozilla in the same host, you request a page or doing kernel tuning with kcweb. Thsese stuffs can't be done thro' other IPC mechanisms.
Hope this is clear.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2006 05:17 PM
тАО02-12-2006 05:17 PM
Re: Cleint-Server Question
Not sure about your last question, if you just want to see an exmaple of two programs talking to each other using TCP/IP but they both running on the same host. The quickest example is try this
# telnet localhost
and then try
# netstat -a | grep telnet
and you will see something like following
netstat -a | grep telnet
tcp 0 0 localhost.58746 localhost.telnet ESTABLISHED
tcp 0 0 localhost.telnet localhost.58746 ESTABLISHED
tcp 0 0 *.telnet *.* LISTEN
tcp 0 0 primux.telnet .59217 ESTABLISHED
It tells you that there is a TCP/IP connection been established betweel localhost, port 58746 and localhost 23(telnet)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2006 05:22 PM
тАО02-12-2006 05:22 PM
Re: Cleint-Server Question
Here is a good link describes about a typical C&S app.
http://penguin.dcs.bbk.ac.uk/academic/networks/application-layer/client-server/index.php
-Arun