suwuming
12-18-2001, 09:39 PM
Hi all,
I have created a socket as server, and another as client, then maked the server listen, and didn't use accept method.(only listen). The problem was :
1. when I used client socket in debug mode(in VB IDE step by step) to conncet server, the state of client socket would be 0-->6-->8(Closed-->Connecting-->Closed), that was a correct sequence, because the server did never accept its request.
2. But, when I started client in run mode(press F5), then connect event would occur(means connection was successful), and the state would be 0-->7-->8(Closed-->Connected-->Closed).
I think if the server dont accpet client's request, the connection wiil never be successful.
Anybody can tell me why? Thanks (I used Winscok 6.0 SP5)
I have created a socket as server, and another as client, then maked the server listen, and didn't use accept method.(only listen). The problem was :
1. when I used client socket in debug mode(in VB IDE step by step) to conncet server, the state of client socket would be 0-->6-->8(Closed-->Connecting-->Closed), that was a correct sequence, because the server did never accept its request.
2. But, when I started client in run mode(press F5), then connect event would occur(means connection was successful), and the state would be 0-->7-->8(Closed-->Connected-->Closed).
I think if the server dont accpet client's request, the connection wiil never be successful.
Anybody can tell me why? Thanks (I used Winscok 6.0 SP5)