Solved

Internet vs. UNIX domain socket

Posted on 1997-11-09
2
339 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
2 Comments
 

Accepted Solution

by:
jrg earned 100 total points
Comment Utility
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
Comment Utility
Thanks for your answer.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now