Modified link.c with basic IFs for linkType==SOCKET in code. Need to
implement functions for the IFs.