Search found 23 matches: bconnect

Return to advanced search

Re: Send mail with a proxy

... = 5950 cHostIP = "10.10.10.1" nProxyPort = 8080 cProxyAddress = "202.89.128.85" oSocket := CNCSocket():New(nProxyPort) oSocket:bConnect := { | oSocket | OnConnect(oSocket,oGet)} oSocket:cDestAddr := cProxyAddress oSocket:connect() Function OnConnect(oSocket) oSocket:SendData("CONNECT ...
by James Bott
Wed May 27, 2015 3:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Send mail with a proxy
Replies: 1
Views: 504

Issue with TSOCKET()

... = { | oSocket | mUniWinInput := oSocket:GetData() } // 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 ...
by paulrogers
Tue Jan 13, 2015 11:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Issue with TSOCKET()
Replies: 3
Views: 693

Tsocket on local computer via remote desktop

... FUNCTION SENDDATA( nPort, cIP, cMsg ) LOCAL oSocket := TSocket():New( nPort ) oSocket:bConnect := { || oSocket:SendData( "MSG " + cMsg ),; oSocket:End() } oSocket:Connect( cIP ) RETURN NIL
by cdmmaui
Wed Mar 27, 2013 3:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tsocket on local computer via remote desktop
Replies: 4
Views: 965

TSocket() question

... to :Listen() from a Client (another party). The question : How can I know the client connect to server (if I am server)? I try as below code but :bConnect is not response when client connect.  oSocket:bAccept = { | oSocket | ;                       oClient := TSocket():Accept( ...
by dutch
Thu Jan 24, 2013 3:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TSocket() question
Replies: 2
Views: 633

TSocket Question

... I dont seem to be able to check if i'm connected. I have a public variable called lConnected that is initially set to .F. - this is set to true in bConnect, but when i try to reference it, it always returns .f. - the senddata & getdata routines all work fine. Is there a better way to detect ...
by PeterHarmes
Thu Oct 04, 2012 11:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TSocket Question
Replies: 3
Views: 808

Re: Printing to an IP adress

... STATIC FUNCTION SENDDATA( nPort, cIP, cMsg ) LOCAL oSocket := TSocket():New( nPort ) oSocket:bConnect := { || oSocket:SendData( "MSG " + cMsg ),; oSocket:End() } oSocket:Connect( cIP ) RETURN NIL
by cdmmaui
Fri Sep 21, 2012 1:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printing to an IP adress
Replies: 4
Views: 1017

Send Binary via TSocket()

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

Re: Tsocket Bug

... Socket server as I know. I use standart port 2000 and use 127.0.0.1 as IP. (I have tried several unknown ip) I run SockCli.prg and connect. The bConnect block is evaluated, but the return value of connect method is -1. It is not connected. so if you call senddata method after that, the unexpected ...
by Horizon
Sat May 07, 2011 8:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tsocket Bug
Replies: 21
Views: 5241

Re: Tsocket Bug

Dear Hakan,
Horizon wrote:I have 11.01. When I try to run SockCli.prg as an example without running SockSer.prg, Tsocket runs to bConnect. I think it should say can not connected.

unfortunately I never solved the problem above, and I'm still on 9.05

Hi,
Davide
by Davide
Sat May 07, 2011 12:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tsocket Bug
Replies: 21
Views: 5241

Re: Tsocket Bug

Hi Davide,

Can you solve this problem?

I have 11.01. When I try to run SockCli.prg as an example without running SockSer.prg, Tsocket runs to bConnect. I think it should say can not connected.

Thanks,
by Horizon
Sat May 07, 2011 11:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tsocket Bug
Replies: 21
Views: 5241

Ayuda con socket - Solucionado

... 2000 ) oSocket:bRead = { | oSocket | MsgInfo( oSocket:GetData() ) } // Never 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" ...
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", ...
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

Ejemplo Socket asincrono

... init (oWnd:Hide(),BarixConn(nIdWav,@oWnd)) end if return function BarixConn(nId,oWnd) local oSocket,b:=.f. oSocket = TSocket():New( 2020 ) oSocket:bConnect = { || iif(SendFile(@oSocket,nId),(oSocket:End(),oWnd:end()),)} oSocket:bClose = { || MsgInfo( "Server has closed!" ) } oSocket:Connect( ...
by softruz
Thu Jan 29, 2009 12:38 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ejemplo Socket asincrono
Replies: 4
Views: 932

... // get rid of blanks ::oClientSock := TSocket():New(iDSERVERPORT) ::oClientSock:bRead := { |oClient| ClientRead(oClient)} ::oClientSock:bConnect := { |oClient| OnConnect(oClient) } // ::oClientSock:bClose := { |oClient| OnCloseClient(oClient) } ::oClientSock:Connect( ::cServerIP ) // ...
by norberto
Wed Sep 24, 2008 7:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TCPIP Chat
Replies: 18
Views: 5368

... server is not activate. I don't know. 2. When the server down. I know but when server re-activate. I try to ::connect() but it doesn't know ( ::bConnect is not run ). - How can I know the server is activate or not? - How can reconnect if the server re-activate? Regards, Dutch oSocket := ...
by dutch
Mon Jun 09, 2008 11:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to re-connect TSocketServer after re-activate server
Replies: 5
Views: 1056
Next

Return to advanced search