ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cannot get appropriate Event fired with WinSock control (https://www.excelbanter.com/excel-programming/280231-cannot-get-appropriate-event-fired-winsock-control.html)

Tetsuya Oguma[_3_]

Cannot get appropriate Event fired with WinSock control
 
Hello all,

My WinSock control (MSWINSOCK.ocx - Microsoft WinSock
Control 6.0 (SP5)) is behaving not well, to put my issue
kindly...

I am having a problem of getting Events fired after my
WinSock client control is connected to the server.

As soon as my WinSock client fires Connect method, either
Connect() or Error() Event should fire. This doesn't
simply happen... It just hangs right there...

THe snippet of my code is as follows:

With sckSocket
.Protocol = sckTCPProtocol
.RemoteHost = m_Host
.RemotePort = m_Port
.Connect
Debug.Print .State 'gives me 7 for Connected
Debug.Print .RemoteHostIP 'gives me the right IP
address of the server I want to connect to
End With

Does anyone have any idea why???

Thanks for your time.
---
Tetsuya Oguma, Sydney, Australia



All times are GMT +1. The time now is 08:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com