Hello,

i have a big Problem...

I need to unload my Plugin and load it again.
After i have unloaded the plugin i delete the *.so file and
copy a new version to this position...

But when i than load the plugin again (without restart the server)
the old plugin version gets loaded so i think, that the plugin get loaded
from memmory...

Is there any way, to delete all content like cvars and other by unloading
the plugin so i can load a newer version without restart the server?

Thanks

With friendly reguards

Ratman2000

----- Original Message -----
From: "Ratman2000" <[EMAIL PROTECTED]>
To: <hlcoders@list.valvesoftware.com>
Sent: Wednesday, September 12, 2007 10:51 AM
Subject: Re: [hlcoders] Error in Query Protocoll ???


> Hello,
>
> yes the select supports UDP Sockets... becouse it uses the descriptors to
> read the state.
>
> How can i check the 4 Bytes?
>
> My problem is, that i dont get 2 Packets, so the first packet i have
> recieved isnt ok and
> there are nothing following...
>
> You know what i am meaning?
>
> With friendly Reguards
>
> Ratman2000
>
> ----- Original Message -----
> From: "Ronny Schedel" <[EMAIL PROTECTED]>
> To: <hlcoders@list.valvesoftware.com>
> Sent: Wednesday, September 12, 2007 11:24 AM
> Subject: Re: [hlcoders] Error in Query Protocoll ???
>
>
> > Hello,
> >
> > check the first 4 Bytes response
> >
> > FF FF FF FF means: only one packet is send
> > FE FF FF FF means: it is a multipacket response
> >
> > Use the packet ID to sort the packets and to check which packets are
> > missing.
> >
> > To understand what you got, save every packet to a new file and take a
> look
> > with a hex editor/viewer.
> >
> > Check the select() documentation to figure out if it really support UDP
> > sockets or not, as far as I remember it does not, but I could be wrong.
> >
> > Best regards
> >
> > Ronny Schedel
> >
> > >
> > > Hello,
> > >
> > > i have tested this and have tested to recieve another packet but i
dont
> > get
> > > any...
> > >
> > > My code after i have connected i send the request and recieve it with
> this
> > > function:
> > >
> > >    FD_ZERO( &amp;ReadSet );
> > >    FD_SET( Socket, &amp;ReadSet );
> > >    timeVal.tv_sec = 1;
> > >    timeVal.tv_usec = 0;
> > >
> > >    for ( int i = 1; i &lt;= 3; i++ )
> > >    {
> > >     if ( select( Socket+1, &amp;ReadSet, NULL, NULL, &amp;timeVal ) ==
> 1 )
> > >     {
> > >      if ( FD_ISSET( Socket, &amp;ReadSet ) )
> > >      {
> > >       bytes = recv( Socket, buffer, sizeof( buffer ) - 1, 0 );
> > >       buffer[ bytes ] = '';
> > >
> > >       if ( bytes == SOCKET_ERROR || bytes == 0 )
> > >       {
> > >        printf( &quot;    Server offlinen&quot; );
> > >
> > >        return;
> > >       }
> > >       else if ( buffer[ 4 ] != S2A_RULES )
> > >       {
> > >        printf( &quot;     Error by recieving Rules!n&quot; );
> > >       }
> > >
> > >       printf( &quot;     NumRulez: %in&quot;,
*(short*)&amp;buffer[5] );
> > >      }
> > >     }
> > >     else
> > >     {
> > >      Retrys--;
> > >      printf( &quot;No answer...n&quot; );
> > >     }
> > >    }
> > >
> > > In this test i run 3 times to check for 3 packets (as test)...
> > > So in my test i have to recieve 2 packets by the servers that send me
> the
> > > errors!
> > >
> > > But i recieve:
> > >
> > > Connected: 195.210.58.104:27015
> > >      NumRulez: 64
> > > No answer...
> > > No answer...
> > > Connected: 85.131.173.50:26000
> > >      NumRulez: 64
> > > No answer...
> > > No answer...
> > > Connected: 82.96.106.43:27100
> > >      NumRulez: 64
> > > No answer...
> > > No answer...
> > > Connected: 84.200.252.37:27025
> > >      Error by recieving Rules!
> > >      NumRulez: 21880
> > > No answer...
> > > No answer...
> > >
> > > So you can see, the first 3 Servers responsed with 64 Cvars whats
right
> > and
> > > i can scan it with no problems...
> > >
> > > But the last server returns with an error how i have sayed in my first
> > > mail..
> > > But the other 2 checks to show the other packts returns no answer, so
> > there
> > > no other packets...
> > >
> > > So the first packet has to be the packet with all infos, but i cant
> > recieve
> > > it right?
> > >
> > > Can anybody tell me, whats wrong with it?
> > >
> > > Thanks!
> > >
> > > (sorry for my bad english!)
> > >
> > > With friendly Reguards from Germany
> > >
> > > Ratman2000
> > >
> > > ----- Original Message -----
> > > From: &quot;Ronny Schedel&quot; &lt;[EMAIL PROTECTED]&gt;
> > > To: &lt;hlcoders@list.valvesoftware.com&gt;
> > > Sent: Monday, September 10, 2007 6:05 PM
> > > Subject: Re: [hlcoders] Error in Query Protocoll ???
> > >
> > >
> > > &gt; Hello,
> > > &gt;
> > > &gt; first, the packet size is 1400 as far as I remember. Second, you
> have
> > to
> > > &gt; deal with multi-packets:
http://dev.kquery.com/index.php?article=21
> > > &gt; This will happens mostly with the rules request, because it does
> not
> > fit
> > > &gt; into one packet. Remember, UDP packets can be received in wrong
> > order. Try
> > > &gt; to handle this all and it will fix your problem.
> > > &gt;
> > > &gt; Best regards
> > > &gt;
> > > &gt; Ronny Schedel
> > > &gt;
> > > &gt;
> > > &gt; &gt; Hello,
> > > &gt; &gt;
> > > &gt; &gt; is there an error in the Query Protocolo?
> > > &gt; &gt;
> > > &gt; &gt; I call from an application the Server Protocol on many
> different
> > > &gt; &gt; servers and all wors fine.. But on few servers i am not able
> to
> > recieve
> > > &gt; &gt; the
> > > &gt; &gt; Rulez but HLSW i have seen works fine!
> > > &gt; &gt;
> > > &gt; &gt; I Tested with this Servers:
> > > &gt; &gt;
> > > &gt; &gt; Connected: 85.131.163.208:27055
> > > &gt; &gt;     NumRulez: 64
> > > &gt; &gt; Connected: 89.106.68.188:27016
> > > &gt; &gt;     NumRulez: 74
> > > &gt; &gt; Connected: 85.14.229.244:27015
> > > &gt; &gt;     NumRulez: 64
> > > &gt; &gt; Connected: 85.14.225.123:27015
> > > &gt; &gt;     NumRulez: 67
> > > &gt; &gt; Connected: 195.4.107.178:27015
> > > &gt; &gt;     Error on recieving Rules!
> > > &gt; &gt;     NumRulez: 2
> > > &gt; &gt;     Error on recieving Rules!
> > > &gt; &gt;     NumRulez: 2
> > > &gt; &gt;     Error on recieving Rules!
> > > &gt; &gt;     NumRulez: 2
> > > &gt; &gt;
> > > &gt; &gt; So you can see, on Server 195.4.107.178:27015 i am not able
to
> > recieve
> > > the
> > > &gt; &gt; Rules right like the other servers...
> > > &gt; &gt;
> > > &gt; &gt; I Request the rules on this way:
> > > &gt; &gt;
> > > &gt; &gt; After i am connectet i send:
> > > &gt; &gt;
> > > &gt; &gt; strcpy( Befehl, &quot;xFFxFFxFFxFFx56&quot; );
> > > &gt; &gt; strcat( Befehl, GetServerChallange() );
> > > &gt; &gt;
> > > &gt; &gt; bytes = send( Socket, Befehl, strlen( Befehl ), 0 );
> > > &gt; &gt;
> > > &gt; &gt; GetServerChallange returns the Server Challange and that
works
> > fine
> > > &gt; &gt; becouse
> > > &gt; &gt; i am able to retrieve from all other serves
> > > &gt; &gt; the rules...
> > > &gt; &gt;
> > > &gt; &gt; Than:
> > > &gt; &gt;
> > > &gt; &gt; bytes = recv( Socket, buffer, sizeof( buffer ) - 1, 0 );
> > > &gt; &gt; buffer[ bytes ] = '';
> > > &gt; &gt;
> > > &gt; &gt; buffer is declared as char buffer[1024];
> > > &gt; &gt;
> > > &gt; &gt; After that i check for errors like:
> > > &gt; &gt;
> > > &gt; &gt; if ( buffer[ 4 ] != S2A_RULES )
> > > &gt; &gt; {
> > > &gt; &gt;     printf( &quot;     Error on recieving Rules!n&quot; );
> > > &gt; &gt; }
> > > &gt; &gt;
> > > &gt; &gt; S2A_RULES is defined as:
> > > &gt; &gt;
> > > &gt; &gt; #define S2A_RULES 0x45
> > > &gt; &gt;
> > > &gt; &gt; So i check that is the right response.
> > > &gt; &gt;
> > > &gt; &gt; But on many servers i get the error but i dont know why! Can
> > anybody
> > > help
> > > &gt; &gt; me
> > > &gt; &gt; to fix this problem?
> > > &gt; &gt;
> > > &gt; &gt; With friendly Reguards
> > > &gt; &gt;
> > > &gt; &gt; Ratman2000
> > > &gt; &gt;
> > > &gt; &gt;
> > > &gt; &gt; _______________________________________________
> > > &gt; &gt; To unsubscribe, edit your list preferences, or view the list
> > archives,
> > > &gt; &gt; please visit:
> > > &gt; &gt; http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > > &gt; &gt;
> > > &gt;
> > > &gt;
> > > &gt; _______________________________________________
> > > &gt; To unsubscribe, edit your list preferences, or view the list
> > archives,
> > > please visit:
> > > &gt; http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > > &gt;
> > >
> > >
> > > _______________________________________________
> > > To unsubscribe, edit your list preferences, or view the list archives,
> > please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >
> > >
> > >
> > >
> > >
> >
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to