I\'ve just started learning the basics of sockets (Linux). I tried my hand at a small example, but it doesn\'t work and I have no idea what\'s wrong.
I get a \"Connectio
Your Answer is: You program is client and it need a server to connect. nc command create server and your program can connect to it.
nc
[root@mg0008 work]# nc -l 127.0.0.1 1234 & [1] 25380 [root@mg0008 work]# ./socket Give message: Hello Hello