Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Winsock; connected state 7 but can't send data???

Status
Not open for further replies.

Phailak

Programmer
Apr 10, 2001
142
CA
Hail,

I have a client and server application. The client connects to the server (winsock state at 7!) but he cannot send any data. After I send it, it does not go to sendcomplete event nor does it even go to the sendprogress event??? Anyone know what is going on here???

Phailak
 
First it depends on what socket control you're using. Second of all, if you're using one that needs to be setup for an event, then you have to tell it to run in event mode. Or you'll never know you got anything. My hunch is that it sent the data, the receiving control just doesn't know it got data. Snaggs
tribesaddict@swbell.net
Life can only be understood backwards; but it must be lived forwards.
 
Hail,

Well I'm using Winsock, and the events trigger just find if I connect with a friend, or to the same computer. The problem I am having is the server is on a cpu connected through DSL while the client is on my laptop, connected through 56K. It's not the 56K modem that seems to be the problem because I can connect with a friend that has the same setup for the net...

Phailak
 
Hail,

No, nothing of the sort... If there would, would I still be able to connect? I guess I'll find another cpu from which to test it on...

Phailak
 
I've had this happen, too. It's very bizarre. My scenario was a friend and I were making a client/server (as you were), and suddenly, I never hit the DataArrival method anymore! >:eek:. Breakpoints, UDP protocols, we even did this with API. We had a single router between the computers, but it still worked before.

My advice: Try to use API, or a different socket OCX (SocketWrench is good). Rebooting will sometimes help. Make sure you aren't running firewalls, hard or soft.

If you need help with the API of a socket, contact me:
bryan@roblivion.net
 
Hail,

I saw it done with API and I am familiar with using it so maybe I'll give it a try. SocketWrench hey? I guess I could also try that...

Thanx for the suggestions

Phailak
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top