Page 1 of 1

Method ConnectTO() doesn't work fine

PostPosted: Thu Oct 19, 2006 3:45 am
by Vikthor
I'm working with Sockets and when I tried to established an connection with a Server ( NTTP ) using Socket, the method connect doesn't work fine.

Loos this code :
Code: Select all  Expand view
FUNCTION CONNECTNEWS()
PARAM oSocket,oStatus,oBoton1
nPort := 119
cServerIP := "200.67.153.171"
oStatus:cText( " Conectando a "+cServerIP +CRLF )
cTxt := oStatus:cText
oStatus:cText( cTxt+" Esperando respuesta ......"+CRLF )
oSocket   := TSocket()
oSocket:New( nPort )
oSocket:Connect( cServerIP, nPort )   // <----- ¡¡ error is here !!

oSocket:bConnect := { |o| NewsOn(o , oStatus ) }
oSocket:bRead    := { |o| NewsRead(o , oStatus) }

RETURN( oSocket )

FUNCTION NEWSON()
PARAM oSocket,oStatus,cServerIp
cTxt := oStatus:cText
oStatus:cText( cTxt + " Ahora estas conectado. "+CRLF )
RETURN

PostPosted: Sun Oct 22, 2006 2:06 am
by Vikthor
Antonio :

Any suggestion

PostPosted: Sun Oct 22, 2006 8:32 am
by Antonio Linares
Vikthor,

We are going to review it asap,

PostPosted: Mon Oct 23, 2006 1:44 pm
by Vikthor
Antonio Linares wrote:Vikthor,

We are going to review it asap,


Many Thanks Antonio