Discussion Locked

UNIX sockets for IPC

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
UNIX or local sockets is another way to achieve interprocess communication. Have you used UNIX sockets for this purpose?

2 replies

by sudhirm

Hi,

I have 2 questions which always i'm confused.

1> what are filedescriptors , why and when they are used.

2> TCP parameter: what does CLOSE_WAIT mean? and how to avoid it?

Thanks & Regards

by mike owens

A file descriptor is like a handle in windows programming. It represents a file and you use the file descriptor is used when you perform operations on that file. The file descriptor is an int data type. If the open fails the file descriptor will be set to -1 and you check errno for the exact error.

This discussion is closed to new replies.