Solved

Internet vs. UNIX domain socket

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Question regarding Copy/Paste 16 96
while loop over for loop 7 115
Making an alias 7 101
moto 4g phone enable finger print 4 26
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

830 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