Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Winsock problems
Message
De
16/09/2000 02:01:06
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Winsock problems
Divers
Thread ID:
00417261
Message ID:
00417261
Vues:
48
I am using the winsock control very much from the examples in the files area, especially the eweb example. I use the VFP app to create a TCP/IP server. I use a java program as a client that connects to the VFP server. I am seeing some strange behaviour on the DataArrival event. Most of the time I seem to only receive the first character of what I sent. It calls the DataArrival event once. I would think that it should at least call it again with the rest of the string that I am sending.

The interesting thing is that I don't see the same problem on the eweb example when the request comes from a browser, however, the problem does show up when I use the eweb example and use my java program to send a request to port 80. You would think that the problem is the Java program, however it works fine half the time with the VFP program and it works all the time with another java server program.

I had also read in a Microsoft newsgroup that there is a known bug with winsock where the event gets called twice, the first time with 1 byte and then with the rest. I don't get the second call, but I think this could be my problem. Anybody seen this? Any way to get around this?
Répondre
Fil
Voir

Click here to load this message in the networking platform