Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Internet vs. UNIX domain socket

Posted on 1997-11-09
2
Medium Priority
?
361 Views
Last Modified: 2013-12-26
Hi, all

I'd like to know the differences between the internet domain socket(AF_INET) and the unix domain socket(AF_UNIX) on the same host.
I've tested with a client that sends 2,560,000 1K sized packets on HP/UX 10.20. I think using unix domain socket is faster, but rather it is slower.
Anyone knows why? And if so, is it system-dependent?

Regards,

Hwakyoung Lee (delphian@samsung.co.kr)
0
Comment
Question by:delphian
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
jrg earned 300 total points
ID: 1295514
A socket of type AF_UNIX should only beused if there will never be any communication with non-unix machines. The communications could be slower (depends on specific implementation) becasue if you specify a UNIX domain, there can be some extra error checking of the packet.

AF_INET is more generic and the communicationis not as secure or reliable. AF_INET is the best to use in most cases.
0
 

Author Comment

by:delphian
ID: 1295515
Thanks for your answer.
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question