I'm havin a problem with the winsock control. I reckon this is a long shot but someone might be able to help me!
I'm connected through winsock 6.0 to a third party program. I connect to it by using the winsock1.connect [remote host] [remote port], this code is in a buttons click procedure. I have another button which fires of the winsock1.senddata command. This all works fine and the thirdparty software receives the data and works as it should.
However! if i plonk the senddata winsock command in to the same click procedure of the connection command i get the error 'Wrong protocol or connection state for the requested transaction or request'
After the connect is fired off i print off the state of the winsock and its 6 and IS connected to the thirdparty software.
I've tried sleep commands and all sorts but i just get that error when i have both commands in the same procedure!
any helpp appreciated!
I'm connected through winsock 6.0 to a third party program. I connect to it by using the winsock1.connect [remote host] [remote port], this code is in a buttons click procedure. I have another button which fires of the winsock1.senddata command. This all works fine and the thirdparty software receives the data and works as it should.
However! if i plonk the senddata winsock command in to the same click procedure of the connection command i get the error 'Wrong protocol or connection state for the requested transaction or request'
After the connect is fired off i print off the state of the winsock and its 6 and IS connected to the thirdparty software.
I've tried sleep commands and all sorts but i just get that error when i have both commands in the same procedure!
any helpp appreciated!