Do you have compiled in multithread mode ?

I don't have tested yet in multiple connections but If I am not wrong
I read that , it is needed MT mode

This is my server , the defines , are not needed but i use it as a remember
of defaults for the server

Bruno


#define DBSERVER  "127.0.0.1"
#define DBPORT    "2941"
#define DBPASSWD  "topsecret"
#define DBDIR     "data"
#define DBFILE    "clients"

#define DBNAME    "net:" + DBSERVER + ":" + DBPORT + ":" + ;
                  DBPASSWD + ":" + DBDIR + "/" + DBFILE

request DBFCDX

request HB_DIREXISTS
request MAKEDIR

proc main()
   local pSockSrv, lExists

   set exclusive off
   rddSetDefault( "DBFCDX" )

   pSockSrv := netio_mtserver( DBPORT,,, /* RPC */ .T., DBPASSWD )
   if empty( pSockSrv )
      ? "Cannot start NETIO server !!!"
      wait "Press any key to exit..."
      quit
   endif

   ? "NETIO server activated."
   hb_idleSleep( 0.1 )
   wait


2010/4/22 Winston Garcia <wisto...@yahoo.es>

> Hi Bruno.
>
> Have you a sample of Netio server what received many conections ?
>
> The samples en contrib/netio only accept one conection at time ?
>
> Greeting
>
> Winston Garcia
> Venezuela
>
> --- El *jue, 22/4/10, Winston Garcia <wisto...@yahoo.es>* escribió:
>
>
> De: Winston Garcia <wisto...@yahoo.es>
>
> Asunto: Re: [Harbour] NETIO Questions
> Para: "Harbour Project Main Developer List." <harbour@harbour-project.org>
> Fecha: jueves, 22 de abril, 2010 13:23
>
>
>    Thanks Bruno. I'll try.
>
> Winston Garcia
>
> --- El *jue, 22/4/10, Bruno Luciani <bruno.luci...@gmail.com>* escribió:
>
>
> De: Bruno Luciani <bruno.luci...@gmail.com>
> Asunto: Re: [Harbour] NETIO Questions
> Para: "Harbour Project Main Developer List." <harbour@harbour-project.org>
> Fecha: jueves, 22 de abril, 2010 13:17
>
> I am using Netio to some tests
>
> You neet to compile server using MT support ( Multithread )
>
> In my tests i try in this way to use index and aparently work ok
>
>
>
> if !FILE("net:clients.cdx")
>    index on Nombre tag nom to net:clients.cdx
> endif
>
> Bruno
>
> 2010/4/22 Winston Garcia 
> <wisto...@yahoo.es<http://es.mc269.mail.yahoo.com/mc/compose?to=wisto...@yahoo.es>
> >
>
>>   Hi All, my English is bad.
>>
>> How work the index in netio ?
>> any sample ?
>> The Netiosvr samples only support one conection, how i enable to support
>> any conection ?
>>
>> greeting
>>
>> Winston Garcia
>> Venezuela
>>
>>
>> _______________________________________________
>> Harbour mailing list (attachment size limit: 40KB)
>> Harbour@harbour-project.org<http://es.mc269.mail.yahoo.com/mc/compose?to=harb...@harbour-project.org>
>> http://lists.harbour-project.org/mailman/listinfo/harbour
>>
>>
>
> -----Adjunto en línea a continuación-----
>
> _______________________________________________
> Harbour mailing list (attachment size limit: 40KB)
> Harbour@harbour-project.org<http://es.mc269.mail.yahoo.com/mc/compose?to=harb...@harbour-project.org>
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
>
>
> -----Adjunto en línea a continuación-----
>
> _______________________________________________
> Harbour mailing list (attachment size limit: 40KB)
> Harbour@harbour-project.org<http://es.mc269.mail.yahoo.com/mc/compose?to=harb...@harbour-project.org>
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
>
>
> _______________________________________________
> Harbour mailing list (attachment size limit: 40KB)
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
>
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to