Solved

Internet vs. UNIX domain socket

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Host to IP 7 78
Detect CR LF to each line 12 162
sumNumber challenge 16 122
how to you can convert your project to a Maven project and the Maven plugin should download the source 1 45
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

803 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