Operating System - HP-UX
1850468 Members
2343 Online
104054 Solutions
New Discussion

What is command to establish socket?

 
restrospec
Contributor

What is command to establish socket?

What is command to establish socket?
Please suggest me
4 REPLIES 4
Ralph Grothe
Honored Contributor

Re: What is command to establish socket?

Are you talking about usage of the BSD Socket API?
Then client-wise it is a connect() call,
while server-wise a lingering accept().
See man socket et al.
Madness, thy name is system administration
Srimalik
Valued Contributor

Re: What is command to establish socket?

There is no command to establish a socket, there are function calls( system calls)to create and operate on sockets. see the man pages of accept, listen, connect , recv , send
abandon all hope, ye who enter here..
Srimalik
Valued Contributor

Re: What is command to establish socket?

some book on unix network programing will help.
abandon all hope, ye who enter here..
Philip Gunter
Respected Contributor

Re: What is command to establish socket?

There is the nc (netcat) command if you just want to have a program that is listening on a socket. I guess it depends what you are trying to do.

http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/netcat-1.1.0/

Cheers,
Philip.