1833760 Members
2131 Online
110063 Solutions
New Discussion

socket file

 
Eric Malzahn
Occasional Advisor

socket file

How do I create a socket file.
3 REPLIES 3
Lou Zirko_1
Frequent Advisor

Re: socket file

You would need to write a C program and use the socket system call to create the socket. If you are looking for a pipe the pipe system call is availablew for that purpose.

I am not sure if you are asking because one was deleted and you are trying to recreate one or you are just curious. Programs create the sockets they need. Normally a user does not create sockets. There is not a unix socket or pipe creation command. These are unix system calls. There are also perl modules that will do sockets.

Lou Zirko
Wodisch
Honored Contributor

Re: socket file

Hello Eric,

if the reason for asking is, that one has been accidently deleted, then the (only) answer would be to restart the application :-(

Sorry,
Wodisch
A. Clay Stephenson
Acclaimed Contributor

Re: socket file

Hi:

If you are wanting to learn about sockets, by far the easist answer is to do them in perl. That code then very neatly translates into C if you want to pursue them further.
If it ain't broke, I can fix that.