Using easy words, the winsock work on that piece of code can be understand as:

Code:

SOCKET TempSoc;
TempSoc = (SOCKET)m_hComm;

Here you assign a global variable 'm_hComm' to a local var (to simplify the work).

Code:

int nRet = send(TempSoc,szBuf,strText.GetLength(),0);

'send' is a winsock function that sends the text 'szBuf' (wich length is 'strText.GetLength()') to the socket 'TempSock'; that function returns the length of the text that have been received by the other side or an error code like 'SOCKET_ERROR'. In that case, if 'nRet==strText.GetLength()' (after the send) means that you have send all the data, else means that the other side only have received the first 'nRet' characters of 'strText'.

Hope that will help; also you can take a look to the 'Useful links and books' thread on that networking board.