Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Internet vs. UNIX domain socket

Posted on 1997-11-09
2
Medium Priority
?
369 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

885 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