duplicate Winsock2 send

Has anyone ever seen Winsock2 send a duplicate packet ? My application acts like it is only sending the packet once but the server recieving the packet seems to think its recieving a duplicate packet. Here is the code.

Randy

int send_wsocket(SOCKET ConnectSocket,unsignedchar *sendbuf,int buf_length)

{

int iResult = 0;

// Send an initial buffer

iResult = send( ConnectSocket, (char *)sendbuf, buf_length, 0 );

if (iResult == SOCKET_ERROR) {

// printf("send failed: %d\n", WSAGetLastError());

closesocket(ConnectSocket);

WSACleanup();

return 1;

}

// printf("Bytes Sent: %ld\n", iResult);

return 0;

}

[1410 byte] By [RandySeedle] at [2008-1-2]