Search found 22 matches: nsocket

Return to advanced search

Re: An easy way to make a tree-browse

... select '"+acid1+"',currency from currency limit 1 on duplicate key update descrip=descrip"),; if(MYSQL_AFFECTED_ROWS(oserver:nSocket)>0,(obrow2:otreeitem:add(acid1),obrow2:refresh()),)) MENUITEM "增加下阶 " ACTION (acid1:=padr(obrow2:otreeitem:cprompt,nacidlen," ...
by ShumingWang
Wed Jul 31, 2019 1:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: An easy way to make a tree-browse
Replies: 17
Views: 3591

Another for Sockserv and sockcli

... listen if there are oclients on lan ( sockcli.prg) I understood I must make an array to save all client is connected to server ( I must save the nsocket, the name and the ip of client) The server before must connect to one oclient and then can called this oclient with msg the oclient. ok this ...
by Silvio.Falconi
Mon Apr 30, 2018 8:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Another for Sockserv and sockcli
Replies: 0
Views: 422

Re: send a data to a client

I use sockcli.prg and sockserv.prg U found them on samples folder When a client is connetted to server I create an array with oClient:nSocket and oClient:ClientIP() I 'am trying to understand How I can acquire information and use the commands of socket If someone can help me ... I must not ...
by Silvio.Falconi
Thu Apr 26, 2018 7:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: send a data to a client
Replies: 6
Views: 1228

Issue with TSOCKET()

... mUniWinConnected := .F. mUniWinClosed := .F. mUniWinInput := "" oSocketArray[nBridge] := TSocket():New(UniPort) mTimer := 0 UniWinSocket := oSocketArray[nBridge]:nSocket oSocketArray[nBridge]:bRead = { | oSocket | mUniWinInput := oSocket:GetData() } // Never use a MsgInfo() here ...
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

... in sockcli.prg and than sockserv.prg. So first call oSocket:SendData and then oSocket:bAccept = { | oSocket | oClient := TSocket():Accept( oSocket:nSocket ),; oClient:Cargo := ST_COMMAND,; oClient:bRead := { | oSocket | OnRead( oSocket ) },; oClient:bClose := { | oSocket | OnClose( oSocket ) } ...
by Marc Vanzegbroeck
Mon Jun 16, 2014 8:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Sockets write & read question
Replies: 3
Views: 587

Re: "Snap" for Clipper

...     3960  3961  3964  3967  3969 NSIZE                  WINDOW.PRG      620   622   624 NSIZETYPE              WINDOW.PRG      774  2632  2667 NSOCKET                WINDOW.PRG      499  1352  1355 NSTATUS                WINDOW.PRG      519  3694  3697 NSTYLE                  WINDOW.PRG     ...
by Antonio Linares
Sat Oct 26, 2013 9:44 am
 
Forum: Off Topic / Otros temas
Topic: "Snap" for Clipper
Replies: 7
Views: 6714

Re: Trigger in MySQL

... ON planning FOR EACH ROW BEGIN UPDATE planning SET nr = nr + 1 where ID = 1; END" ) in TMysql (from harbour ) maybe is mysql_query( oServer:nSocket, "CREATE TRIGGER planning_update AFTER UPDATE ON planning FOR EACH ROW BEGIN UPDATE planning SET nr = nr + 1 where ID = 1; END" )
by Daniel Garcia-Gil
Sat Aug 25, 2012 5:05 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trigger in MySQL
Replies: 7
Views: 962

Re: Tsocket Bug

Thank you very much Daniel.

There is a help in Fivewin Function about ConnectTo like that.


ConnectTo( <nSocket>, <nPort>, <cIPAddr ) --> nRetCode

<nRetCode> Zero if successful, otherwise SOCKET_ERROR.

unfortunately, it does not work. It returns always -1.
by Horizon
Mon May 09, 2011 6:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tsocket Bug
Replies: 21
Views: 5255

Re: Minimize Dialog and Window too

... class instead." As you can see in tsocket.prg in this method METHOD New( nPort, oWnd ) CLASS TSocket if oWnd != nil oWnd:bSocket = { | nSocket, nLParam | ::HandleEvent( nSocket,; nLoWord( nLParam ), nHiWord( nLParam ) ) } WSAAsyncSelect( ::nSocket, oWnd:hWnd, WM_ASYNCSELECT,; nOr( FD_ACCEPT, ...
by MarcoBoschi
Sun Jan 23, 2011 9:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Minimize Dialog and Window too
Replies: 25
Views: 4279

Ask help to convert a php function into harbour

... SQLEASCAPE ) { mysql_real_escape_string( (MYSQL *)_parnl(1), _parc(2), _parc(3), _parnl(4) ) ; hb_retc( _parc(2)) ; } in prg ?SQLEASCAPE(oserver:nsocket,,"Zak's") Want to be: "Zak\'s " Regards ! Shuming Wang
by ShumingWang
Sun Jul 11, 2010 5:46 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Ask help to convert a php function into harbour
Replies: 0
Views: 227

error al compilar winsock de smtp luis

... } //----------------------------------------------------------------------------// #ifdef __HARBOUR__ HARBOUR HB_FUN_WSAASYNCSELECT( PARAMS ) // ( nSocket, nHWnd, nMsg, nModes ) --> nReturn #else CLIPPER WSAASYNCSE( PARAMS ) // LECT( nSocket, nHWnd, nMsg, nModes ) --> nReturn #endif { _retni( ...
by MANOLO
Thu Feb 19, 2009 7:20 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: error al compilar winsock de smtp luis
Replies: 2
Views: 858

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

... first two parameters and return value like the original winsock recv function so errors can be detected. // Uses a 4k buffer. CLIPPER RECV1() // ( nSocket, @cRecv ) --> nLength (or SOCKET_ERROR) { BYTE buffer[ 4096 ]; WORD wLen; // Is cRecv parameter a character passed by reference? if (_parinfo(2) ...
by xhbcoder
Thu May 08, 2008 4:48 pm
 
Forum: FiveWin for CA-Clipper
Topic: Converting POS application to xHarbour + FWH
Replies: 50
Views: 15631

SOCKET - HELP - resolvido : )

... function Server() oSocket = TSocket():New( 1001 ) oSocket:bAccept = { | oSocket | oClient := TSocket():Accept( oSocket:nSocket ),; oClient:Cargo := ST_COMMAND,; oClient:bRead := { | oSocket | OnRead( oSocket ) },; oClient:bClose := { | oSocket | OnClose( oSocket ) }} ...
by MGA
Thu Apr 24, 2008 2:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: SOCKET - HELP - resolvido : )
Replies: 1
Views: 593

SOCKET - Teclado WILBOR - RESOLVIDO

... function Server() oSocket = TSocket():New( 1001 ) oSocket:bAccept = { | oSocket | oClient := TSocket():Accept( oSocket:nSocket ),; oClient:Cargo := ST_COMMAND,; oClient:bRead := { | oSocket | OnRead( oSocket ) },; oClient:bClose := { | oSocket | OnClose( oSocket ) }} ...
by MGA
Thu Apr 24, 2008 2:33 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: SOCKET - Teclado WILBOR - RESOLVIDO
Replies: 7
Views: 1791
Next

Return to advanced search