I'm trying to connect to a socket where I'm expected to send some data but failing to connect. Here is the code I'm using:
- Code: Select all Expand view
*-------------------------------------------------------------------------------------------------------------------------------
METHOD SetupIpSocket() CLASS TEXPORTER
::oSocket := TSocket():New( ::nSocket )
::oSocket:bConnect = { || ::isConnected := .t. }
::oSocket:Connect( ::cIp )
RETURN ::isConnected
::isconnected is initialized as .f. After executing these lines, it stays as .f., thus no connection is happening.
I tested the ip and port using telnet (telnet ip port) and I noticed connection, therefore I presume that the port is up and accepting connection at that given ip. Is there any other tool that I can use to troubleshoot this issue? Why is it not connecting using my source?
thank you,
Reinaldo.