Search found 17 matches: bclose

Return to advanced search

Issue with TSOCKET()

... } // Never use a MsgInfo() here because it hangs Windows!!! oSocketArray[nBridge]:bConnect = { || mUniWinConnected := .T. } oSocketArray[nBridge]:bClose = { || mUniWinClosed := .T. } oSocketArray[nBridge]:lDebug = .T. oSocketArray[nBridge]:cLogFile = "iplogfile.log" oSocketArray[nBridge]:Connect( ...
by paulrogers
Tue Jan 13, 2015 11:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Issue with TSOCKET()
Replies: 3
Views: 693

Re: Sockets write & read question

... | oClient := TSocket():Accept( oSocket:nSocket ),; oClient:Cargo := ST_COMMAND,; oClient:bRead := { | oSocket | OnRead( oSocket ) },; oClient:bClose := { | oSocket | OnClose( oSocket ) } } oSocket:Listen() But I was maybe thinking that oSocket:SendData could return an answer, but it's working ...
by Marc Vanzegbroeck
Mon Jun 16, 2014 8:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Sockets write & read question
Replies: 3
Views: 586

Send Binary via TSocket()

... nPort ) oSocket:bConnect := { || oSocket:SendData( cRfData ),; oSocket:End(), MsgInfo( cRfData + " DATA SENT!" ) } oSocket:bClose = { || MsgInfo( "disconnected!" ) } oSocket:Connect( cIP ) RETURN NIL
by cdmmaui
Mon Jun 04, 2012 9:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Send Binary via TSocket()
Replies: 0
Views: 401

Ayuda con socket - Solucionado

... use a MsgInfo() here because it hangs Windows!!! oSocket:bConnect = { || oBtn1:Disable(), oBtn2:Enable(), oBtn3:Enable(), oBtn4:Enable() } oSocket:bClose = { || MsgInfo( "Server se cierra y espera transferencia" ) } oSocket:Connect( "192.168.2.15" ) // use the server IP address ...
by russimicro
Sun Oct 31, 2010 4:28 pm
 
Forum: FiveWin para Pocket PC
Topic: Ayuda con socket - Solucionado
Replies: 0
Views: 646

Re: Socket conectar con nombre del host.

oSocket := TSocket():New( 8083 ) oSocket:bConnect := { | oSocket | Send(oSocket) } oSocket:bRead := { | oSocket | CogeDato( oSocket ) } oSocket:bClose := { || MsgInfo( "Server has closed!" ) } oSocket:Connect( "miserver.dyndns.org", 8083 ) // no conecta estando sincronizada ...
by Salvador
Sat Aug 01, 2009 10:42 pm
 
Forum: FiveWin para Pocket PC
Topic: Socket conectar con nombre del host.
Replies: 8
Views: 1494

Re: Ejemplo Socket asincrono

... maquina a la que te conectas, ha cerrado el socket y/o perdido la conexion, por lo tanto si tu lo cierras, no tiene por que ejecutarse ... oSocket:bClose = { || MsgInfo( "Server has closed!" ) } Normalmente se utiliza ... oSocket:bClose = {|| oSocket:Close() } Saludos ... Andres Reyes
by andresreyes_mzt
Thu Jan 29, 2009 6:12 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ejemplo Socket asincrono
Replies: 4
Views: 932

Ejemplo Socket asincrono

Muy buenas, tengo que mandar un fichero a una direccion IP y a un puerto todo esto lo hace pero el oSocket:bClose = { || MsgInfo( "Server has closed!" ) } no funciona es decir yo cierro el socket pero no hace caso me gustaría saber como puedo borrar los datos del buffer ...
by softruz
Thu Jan 29, 2009 12:38 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ejemplo Socket asincrono
Replies: 4
Views: 932

... ::oClientSock:bRead := { |oClient| ClientRead(oClient)} ::oClientSock:bConnect := { |oClient| OnConnect(oClient) } // ::oClientSock:bClose := { |oClient| OnCloseClient(oClient) } ::oClientSock:Connect( ::cServerIP ) // use the server IP address here ::lConnected := .t. oApp:lClientConnected ...
by norberto
Wed Sep 24, 2008 7:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TCPIP Chat
Replies: 18
Views: 5368

... | oClient := TSocket():Accept( oSocket:nSocket ),; oClient:Cargo := ST_COMMAND,; oClient:bRead := { | oSocket | OnRead( oSocket ) },; oClient:bClose := { | oSocket | OnClose( oSocket ) } } oSocket:Listen() return nil //------------------------------------------------------------------------// ...
by MGA
Mon Sep 22, 2008 8:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Sr. Antonio ajuda com SOCKET´s!
Replies: 14
Views: 2719

SOCKET - HELP - resolvido : )

... | oClient := TSocket():Accept( oSocket:nSocket ),; oClient:Cargo := ST_COMMAND,; oClient:bRead := { | oSocket | OnRead( oSocket ) },; oClient:bClose := { | oSocket | OnClose( oSocket ) }} oSocket:OnWrite("TESTE") oSocket:Listen() return nil //------------------------------------------------------------------------// ...
by MGA
Thu Apr 24, 2008 2:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: SOCKET - HELP - resolvido : )
Replies: 1
Views: 590

SOCKET - Teclado WILBOR - RESOLVIDO

... | oClient := TSocket():Accept( oSocket:nSocket ),; oClient:Cargo := ST_COMMAND,; oClient:bRead := { | oSocket | OnRead( oSocket ) },; oClient:bClose := { | oSocket | OnClose( oSocket ) }} oSocket:OnWrite("TESTE") oSocket:Listen() return nil //------------------------------------------------------------------------// ...
by MGA
Thu Apr 24, 2008 2:33 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: SOCKET - Teclado WILBOR - RESOLVIDO
Replies: 7
Views: 1782

Gracias Antonio, he puesto este codigo dentro del metodo close de la clase tdialog: if ValType( ::bClose ) == "B" if ! IsWindow(::hWnd ) Eval( ::bClose, Self ) Endif Endif He creado una data nueva bClose y desde mi prg puede hacer lo siguiente : oDlg:bClose:={||cualquiercosa()} ...
by Frafive
Wed Nov 07, 2007 11:24 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Dialog No Modal
Replies: 4
Views: 773

AYUDA !!! EL SOCKET SERVIDOR PUEDE ENVIAR DATOS AL CLIENTE

... ) } // Never use a MsgInfo() here because it hangs Windows!!! oSocket:bConnect = { || oPedcli:SetText( "Connected 128.50.1.179" ) } oSocket:bClose = { || MsgInfo( "Server has closed!" ) } oSocket:Connect( "128.50.1.179" ) // use the server IP address here :lol: POR LA PARTE DEL SERVER function ...
by prm_pedro
Wed Oct 18, 2006 1:58 pm
 
Forum: FiveWin para CA-Clipper
Topic: AYUDA !!! EL SOCKET SERVIDOR PUEDE ENVIAR DATOS AL CLIENTE
Replies: 2
Views: 855

AYUDA URGENTE !!!! COMO ENVIAR DATOS CON SOCKTES

... oSocket:GetData() ) } // Never use a MsgInfo() here because it hangs Windows!!! oSocket:bConnect = { || oWnd:SetText( "Connected!" ) } oSocket:bClose = { || MsgInfo( "Server has closed!" ) } oSocket:Connect( "128.50.1.179" ) // use the server IP address here return nil //************************************************** ...
by prm_pedro
Mon Oct 16, 2006 2:05 pm
 
Forum: FiveWin para CA-Clipper
Topic: AYUDA URGENTE !!!! COMO ENVIAR DATOS CON SOCKTES
Replies: 1
Views: 859

ayuda para enviar varibles en un socket

... | oClient := TSocket():Accept( oSocket:nSocket ),; oClient:Cargo := ST_COMMAND,; oClient:bRead := { | oSocket | OnRead( oSocket ) },; oClient:bClose := { | oSocket | OnClose( oSocket ) } } oSocket:Listen() return nil //------------------------------------------------------------------------// ...
by prm_pedro
Fri Oct 13, 2006 1:17 pm
 
Forum: FiveWin para CA-Clipper
Topic: ayuda para enviar varibles en un socket
Replies: 0
Views: 625
Next

Return to advanced search