in reply to Reg socket

You can create more than one socket by executing your socket program again and again. Before doing this you have to make sure that your port number and address should be unique.

If you want to reuse the address you can use setsockopt. Instead of using fork() you can use select(), it is better way compare to fork().