one obvious erro is that in your sckListen() function you overwriting your Socket variable with the TempSock. After that, you are no longer able to accept incoming connections because your listening socket has been overwritten.
Code:
SockAddr.sin_addr.S_un.S_un_b.s_b1 = 127;
SockAddr.sin_addr.S_un.S_un_b.s_b2 = 0;
SockAddr.sin_addr.S_un.S_un_b.s_b3 = 0;
SockAddr.sin_addr.S_un.S_un_b.s_b4 = 1;
seems overly complicated, try gethostbyname with input param "localhost" or inet_addr( "127.0.0.1" )

What exactly is failing when trying to send the message from the client to the server?