Method ConnectTO() doesn't work fine

Method ConnectTO() doesn't work fine

Postby Vikthor » Thu Oct 19, 2006 3:45 am

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  RUN
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
Vikthor
User avatar
Vikthor
 
Posts: 271
Joined: Fri Oct 07, 2005 5:20 am
Location: México

Postby Vikthor » Sun Oct 22, 2006 2:06 am

Antonio :

Any suggestion
Vikthor
User avatar
Vikthor
 
Posts: 271
Joined: Fri Oct 07, 2005 5:20 am
Location: México

Postby Antonio Linares » Sun Oct 22, 2006 8:32 am

Vikthor,

We are going to review it asap,
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Vikthor » Mon Oct 23, 2006 1:44 pm

Antonio Linares wrote:Vikthor,

We are going to review it asap,


Many Thanks Antonio
Vikthor
User avatar
Vikthor
 
Posts: 271
Joined: Fri Oct 07, 2005 5:20 am
Location: México


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 27 guests