Transmission problems on 64 bit AMD processors but not 32 bit AMD processors
- From: "Fredrik L" <floaf1@xxxxxxxxxxx>
- Date: Sun, 18 Dec 2005 22:24:48 +0100
Hi. I have this strange problem. I have made a small testserver in C++ that
accept an incomming connection and try to send data on the socket in
standard blocking mode.
Now, I have narrowed down the problem a bit .This is what i do (and yes, I
do take care of the returnvalue in my code :-)
The steps. First I accept an incoming connection on port 1365.
Then I send 4 bytes on that socket:
send(ClientSocket, (char*)SendBuffer, 4, NULL);
Then 5 bytes.
send(ClientSocket, (char*)SendBuffer, 5, NULL);
After that I send 45 bytes 189 times
for (int i=0;i<189;i++)
{
send(ClientSocket, (char*)SendBuffer, 45, NULL);
}
If i run the server on my computer and use for example telnet to connect to
my server program, all of the data ther server send is recieved in the
telnet window. I've tried to connect over the internet too and it always
works on 32 bit computers.
The problem apperars when i run the server on a computer with an AMD64
processor that runs 32 bit windows XP.
Now if I try to connect, I only recieve the first 4 bytes of all data the
server is trying to send. After a while the server recieve a socket timeout.
I have no idea why this is happening, but it only happen on 64 bit
processors. Is there a new SDK or patch I should download? I'm using Visual
Studio 2003.
Thankful for any help :-)
// Fredrik L
.
- Follow-Ups:
- Re: Transmission problems on 64 bit AMD processors but not 32 bit AMD processors
- From: Eugene Gershnik
- Re: Transmission problems on 64 bit AMD processors but not 32 bit AMD processors
- Prev by Date: Re: Which API function to get access to a remote directory protected by User/Passwort?
- Next by Date: Re: What may cause a send exception?
- Previous by thread: Which API function to get access to a remote directory protected by User/Passwort?
- Next by thread: Re: Transmission problems on 64 bit AMD processors but not 32 bit AMD processors
- Index(es):
Relevant Pages
|