In my client code, I am following these steps to connect to a socket:
Creating a socket
sockDesc = socket(PF_INET, SOCK_STREAM, IPPROTO_TC
Yes, you should close and go back to step 1:
close() closes a file descriptor, so that it no longer refers to any file and may be reused.
From here.