msn-proxy-devel Mailing List for msn-proxy: the msn connection control (Page 10)
Brought to you by:
loos-br
You can subscribe to this list here.
| 2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(10) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2009 |
Jan
(45) |
Feb
(19) |
Mar
(21) |
Apr
(17) |
May
(43) |
Jun
(11) |
Jul
(3) |
Aug
(17) |
Sep
(17) |
Oct
(1) |
Nov
(4) |
Dec
(7) |
| 2010 |
Jan
(1) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
(1) |
Oct
|
Nov
(3) |
Dec
(4) |
| 2011 |
Jan
(1) |
Feb
(3) |
Mar
(9) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(8) |
Jun
(19) |
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Evaldo G. <ev...@ga...> - 2009-01-29 13:10:26
|
Oi, Luiz Luiz Otavio O Souza wrote: >>> Bom dia Luiz >>> >>> Outra coisa que estou percebendo é a demora em trazer os resultados >>> usando mysql depois que o banco começa a ficar meio grande (tenho >>> msn-proxy rodando com bancos que já chegam a 90 mb em 3 meses), para >>> isso há uma solução simples, converter as tabelas em innodb e criar >>> relacionamentos. >>> Eu já tenho isso em produção, ficou muito mais rápido. Vou fazer as >>> alterações necessárias e envio sql do banco mysql usando innodb e com os >>> relacionamentos. >>> Até mesmo para futuros relatórios, com myisam o banco não vai dar conta. >>> >>> Atenciosamente >>> Pierre Santana >>> >> Eu tenho o banco modelado com InnoDB e chaves estrangeiras, também em >> produção, e já discuti com o Luiz essa questão. Ele ficou de analisar >> o impacto sobre aqueles usuários que já possuem o MSN-Proxy em >> funcionamento (levando em conta todas as outras melhorias/correções >> que sugerimos). Estou no aguardo de um posicionamento dele para poder >> enviar ao trunk do repositório. =D >> > > A estrutura das tabelas e a mesma? Se for, simplesmente incluir as 2 opcoes e o usuario escolhe... Acho que é bem tranquilo isso. Se nao for, corrigir as incoerencias, pois nao deveriam existir :) De qualquer forma, seria interessante que o povo enviasse pra lista o que tem de especial no seu banco de dados, ou no seu layout especifico, para que o projeto siga o consenso. > Alexandre e Pierre, > > Estou em contato com o William Knob que também já contribuiu em outras > oportunidades e agora também esta sugerindo algumas alterações na base de > dados (estou aguardando um e-mail com os detalhes das alterações propostas). > > Estou encorajando o pessoal a trazer essas opções para a lista para que elas > possam ser avaliadas aqui em grupo e assim possamos chegar um concenso sobre > a base de dados. > > Devemos aproveitar as mudanças da próxima versão para mudar a base de dados > no que for necessário, mas devemos fazer isso de maneira programada, > evitando maiores problemas para o usuário (por ex. adicionar um campo na > base a cada nova versão :/). > > Tenho sim algumas duvidas sobre se os usuários estarão prontos para utilizar > as tabelas innodb que podem requerer alguma configuração adicional no mysql. > Vejo até hoje gente tentando instalar o msn-proxy com o mysql-4.x. Mas > enfim, de nada adianta ficar preso as tabelas myisam. > > Vocês acham válido fechar mais um release com essas correções que já fizemos > antes de começar as alterações maiores ? > Acho válido sim, pois pelo que percebo há bastante gente usando o daemon em producão e tendo problemas com recentes frescuras de protocolo. Nem todo mundo sabe usar, ou o chefe aceita usar snapshots do svn :) > Abraços e obrigado, > Luiz > Evaldo Gardenali |
|
From: Luiz O. O S. <lo...@gm...> - 2009-01-29 12:23:27
|
>> Bom dia Luiz >> >> Outra coisa que estou percebendo é a demora em trazer os resultados >> usando mysql depois que o banco começa a ficar meio grande (tenho >> msn-proxy rodando com bancos que já chegam a 90 mb em 3 meses), para >> isso há uma solução simples, converter as tabelas em innodb e criar >> relacionamentos. >> Eu já tenho isso em produção, ficou muito mais rápido. Vou fazer as >> alterações necessárias e envio sql do banco mysql usando innodb e com os >> relacionamentos. >> Até mesmo para futuros relatórios, com myisam o banco não vai dar conta. >> >> Atenciosamente >> Pierre Santana > > Eu tenho o banco modelado com InnoDB e chaves estrangeiras, também em > produção, e já discuti com o Luiz essa questão. Ele ficou de analisar > o impacto sobre aqueles usuários que já possuem o MSN-Proxy em > funcionamento (levando em conta todas as outras melhorias/correções > que sugerimos). Estou no aguardo de um posicionamento dele para poder > enviar ao trunk do repositório. =D Alexandre e Pierre, Estou em contato com o William Knob que também já contribuiu em outras oportunidades e agora também esta sugerindo algumas alterações na base de dados (estou aguardando um e-mail com os detalhes das alterações propostas). Estou encorajando o pessoal a trazer essas opções para a lista para que elas possam ser avaliadas aqui em grupo e assim possamos chegar um concenso sobre a base de dados. Devemos aproveitar as mudanças da próxima versão para mudar a base de dados no que for necessário, mas devemos fazer isso de maneira programada, evitando maiores problemas para o usuário (por ex. adicionar um campo na base a cada nova versão :/). Tenho sim algumas duvidas sobre se os usuários estarão prontos para utilizar as tabelas innodb que podem requerer alguma configuração adicional no mysql. Vejo até hoje gente tentando instalar o msn-proxy com o mysql-4.x. Mas enfim, de nada adianta ficar preso as tabelas myisam. Vocês acham válido fechar mais um release com essas correções que já fizemos antes de começar as alterações maiores ? Abraços e obrigado, Luiz |
|
From: aledr <mat...@gm...> - 2009-01-28 12:56:32
|
2009/1/28 Pierre Santana <pie...@gm...>: > Bom dia Luiz > > Outra coisa que estou percebendo é a demora em trazer os resultados > usando mysql depois que o banco começa a ficar meio grande (tenho > msn-proxy rodando com bancos que já chegam a 90 mb em 3 meses), para > isso há uma solução simples, converter as tabelas em innodb e criar > relacionamentos. > Eu já tenho isso em produção, ficou muito mais rápido. Vou fazer as > alterações necessárias e envio sql do banco mysql usando innodb e com os > relacionamentos. > Até mesmo para futuros relatórios, com myisam o banco não vai dar conta. > > Atenciosamente > Pierre Santana Eu tenho o banco modelado com InnoDB e chaves estrangeiras, também em produção, e já discuti com o Luiz essa questão. Ele ficou de analisar o impacto sobre aqueles usuários que já possuem o MSN-Proxy em funcionamento (levando em conta todas as outras melhorias/correções que sugerimos). Estou no aguardo de um posicionamento dele para poder enviar ao trunk do repositório. =D Obrigado. > > Em Qua, 2009-01-28 às 08:43 -0200, Luiz Otavio O Souza escreveu: >> > Olá Luiz >> > >> > Fiz testes com o código do trunk e aparentemente foi resolvido o >> > problema dos comandos ADL, testei com um usuário com 1020 contatos e >> > conectou sem problemas. >> > Uma melhoria que seria interessante seria incorporar ao msn-proxy o >> > armazenamento em um log da depuração do sistema, podendo ser configurado >> > por debug info, status info, protocolo, sql ou verbose. Muitas vezes >> > precisamos verificar problemas, e para isso, precisamos matar o >> > processo, derrubando todos os usuários conectados e inicia-lo novamente >> > com a opção que desejamos. >> > Outra coisa que já podemos começar a fazer é uma base de conhecimento, >> > para armazenamento de erros freqüentes e soluções. Quem sabe transformar >> > o site em wiki. >> > >> > Anteciosamente >> > Pierre Santana >> >> Ola Pierre, que boa notícia :) >> >> Eu achei uma solução para integrar o seu patch, sem o sleep() e olha que eu >> quase desisti de encontrar a solução (que acabou aparecendo num passeio de >> carro :) ) >> >> Quanto a melhoria, hoje eu mantenho isso desabilitado porque o consumo de >> recursos para gerar os logs é bem alto (afeta a CPU e a propria velocidade >> de resposta do msn-proxy). Mas posso sim providenciar meios para que os logs >> sejam ligados/desligados sem que seja preciso reiniciar o msn-proxy. >> >> Hoje em dia eu tenho condições (leia-se link e hardware) disponiveis para >> eventualmente colocar esse wiki no ar. Será que o sourceforge não fornece >> nada nesse sentido ? Hoje utilizamos apenas os recursos cedidos pelo sf, >> nada além disso (tenho que confessar que já estou muito contente com o >> suporte dado pelo sf ao open-source). >> >> Por enquanto muito obrigado pela contribuição Pierre. >> >> Abraços, >> Luiz >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> _______________________________________________ >> msn-proxy-devel mailing list >> msn...@li... >> https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > -- [ ]'s Aledr - Alexandre "OpenSource Solutions for SmallBusiness Problems" |
|
From: Pierre S. <pie...@gm...> - 2009-01-28 11:21:20
|
Bom dia Luiz Outra coisa que estou percebendo é a demora em trazer os resultados usando mysql depois que o banco começa a ficar meio grande (tenho msn-proxy rodando com bancos que já chegam a 90 mb em 3 meses), para isso há uma solução simples, converter as tabelas em innodb e criar relacionamentos. Eu já tenho isso em produção, ficou muito mais rápido. Vou fazer as alterações necessárias e envio sql do banco mysql usando innodb e com os relacionamentos. Até mesmo para futuros relatórios, com myisam o banco não vai dar conta. Atenciosamente Pierre Santana Em Qua, 2009-01-28 às 08:43 -0200, Luiz Otavio O Souza escreveu: > > Olá Luiz > > > > Fiz testes com o código do trunk e aparentemente foi resolvido o > > problema dos comandos ADL, testei com um usuário com 1020 contatos e > > conectou sem problemas. > > Uma melhoria que seria interessante seria incorporar ao msn-proxy o > > armazenamento em um log da depuração do sistema, podendo ser configurado > > por debug info, status info, protocolo, sql ou verbose. Muitas vezes > > precisamos verificar problemas, e para isso, precisamos matar o > > processo, derrubando todos os usuários conectados e inicia-lo novamente > > com a opção que desejamos. > > Outra coisa que já podemos começar a fazer é uma base de conhecimento, > > para armazenamento de erros freqüentes e soluções. Quem sabe transformar > > o site em wiki. > > > > Anteciosamente > > Pierre Santana > > Ola Pierre, que boa notícia :) > > Eu achei uma solução para integrar o seu patch, sem o sleep() e olha que eu > quase desisti de encontrar a solução (que acabou aparecendo num passeio de > carro :) ) > > Quanto a melhoria, hoje eu mantenho isso desabilitado porque o consumo de > recursos para gerar os logs é bem alto (afeta a CPU e a propria velocidade > de resposta do msn-proxy). Mas posso sim providenciar meios para que os logs > sejam ligados/desligados sem que seja preciso reiniciar o msn-proxy. > > Hoje em dia eu tenho condições (leia-se link e hardware) disponiveis para > eventualmente colocar esse wiki no ar. Será que o sourceforge não fornece > nada nesse sentido ? Hoje utilizamos apenas os recursos cedidos pelo sf, > nada além disso (tenho que confessar que já estou muito contente com o > suporte dado pelo sf ao open-source). > > Por enquanto muito obrigado pela contribuição Pierre. > > Abraços, > Luiz > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel |
|
From: Luiz O. O S. <lo...@gm...> - 2009-01-28 10:43:35
|
> Olá Luiz > > Fiz testes com o código do trunk e aparentemente foi resolvido o > problema dos comandos ADL, testei com um usuário com 1020 contatos e > conectou sem problemas. > Uma melhoria que seria interessante seria incorporar ao msn-proxy o > armazenamento em um log da depuração do sistema, podendo ser configurado > por debug info, status info, protocolo, sql ou verbose. Muitas vezes > precisamos verificar problemas, e para isso, precisamos matar o > processo, derrubando todos os usuários conectados e inicia-lo novamente > com a opção que desejamos. > Outra coisa que já podemos começar a fazer é uma base de conhecimento, > para armazenamento de erros freqüentes e soluções. Quem sabe transformar > o site em wiki. > > Anteciosamente > Pierre Santana Ola Pierre, que boa notícia :) Eu achei uma solução para integrar o seu patch, sem o sleep() e olha que eu quase desisti de encontrar a solução (que acabou aparecendo num passeio de carro :) ) Quanto a melhoria, hoje eu mantenho isso desabilitado porque o consumo de recursos para gerar os logs é bem alto (afeta a CPU e a propria velocidade de resposta do msn-proxy). Mas posso sim providenciar meios para que os logs sejam ligados/desligados sem que seja preciso reiniciar o msn-proxy. Hoje em dia eu tenho condições (leia-se link e hardware) disponiveis para eventualmente colocar esse wiki no ar. Será que o sourceforge não fornece nada nesse sentido ? Hoje utilizamos apenas os recursos cedidos pelo sf, nada além disso (tenho que confessar que já estou muito contente com o suporte dado pelo sf ao open-source). Por enquanto muito obrigado pela contribuição Pierre. Abraços, Luiz |
|
From: Pierre S. <pie...@gm...> - 2009-01-27 17:21:09
|
Em Ter, 2009-01-27 às 14:42 -0200, aledr escreveu: > 2009/1/27 Pierre Santana <pie...@gm...>: > > Olá Luiz > > > > Fiz testes com o código do trunk e aparentemente foi resolvido o > > problema dos comandos ADL, testei com um usuário com 1020 contatos e > > conectou sem problemas. > > Uma melhoria que seria interessante seria incorporar ao msn-proxy o > > armazenamento em um log da depuração do sistema, podendo ser configurado > > por debug info, status info, protocolo, sql ou verbose. Muitas vezes > > precisamos verificar problemas, e para isso, precisamos matar o > > processo, derrubando todos os usuários conectados e inicia-lo novamente > > com a opção que desejamos. > > Já tenho uma solução para isso em funcionamento, sem a necessidade de > alterar o código atual do MSN-Proxy. Estou concluindo os testes e a > nova interface para gerar um RPM e disponibilizá-lo na lista. Na > próxima release haverá muitas novidades. =D > Que distribuição você está utilizando? Estou utilizando CentOS 5.2. Seria interessante você disponibilizar também em .tar.gz pois muitos utilizam distribuições que não são baseadas em rpm, e o próprio Luiz, pelo que parece, usa FreeBSD. > > > Outra coisa que já podemos começar a fazer é uma base de conhecimento, > > para armazenamento de erros freqüentes e soluções. Quem sabe transformar > > o site em wiki. > > > > Anteciosamente > > Pierre Santana > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by: > > SourcForge Community > > SourceForge wants to tell your story. > > http://p.sf.net/sfu/sf-spreadtheword > > _______________________________________________ > > msn-proxy-devel mailing list > > msn...@li... > > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > > > -- > [ ]'s > Aledr - Alexandre > "OpenSource Solutions for SmallBusiness Problems" > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel |
|
From: aledr <mat...@gm...> - 2009-01-27 16:42:21
|
2009/1/27 Pierre Santana <pie...@gm...>: > Olá Luiz > > Fiz testes com o código do trunk e aparentemente foi resolvido o > problema dos comandos ADL, testei com um usuário com 1020 contatos e > conectou sem problemas. > Uma melhoria que seria interessante seria incorporar ao msn-proxy o > armazenamento em um log da depuração do sistema, podendo ser configurado > por debug info, status info, protocolo, sql ou verbose. Muitas vezes > precisamos verificar problemas, e para isso, precisamos matar o > processo, derrubando todos os usuários conectados e inicia-lo novamente > com a opção que desejamos. Já tenho uma solução para isso em funcionamento, sem a necessidade de alterar o código atual do MSN-Proxy. Estou concluindo os testes e a nova interface para gerar um RPM e disponibilizá-lo na lista. Na próxima release haverá muitas novidades. =D Que distribuição você está utilizando? > Outra coisa que já podemos começar a fazer é uma base de conhecimento, > para armazenamento de erros freqüentes e soluções. Quem sabe transformar > o site em wiki. > > Anteciosamente > Pierre Santana > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > -- [ ]'s Aledr - Alexandre "OpenSource Solutions for SmallBusiness Problems" |
|
From: Pierre S. <pie...@gm...> - 2009-01-27 16:30:51
|
Olá Luiz Fiz testes com o código do trunk e aparentemente foi resolvido o problema dos comandos ADL, testei com um usuário com 1020 contatos e conectou sem problemas. Uma melhoria que seria interessante seria incorporar ao msn-proxy o armazenamento em um log da depuração do sistema, podendo ser configurado por debug info, status info, protocolo, sql ou verbose. Muitas vezes precisamos verificar problemas, e para isso, precisamos matar o processo, derrubando todos os usuários conectados e inicia-lo novamente com a opção que desejamos. Outra coisa que já podemos começar a fazer é uma base de conhecimento, para armazenamento de erros freqüentes e soluções. Quem sabe transformar o site em wiki. Anteciosamente Pierre Santana |
|
From: <lo...@us...> - 2009-01-27 15:14:30
|
Revision: 100
http://msn-proxy.svn.sourceforge.net/msn-proxy/?rev=100&view=rev
Author: loos-br
Date: 2009-01-27 15:14:25 +0000 (Tue, 27 Jan 2009)
Log Message:
-----------
adiciona mais um comando no msnp18
Modified Paths:
--------------
trunk/command.c
trunk/msn-proxy.h
trunk/msnp18.h
trunk/xml.c
Modified: trunk/command.c
===================================================================
--- trunk/command.c 2009-01-25 01:25:23 UTC (rev 99)
+++ trunk/command.c 2009-01-27 15:14:25 UTC (rev 100)
@@ -74,6 +74,7 @@
strcasecmp((char *)cmd->cmd.s, "PAG") != 0 &&
strcasecmp((char *)cmd->cmd.s, "QRY") != 0 &&
strcasecmp((char *)cmd->cmd.s, "RML") != 0 &&
+ strcasecmp((char *)cmd->cmd.s, "UBM") != 0 &&
strcasecmp((char *)cmd->cmd.s, "UBN") != 0 &&
strcasecmp((char *)cmd->cmd.s, "UBX") != 0 &&
strcasecmp((char *)cmd->cmd.s, "UUM") != 0 &&
Modified: trunk/msn-proxy.h
===================================================================
--- trunk/msn-proxy.h 2009-01-25 01:25:23 UTC (rev 99)
+++ trunk/msn-proxy.h 2009-01-27 15:14:25 UTC (rev 100)
@@ -90,7 +90,7 @@
#define P2P_FILE 0x00002000
#ifndef MSNPROXY_VERSION
-#define MSNPROXY_VERSION "0.6.3p2"
+#define MSNPROXY_VERSION "0.6.4"
#endif
#ifndef MSNPROXY_RELEASE
Modified: trunk/msnp18.h
===================================================================
--- trunk/msnp18.h 2009-01-25 01:25:23 UTC (rev 99)
+++ trunk/msnp18.h 2009-01-27 15:14:25 UTC (rev 100)
@@ -55,6 +55,7 @@
{ "RML", 2, check_args },
{ "RNG", 0, rng_sb_proxy },
{ "SBS", 2, check_args },
+ { "UBM", 6, check_args },
{ "UBN", 3, check_args },
{ "UBX", 0, msn_ubx },
{ "URL", 0, msn_url },
Modified: trunk/xml.c
===================================================================
--- trunk/xml.c 2009-01-25 01:25:23 UTC (rev 99)
+++ trunk/xml.c 2009-01-27 15:14:25 UTC (rev 100)
@@ -388,7 +388,7 @@
int cmdtype;
int i;
- /* check for superd */
+ /* check for msn-proxy class */
msn_proxy = SLIST_FIRST(xml_tag_head);
if (!msn_proxy ||
msn_proxy->name.len == 0 ||
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lo...@us...> - 2009-01-25 01:25:26
|
Revision: 99
http://msn-proxy.svn.sourceforge.net/msn-proxy/?rev=99&view=rev
Author: loos-br
Date: 2009-01-25 01:25:23 +0000 (Sun, 25 Jan 2009)
Log Message:
-----------
corrigido bloqueio realtime de usuarios no messenger 9 e em algumas outras versoes
Modified Paths:
--------------
trunk/ChangeLog
trunk/contacts-data.h
trunk/contacts.c
trunk/mysql/tables/contacts
trunk/protocol.c
trunk/sql.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-01-24 17:23:36 UTC (rev 98)
+++ trunk/ChangeLog 2009-01-25 01:25:23 UTC (rev 99)
@@ -6,7 +6,10 @@
- Adicionado um sistema de sincronizacao para o envio mais espacado dos
comandos ADL, evitando o erro 240
+- Corrigido o bloqueieo realtime de usuarios para o messenger 9. Corrigidos
+ bugs para outras versoes do protocolo
+
2009-01-20
- Corrigido o suporte ao messenger 9 (MSNP18)
Modified: trunk/contacts-data.h
===================================================================
--- trunk/contacts-data.h 2009-01-24 17:23:36 UTC (rev 98)
+++ trunk/contacts-data.h 2009-01-25 01:25:23 UTC (rev 99)
@@ -38,6 +38,7 @@
unsigned long lists; /* lists information */
struct contact_ *save; /* update data */
unsigned long long flags; /* client flags */
+ unsigned long long flags2; /* client flags */
};
struct contacts {
Modified: trunk/contacts.c
===================================================================
--- trunk/contacts.c 2009-01-24 17:23:36 UTC (rev 98)
+++ trunk/contacts.c 2009-01-25 01:25:23 UTC (rev 99)
@@ -88,9 +88,13 @@
io_printf(1, "]\n");
io_printf(1, "debug contact: info: [%s]\n", &contact->info);
io_printf(1, "debug contact: flags: [%l]\n", contact->flags);
+ io_printf(1, "debug contact: flags2: [%l]\n", contact->flags2);
io_printf(1, "debug contact: lists: [%d]\n", contact->lists);
io_printf(1, "debug contact: status: [%s]\n", &contact->status);
io_printf(1, "debug contact: object: [%s]\n", &contact->o);
+
+ if (contact->save)
+ contact_print(contact->save);
}
void
@@ -699,6 +703,8 @@
string *d; /* texto nome */
string *o; /* object */
string *s; /* status */
+ char *ep;
+ char *f;
if (cmd->args_len < 5)
@@ -743,8 +749,12 @@
die_nomem();
if (s->len > 0 && str_copy(&save->status, s->s, s->len) == 0)
die_nomem();
- save->flags = (get_arg(cmd, 3) == NULL) ? 0 : atoll((char *)cmd->args[3]->s);
+ f = (get_arg(cmd, 3) == NULL) ? "" : (char *)cmd->args[3]->s;
+ save->flags = strtoul(f, &ep, 10);
+ if (ep && *ep == ':')
+ save->flags2 = atol(++ep);
+
/* check for blocked contacts */
if (save->deny & CONTACT_DENY)
save->deny |= CONTACT_BLOCKED;
Modified: trunk/mysql/tables/contacts
===================================================================
--- trunk/mysql/tables/contacts 2009-01-24 17:23:36 UTC (rev 98)
+++ trunk/mysql/tables/contacts 2009-01-25 01:25:23 UTC (rev 99)
@@ -9,6 +9,7 @@
not null default 'OFF',
`contact_lists` int not null default 0,
`contact_flags` bigint not null default 0,
+ `contact_flags2` bigint not null default 0,
`contact_group` varchar(255) not null default '',
`contact_info` varchar(255) not null default '',
`contact_media` varchar(255) not null default '',
Modified: trunk/protocol.c
===================================================================
--- trunk/protocol.c 2009-01-24 17:23:36 UTC (rev 98)
+++ trunk/protocol.c 2009-01-25 01:25:23 UTC (rev 99)
@@ -456,9 +456,10 @@
if (check_arg(cmd->args[1], "NS") == ROK) {
/* XFR NS - request notification server reconnect */
- if (user->version == MSNP13 || user->version == MSNP15 ||
- user->version == MSNP16 || user->version == MSNP17 ||
- user->version == MSNP18) {
+ switch (user->version) {
+ case MSNP13:
+ case MSNP15:
+ case MSNP18:
return msnp13_xfr_ns_proxy(user, cmd, args);
}
@@ -570,14 +571,34 @@
if (str_copy(&cmd->cmd, (unsigned char *)"FLN", 3) == 0) die_nomem();
arg = command_add_arg(cmd);
- if (str_copy(arg, contact->c.s, contact->c.len) == 0) die_nomem();
+ if (user->version == MSNP18) {
+ if (contact->c.len > 0 &&
+ (str_copys(arg, (unsigned char *)"1:") == 0 ||
+ str_cat(arg, contact->c.s, contact->c.len) == 0)) {
- arg = command_add_arg(cmd);
- if (str_copys(arg, (unsigned char *)"1") == 0) die_nomem();
+ die_nomem();
+ }
+ } else {
+ if (contact->c.len > 0 &&
+ str_copy(arg, contact->c.s, contact->c.len) == 0) {
- arg = command_add_arg(cmd);
- if (str_copys(arg, (unsigned char *)"0") == 0) die_nomem();
+ die_nomem();
+ }
+ }
+ switch (user->version) {
+ case MSNP12:
+ case MSNP13:
+ case MSNP15:
+ case MSNP18:
+ arg = command_add_arg(cmd);
+ if (str_copys(arg, (unsigned char *)"1") == 0) die_nomem();
+
+ arg = command_add_arg(cmd);
+ if (str_copys(arg, (unsigned char *)"0") == 0) die_nomem();
+ break;
+ }
+
/* add command to queue */
commands_add_command(&user->ns.server->commands, cmd);
client_sched_write(user->ns.client);
@@ -610,15 +631,24 @@
/* contact email */
arg = command_add_arg(cmd);
- if (contact->c.len > 0 &&
- str_copy(arg, contact->c.s, contact->c.len) == 0)
- die_nomem();
+ if (user->version == MSNP18) {
+ if (contact->c.len > 0 &&
+ (str_copys(arg, (unsigned char *)"1:") == 0 ||
+ str_cat(arg, contact->c.s, contact->c.len) == 0)) {
- /* only for newer versions */
- if (user->version == MSNP13 || user->version == MSNP15 ||
- user->version == MSNP16 || user->version == MSNP17 ||
- user->version == MSNP18) {
+ die_nomem();
+ }
+ } else {
+ if (contact->c.len > 0 &&
+ str_copy(arg, contact->c.s, contact->c.len) == 0) {
+ die_nomem();
+ }
+ }
+
+ /* only for some versions */
+ if (user->version == MSNP13 || user->version == MSNP15) {
+
arg = command_add_arg(cmd);
if (str_copys(arg, (unsigned char *)"1") == 0) die_nomem();
}
@@ -635,9 +665,15 @@
/* flags */
arg = command_add_arg(cmd);
- arg->len = fmt_printf(NULL, "%d", contact->flags);
- if (str_ready(arg, arg->len + 1) == 0) die_nomem();
- arg->len = fmt_printf(arg->s, "%d", contact->flags);
+ if (user->version == MSNP18) {
+ arg->len = fmt_printf(NULL, "%l:%l", contact->flags, contact->flags2);
+ if (str_ready(arg, arg->len + 1) == 0) die_nomem();
+ arg->len = fmt_printf(arg->s, "%l:%l", contact->flags, contact->flags2);
+ } else {
+ arg->len = fmt_printf(NULL, "%l", contact->flags);
+ if (str_ready(arg, arg->len + 1) == 0) die_nomem();
+ arg->len = fmt_printf(arg->s, "%l", contact->flags);
+ }
/* obj */
arg = command_add_arg(cmd);
@@ -653,6 +689,30 @@
commands_add_command(&user->ns.server->commands, cmd);
client_sched_write(user->ns.client);
+ if (user->version == MSNP18) {
+
+ /* fake command */
+ cmd = command_alloc();
+ cmd->ignore = 1;
+ if (str_copys(&cmd->cmd, (unsigned char *)"UBX") == 0) die_nomem();
+
+ /* user */
+ arg = command_add_arg(cmd);
+ if (contact->c.len > 0 &&
+ (str_copys(arg, (unsigned char *)"1:") == 0 ||
+ str_cat(arg, contact->c.s, contact->c.len) == 0)) {
+
+ die_nomem();
+ }
+
+ arg = command_add_arg(cmd);
+ if (str_copys(arg, (unsigned char *)"0") == 0) die_nomem();
+
+ /* add command to queue */
+ commands_add_command(&user->ns.server->commands, cmd);
+ client_sched_write(user->ns.client);
+ }
+
return(ROK);
}
Modified: trunk/sql.c
===================================================================
--- trunk/sql.c 2009-01-24 17:23:36 UTC (rev 98)
+++ trunk/sql.c 2009-01-25 01:25:23 UTC (rev 99)
@@ -691,9 +691,10 @@
sql_insert_contact(string *email, struct contact_ *contact) {
char fmt[] = "INSERT INTO contacts (email, contact_uid, "
"contact_email, contact_lists, contact_dn, "
- "contact_group, contact_flags, contact_deny "
+ "contact_group, contact_flags, contact_flags2, "
+ "contact_deny "
") VALUES ("
- "'%q', '%q', '%q', %d, '%q', '%q', '%l', '%d')";
+ "'%q', '%q', '%q', %d, '%q', '%q', '%l', '%l', '%d')";
mysql_ *mysql = &config.mysql;
string sql;
@@ -703,14 +704,14 @@
contact->c.s, contact->lists,
contact->dn.len > 0 ? contact->dn.s : (unsigned char *)"",
contact->group.len > 0 ? contact->group.s : (unsigned char *)"",
- contact->flags, contact->deny);
+ contact->flags, contact->flags2, contact->deny);
if (str_ready(&sql, sql.len + 1) == 0) die_nomem();
sql.len = fmt_printf(sql.s, fmt, email->s,
contact->uid.len > 0 ? contact->uid.s : (unsigned char *)"",
contact->c.s, contact->lists,
contact->dn.len > 0 ? contact->dn.s : (unsigned char *)"",
contact->group.len > 0 ? contact->group.s : (unsigned char *)"",
- contact->flags, contact->deny);
+ contact->flags, contact->flags2, contact->deny);
if (db_query2(mysql, &sql) == RFAIL) {
str_free(&sql);
@@ -796,6 +797,12 @@
contact->flags = contact->save->flags;
sql_lint_data(&sql, len, "contact_flags", contact->flags);
}
+ if (contact->save->flags2 > 0 &&
+ contact->flags2 != contact->save->flags2) {
+
+ contact->flags2 = contact->save->flags2;
+ sql_lint_data(&sql, len, "contact_flags2", contact->flags2);
+ }
if (contact->save->lists > 0 &&
contact->lists != contact->save->lists) {
@@ -1014,7 +1021,7 @@
sql_contact_load(struct user_ *user, struct contact_ *contact) {
char fmt[] = "SELECT contact_email, contact_dn, contact_uid, "
"contact_status, contact_info, contact_flags, "
- "contact_lists, contact_deny "
+ "contact_flags2, contact_lists, contact_deny "
"FROM contacts WHERE email = '%q' AND "
"contact_email = '%q'";
MYSQL_RES *res;
@@ -1051,9 +1058,10 @@
if (row[4] && strlen(row[4]) > 0) /* contact_info */
if (str_copys(&contact->info, (unsigned char *)row[4]) == 0) exit(51);
- contact->flags = row[5] ? atoll(row[5]) : 0; /* flags */
- contact->lists = row[6] ? atol(row[6]) : 0; /* lists */
- contact->deny = row[7] ? atol(row[7]) : 0; /* deny */
+ contact->flags = row[5] ? atoll(row[5]) : 0; /* flags */
+ contact->flags2 = row[6] ? atoll(row[6]) : 0; /* flags2 */
+ contact->lists = row[7] ? atol(row[7]) : 0; /* lists */
+ contact->deny = row[8] ? atol(row[8]) : 0; /* deny */
res = db_free(res);
return(ROK);
@@ -1063,7 +1071,7 @@
sql_contact_load_all(struct user_ *user) {
char fmt[] = "SELECT contact_email, contact_dn, contact_uid, "
"contact_status, contact_info, contact_flags, "
- "contact_lists, contact_deny "
+ "contact_flags2, contact_lists, contact_deny "
"FROM contacts WHERE email = '%q'";
struct contact_ *contact;
MYSQL_RES *res;
@@ -1104,9 +1112,10 @@
if (row[4] && strlen(row[4]) > 0) /* contact_info */
if (str_copys(&contact->info, (unsigned char *)row[4]) == 0) exit(51);
- contact->flags = row[5] ? atoll(row[5]) : 0; /* flags */
- contact->lists = row[6] ? atol(row[6]) : 0; /* lists */
- contact->deny = row[7] ? atol(row[7]) : 0; /* deny */
+ contact->flags = row[5] ? atoll(row[5]) : 0; /* flags */
+ contact->flags2 = row[6] ? atoll(row[6]) : 0; /* flags2 */
+ contact->lists = row[7] ? atol(row[7]) : 0; /* lists */
+ contact->deny = row[8] ? atol(row[8]) : 0; /* deny */
}
res = db_free(res);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lo...@us...> - 2009-01-24 17:23:40
|
Revision: 98
http://msn-proxy.svn.sourceforge.net/msn-proxy/?rev=98&view=rev
Author: loos-br
Date: 2009-01-24 17:23:36 +0000 (Sat, 24 Jan 2009)
Log Message:
-----------
corrige o erro 240/ADL. Adicionado um pequeno sistema de sincronizacao.
removido o debug extra de comandos que estava ligado por padrao (para ajudar no debug de problemas mais graves como esse do ADL).
corrigido o tratamento das atualizacoes de contatos nas versoes mais antigas (MSNP8 e MSNP12).
Modified Paths:
--------------
trunk/ChangeLog
trunk/command.c
trunk/command.h
trunk/contacts.c
trunk/contacts.h
trunk/msnp18.h
trunk/ns.c
trunk/protocol.c
trunk/protocol.h
trunk/sql.c
trunk/user.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-01-23 13:47:17 UTC (rev 97)
+++ trunk/ChangeLog 2009-01-24 17:23:36 UTC (rev 98)
@@ -1,3 +1,12 @@
+2009-01-24
+
+- Corrigidos varios bugs na parte de contatos e atualizacao de contatos para
+ as versoes mais antigas MSNP8 e MSNP12
+
+- Adicionado um sistema de sincronizacao para o envio mais espacado dos
+ comandos ADL, evitando o erro 240
+
+
2009-01-20
- Corrigido o suporte ao messenger 9 (MSNP18)
Modified: trunk/command.c
===================================================================
--- trunk/command.c 2009-01-23 13:47:17 UTC (rev 97)
+++ trunk/command.c 2009-01-24 17:23:36 UTC (rev 98)
@@ -332,10 +332,12 @@
}
+#ifdef CMDDEBUG
string slog;
slog.s = cmds->buf.p;
slog.len = cmds->buf.len;
log->debug("command read buf: [%s]\n", &slog);
+#endif
/* decode command */
if (command_prepare(cmds) == AGAIN) {
@@ -365,15 +367,8 @@
/*
* command read ok - schedule write to the client
- *
- * in case of ADL commands, wait do receive all ADL commands
- * (the ADL command are received in 8k blocks)
- * this is based on the patch provided by Pierre Santana
- * (pierresantana at gmail.com) in sf forum
- *
*/
- if (strcasecmp((char *)cmds->cmd_last->cmd.s, "ADL") != 0)
- sched_write(ev_write);
+ sched_write(ev_write);
/* done */
if (cmds->buf.len == 0)
Modified: trunk/command.h
===================================================================
--- trunk/command.h 2009-01-23 13:47:17 UTC (rev 97)
+++ trunk/command.h 2009-01-24 17:23:36 UTC (rev 98)
@@ -48,6 +48,7 @@
typedef struct _commands {
string buf; /* io command buffer */
string *arg; /* tmp pointer to last arg */
+ __uint32_t wait; /* trid to wait */
__uint32_t state; /* command state */
__uint32_t payload_size; /* payload size */
struct _command *tmp; /* tmp pointer to ongoing command */
@@ -61,6 +62,7 @@
__uint32_t has_payload(command *cmd);
string **args_alloc(void *ptr, size_t len);
string *command_add_arg(command *cmd);
+void has_trid(command *cmd);
void free_command(command *cmd);
void print_command(command *cmd);
void commands_init(commands *cmds);
Modified: trunk/contacts.c
===================================================================
--- trunk/contacts.c 2009-01-23 13:47:17 UTC (rev 97)
+++ trunk/contacts.c 2009-01-24 17:23:36 UTC (rev 98)
@@ -131,7 +131,7 @@
}
struct contact_ *
-contact_save(struct user_ *user, string *c) {
+contact_update(struct user_ *user, string *c) {
struct contact_ *contact;
struct contact_ *save;
struct contact_ find;
@@ -262,8 +262,8 @@
c.len = fmt_printf(c.s, "%s@%s", &name, &domain);
str_free(&name);
- if (c.len == 0) continue;
- contact = contact_save(user, &c);
+ if (c.len == 0) { str_free(&c); continue; }
+ contact = contact_update(user, &c);
str_free(&c);
if (contact == NULL) continue;
@@ -373,7 +373,7 @@
}
}
- save = contact_save(user, &c.c);
+ save = contact_update(user, &c.c);
if (save == NULL) {
contact_free(&c);
return(ROK);
@@ -389,7 +389,6 @@
if (c.lists > 0)
save->lists = c.lists;
- contact_free(&c);
if (user->contact_delete == 0)
user->contact_delete = 1;
return(ROK);
@@ -438,7 +437,7 @@
return(RFAIL);
}
- save = contact_save(user, &c.c);
+ save = contact_update(user, &c.c);
if (save == NULL) {
contact_free(&c);
return(ROK);
@@ -452,7 +451,6 @@
if (c.lists > 0)
save->lists = c.lists;
- contact_free(&c);
if (user->contact_delete == 0)
user->contact_delete = 1;
return(ROK);
@@ -516,7 +514,7 @@
contact = RB_FIND(contacts, &user->contacts, &find);
contact_free(&find);
- save = contact_save(user, c);
+ save = contact_update(user, c);
if (save == NULL)
return(ROK);
@@ -594,7 +592,7 @@
contact = RB_FIND(contacts, &user->contacts, &find);
contact_free(&find);
- save = contact_save(user, c);
+ save = contact_update(user, c);
if (save == NULL)
return(ROK);
@@ -666,7 +664,6 @@
} else {
if (str_copy(&find.c, c->s, c->len) == 0) die_nomem();
}
-contact_print(&find);
contact = RB_FIND(contacts, &user->contacts, &find);
contact_free(&find);
@@ -676,14 +673,13 @@
if (cmd->ignore)
return(ROK);
- save = contact_save(user, &contact->c);
+ save = contact_update(user, &contact->c);
if (save == NULL)
return(ROK);
if (str_copys(&save->status, (unsigned char *)"OFF") == 0) die_nomem();
save->deny &= ~CONTACT_BLOCKED;
-contact_print(save);
(void)sql_contact_save(user, save);
if (contact->deny & CONTACT_DENY)
@@ -731,7 +727,7 @@
if (contact == NULL || cmd->ignore)
return(ROK);
- save = contact_save(user, &contact->c);
+ save = contact_update(user, &contact->c);
if (save == NULL)
return(ROK);
@@ -796,7 +792,7 @@
if (contact == NULL || cmd->ignore)
return(ROK);
- save = contact_save(user, c);
+ save = contact_update(user, c);
if (save == NULL)
return(ROK);
@@ -874,7 +870,7 @@
if (contact == NULL || cmd->ignore)
return(ROK);
- save = contact_save(user, c);
+ save = contact_update(user, c);
if (save == NULL)
return(ROK);
@@ -1037,7 +1033,7 @@
}
int
-contact_update(struct user_ *user, struct contact_ *c) {
+contact_update_status(struct user_ *user, struct contact_ *c) {
struct contact_ *contact;
contact = RB_FIND(contacts, &user->contacts, c);
@@ -1136,7 +1132,7 @@
return(RFAIL);
}
- save = contact_save(user, &contact->c);
+ save = contact_update(user, &contact->c);
if (save == NULL) {
log->debug("debug: loaduser: fail to create save contact\n");
return(RFAIL);
@@ -1147,7 +1143,7 @@
return(RFAIL);
}
- if (contact_update(user, save) == RFAIL) {
+ if (contact_update_status(user, save) == RFAIL) {
log->debug("debug: loaduser: fail to save user data from sql\n");
return(RFAIL);
}
@@ -1155,7 +1151,7 @@
if (contact->deny & CONTACT_DENY &&
strcmp((char *)contact->status.s, "OFF") != 0) {
- save = contact_save(user, &contact->c);
+ save = contact_update(user, &contact->c);
if (save == NULL) {
log->debug("debug: loaduser: fail to create save contact\n");
return(RFAIL);
@@ -1168,7 +1164,7 @@
if ((contact->deny & CONTACT_DENY) == 0 &&
contact->deny & CONTACT_BLOCKED) {
- save = contact_save(user, &contact->c);
+ save = contact_update(user, &contact->c);
if (save == NULL) {
log->debug("debug: loaduser: fail to create save contact\n");
return(RFAIL);
Modified: trunk/contacts.h
===================================================================
--- trunk/contacts.h 2009-01-23 13:47:17 UTC (rev 97)
+++ trunk/contacts.h 2009-01-24 17:23:36 UTC (rev 98)
@@ -37,8 +37,8 @@
void contact_print(struct contact_ *contact);
void contacts_free(struct user_ *user);
struct contact_ *contact_add(struct user_ *user, string *c);
-struct contact_ *contact_save(struct user_ *user, string *c);
struct contact_ *contact_find(struct user_ *user, string *c);
+struct contact_ *contact_update(struct user_ *user, string *c);
int msnp13_save_contact(struct user_ *user, command *cmd, int args);
int msnp12_save_contact(struct user_ *user, command *cmd, int args);
int msnp8_save_contact(struct user_ *user, command *cmd, int args);
Modified: trunk/msnp18.h
===================================================================
--- trunk/msnp18.h 2009-01-23 13:47:17 UTC (rev 97)
+++ trunk/msnp18.h 2009-01-24 17:23:36 UTC (rev 98)
@@ -38,7 +38,7 @@
{ "241", 2, check_args },
{ "508", 2, check_args },
{ "509", 2, check_args },
- { "ADL", 2, check_args },
+ { "ADL", 0, msnp18_adl_sync },
{ "BLP", 2, check_args },
{ "CHG", 0, check_ok },
{ "CHL", 2, check_args },
Modified: trunk/ns.c
===================================================================
--- trunk/ns.c 2009-01-23 13:47:17 UTC (rev 97)
+++ trunk/ns.c 2009-01-24 17:23:36 UTC (rev 98)
@@ -169,7 +169,13 @@
strcasecmp((char *)client->commands.cmd->cmd.s, "ADL") == 0 &&
client->commands.cmd->payload.len > (CMD_BUF * 5)) {
+ command *cmd = client->commands.cmd;
client->commands.state |= SENDDELAY;
+ if (cmd) {
+ has_trid(cmd);
+ client->commands.wait = cmd->trid;
+ } else
+ client->commands.state &= ~SENDDELAY;
}
/* command >> 1 */
@@ -178,18 +184,9 @@
server_sched_read(server);
- if (!HAS_CMD(client))
+ if (!HAS_CMD(client) || (client->commands.state & SENDDELAY))
return;
- if (client->commands.state & SENDDELAY) {
-
- /* start timer */
- log->debug("debug: AQUII 240/ADL\n");
- client->commands.state &= ~SENDDELAY;
-
- //return;
- }
-
server_sched_write(server);
}
Modified: trunk/protocol.c
===================================================================
--- trunk/protocol.c 2009-01-23 13:47:17 UTC (rev 97)
+++ trunk/protocol.c 2009-01-24 17:23:36 UTC (rev 98)
@@ -655,3 +655,17 @@
return(ROK);
}
+
+int
+msnp18_adl_sync(struct user_ *user, command *cmd, int args) {
+ client_ *client = user->ns.client;
+ server_ *server = user->ns.server;
+
+ has_trid(cmd);
+ if (cmd->trid >= client->commands.wait) {
+ client->commands.state &= ~SENDDELAY;
+ server_sched_write(server);
+ }
+
+ return(ROK);
+}
Modified: trunk/protocol.h
===================================================================
--- trunk/protocol.h 2009-01-23 13:47:17 UTC (rev 97)
+++ trunk/protocol.h 2009-01-24 17:23:36 UTC (rev 98)
@@ -38,5 +38,6 @@
int msn_warning_msg_client(struct sb_ *sb);
int send_fln(struct user_ *user, struct contact_ *contact);
int send_nln(struct user_ *user, struct contact_ *contact);
+int msnp18_adl_sync(struct user_ *user, command *cmd, int args);
#endif
Modified: trunk/sql.c
===================================================================
--- trunk/sql.c 2009-01-23 13:47:17 UTC (rev 97)
+++ trunk/sql.c 2009-01-24 17:23:36 UTC (rev 98)
@@ -876,7 +876,7 @@
if ((contact->deny & CONTACT_REMOVED) == 0) {
- save = contact_save(user, &contact->c);
+ save = contact_update(user, &contact->c);
if (save == NULL)
continue;
Modified: trunk/user.c
===================================================================
--- trunk/user.c 2009-01-23 13:47:17 UTC (rev 97)
+++ trunk/user.c 2009-01-24 17:23:36 UTC (rev 98)
@@ -68,8 +68,8 @@
int
msn_update_status(struct user_ *user, command *cmd, int args) {
string *status = cmd->args[1];
- string *img = cmd->args[3];
- log_ *log = &config.log;
+ string *o = cmd->args[3];
+ log_ *log = &config.log;
if (cmd->args_len < 2 || status == NULL || status->len == 0)
return(RFAIL);
@@ -93,11 +93,20 @@
}
/* check img acl */
- if ( (user->commands & USEIMG) && cmd->args_len == 4) {
- str_free(img);
- free(img);
- cmd->args[3] = (string *)0;
- cmd->args_len--;
+ if ( (user->commands & USEIMG) && cmd->args_len == 4 && o) {
+ switch (user->version) {
+ case MSNP15:
+ case MSNP16:
+ case MSNP17:
+ case MSNP18:
+ if (str_copys(o, (unsigned char *)"0") == 0) exit (51);
+ break;
+ default:
+ str_free(o);
+ free(o);
+ cmd->args[3] = NULL;
+ cmd->args_len--;
+ }
}
return(ROK);
@@ -120,7 +129,7 @@
if (cmd->args_len < 1 || (c = get_arg(cmd, 0)) == NULL)
return(RFAIL);
- contact = contact_save(user, c);
+ contact = contact_update(user, c);
if (contact == NULL)
return(RFAIL);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lo...@us...> - 2009-01-23 13:47:22
|
Revision: 97
http://msn-proxy.svn.sourceforge.net/msn-proxy/?rev=97&view=rev
Author: loos-br
Date: 2009-01-23 13:47:17 +0000 (Fri, 23 Jan 2009)
Log Message:
-----------
correcao do problema de login do aMSN e outros, contem tambem algum trabalhando em andamento
Modified Paths:
--------------
trunk/command.c
trunk/command.h
trunk/msn-proxy.h
trunk/msnp12.h
trunk/msnp8.h
trunk/ns.c
Modified: trunk/command.c
===================================================================
--- trunk/command.c 2009-01-20 15:34:19 UTC (rev 96)
+++ trunk/command.c 2009-01-23 13:47:17 UTC (rev 97)
@@ -175,7 +175,7 @@
command *cmd;
string *buf;
- if (cmds->state == PAYLOAD)
+ if (cmds->state & PAYLOAD)
/* not ready */
return(ROK);
@@ -183,7 +183,8 @@
if (cmds->tmp == (command *)0) {
cmds->tmp = command_alloc();
- cmds->state = COMMAND;
+ cmds->state &= ~RECVMASK;
+ cmds->state |= COMMAND;
cmds->arg = (string *)0;
}
cmd = cmds->tmp;
@@ -197,7 +198,8 @@
shift_buffer(buf);
/* reset */
- cmds->state = COMMAND;
+ cmds->state &= ~RECVMASK;
+ cmds->state |= COMMAND;
cmds->arg = (string *)0;
return(ROK);
@@ -206,17 +208,19 @@
/* \r\n - end of command */
if (*buf->p == '\r') {
shift_buffer(buf);
- cmds->state = EOC;
+ cmds->state &= ~RECVMASK;
+ cmds->state |= EOC;
continue;
}
- switch (cmds->state) {
+ switch (cmds->state & RECVMASK) {
case COMMAND:
/* new arg */
if (*buf->p == ' ') {
- cmds->state = ARG;
+ cmds->state &= ~RECVMASK;
+ cmds->state |= ARG;
cmds->arg = (string *)0;
shift_buffer(buf);
continue;
@@ -259,12 +263,13 @@
command *cmd = cmds->tmp;
string *buf = &cmds->buf;
- if (cmds->state != COMMAND && cmds->state != PAYLOAD)
+ if ((cmds->state & COMMAND) == 0 && (cmds->state & PAYLOAD) == 0) {
/* not ready */
return(ROK);
+ }
/* alloc payload */
- if (cmds->state == COMMAND) {
+ if (cmds->state & COMMAND) {
/* get payload size */
cmds->payload_size = has_payload(cmd);
@@ -275,7 +280,8 @@
if (str_ready(&cmd->payload, cmds->payload_size + 1) == 0)
die_nomem();
- cmds->state = PAYLOAD;
+ cmds->state &= ~RECVMASK;
+ cmds->state |= PAYLOAD;
}
while (cmds->payload_size) {
@@ -298,7 +304,8 @@
}
/* end of payload */
- cmds->state = COMMAND;
+ cmds->state &= ~RECVMASK;
+ cmds->state |= COMMAND;
return(ROK);
}
Modified: trunk/command.h
===================================================================
--- trunk/command.h 2009-01-20 15:34:19 UTC (rev 96)
+++ trunk/command.h 2009-01-23 13:47:17 UTC (rev 97)
@@ -23,12 +23,15 @@
#include "string.h"
-#define CMD_BUF 256
+#define CMD_BUF 512
+#define RECVMASK 0x00ff
#define COMMAND 0x0001
#define PAYLOAD 0x0002
#define ARG 0x0004
#define EOC 0x0008
+#define SENDMASK 0xff00
+#define SENDDELAY 0x0100
typedef struct _command {
int ignore;
@@ -52,7 +55,7 @@
struct _command *cmd_last; /* pointer to last entry on list */
} commands;
-#define HAS_CMD(p) (p->commands.cmd != (struct _command *)0)
+#define HAS_CMD(p) (p->commands.cmd != NULL)
command *command_alloc(void);
__uint32_t has_payload(command *cmd);
Modified: trunk/msn-proxy.h
===================================================================
--- trunk/msn-proxy.h 2009-01-20 15:34:19 UTC (rev 96)
+++ trunk/msn-proxy.h 2009-01-23 13:47:17 UTC (rev 97)
@@ -90,7 +90,7 @@
#define P2P_FILE 0x00002000
#ifndef MSNPROXY_VERSION
-#define MSNPROXY_VERSION "0.6.3p1"
+#define MSNPROXY_VERSION "0.6.3p2"
#endif
#ifndef MSNPROXY_RELEASE
Modified: trunk/msnp12.h
===================================================================
--- trunk/msnp12.h 2009-01-20 15:34:19 UTC (rev 96)
+++ trunk/msnp12.h 2009-01-23 13:47:17 UTC (rev 97)
@@ -18,8 +18,6 @@
* $Id$
*/
-#include "check-cmd.h"
-
CMD SERVER_MSNP12_PRE_CMDS[] = {
{ "CVR", 6, check_args },
{ "USR", 0, server_msnp12_pre_usr },
Modified: trunk/msnp8.h
===================================================================
--- trunk/msnp8.h 2009-01-20 15:34:19 UTC (rev 96)
+++ trunk/msnp8.h 2009-01-23 13:47:17 UTC (rev 97)
@@ -20,8 +20,8 @@
CMD SERVER_MSNP8_PRE_CMDS[] = {
{ "CVR", 6, check_args },
+ { "USR", 0, server_msnp8_pre_usr },
{ "VER", 0, msn_get_ver },
- { "USR", 0, server_msnp8_pre_usr },
{ "XFR", 0, xfr_proxy },
{ NULL, 0, NULL }
};
@@ -54,6 +54,7 @@
{ "REM", 0, check_ok }, /* XXX - remove users */
{ "SYN", 0, msnp8_server_syn_rewrite },
{ "URL", 0, msn_url },
+ { "UUX", 2, check_args },
{ "XFR", 0, xfr_proxy },
{ NULL, 0, NULL }
};
@@ -61,8 +62,8 @@
CMD CLIENT_MSNP8_PRE_CMDS[] = {
{ "CVR", 9, check_args },
{ "OUT", 0, check_ok },
+ { "USR", 0, client_msn_pre_usr },
{ "VER", 0, msn_get_ver },
- { "USR", 0, client_msn_pre_usr },
{ NULL, 0, NULL }
};
@@ -81,6 +82,7 @@
{ "REM", 0, check_ok }, /* XXX - add lists */
{ "SYN", 0, msnp8_client_syn_rewrite },
{ "URL", 0, msn_url },
+ { "UUX", 2, check_args },
{ "XFR", 2, check_args },
{ NULL, 0, NULL }
};
Modified: trunk/ns.c
===================================================================
--- trunk/ns.c 2009-01-20 15:34:19 UTC (rev 96)
+++ trunk/ns.c 2009-01-23 13:47:17 UTC (rev 97)
@@ -93,8 +93,11 @@
}
/* check for command */
- if (!HAS_CMD(client))
+ if (!HAS_CMD(client) || (client->commands.state & SENDDELAY)) {
+
+ /* not ready */
return;
+ }
/* check state */
switch (user->state) {
@@ -162,6 +165,13 @@
}
end:
+ if (HAS_CMD(client) && client->commands.cmd->cmd.len > 0 &&
+ strcasecmp((char *)client->commands.cmd->cmd.s, "ADL") == 0 &&
+ client->commands.cmd->payload.len > (CMD_BUF * 5)) {
+
+ client->commands.state |= SENDDELAY;
+ }
+
/* command >> 1 */
shift_client_commands(client, cmd);
free_command(cmd);
@@ -171,6 +181,15 @@
if (!HAS_CMD(client))
return;
+ if (client->commands.state & SENDDELAY) {
+
+ /* start timer */
+ log->debug("debug: AQUII 240/ADL\n");
+ client->commands.state &= ~SENDDELAY;
+
+ //return;
+ }
+
server_sched_write(server);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: Luiz O. O S. <lo...@gm...> - 2009-01-21 14:42:46
|
> > Testamos aqui e não tivemos problemas. A única coisa que preciso > confirmar é que não consegui conectar com o aMSN. > > Obrigado! Hmmm.... obrigado alexandre, vou fazer alguns testes aqui com as outras versões... Att., Luiz |
|
From: Luiz O. O S. <lo...@gm...> - 2009-01-21 14:37:36
|
> Srs, > > Vale a pena realmente atualizar pro ultimo msn-proxy? > > Valeu, > Marcelo > > Luiz Otavio O Souza escreveu: >> Srs., >> >> Alguem pode me confirmar se esse meu ultimo commit resolve todos os >> problemas da interface (visualização status dos usuários e outros >> detalhes) com o messenger 9 ? >> >> Obrigado, >> Luiz Marcelo, A ultima versão do msn-proxy é a 0.6.3 e tem vários bugs, inclusive o suporte ao messenger 9 que não mostra nada na interface web. Estamos trabalhando (aqui na lista) para corrigir esses bugs e fornecer uma nova versão estável e funcional. Se eu conseguir resolver todos os problemas descritos em: http://msn-proxy.sf.net a tempo, teremos a versão 0.7 em breve. Caso nosso "real job" comece a tomar muito tempo, posso liberar algumas versões intermediarias (0.6.4, 0.6.5, ...) até alcançar nosso objetivo maior. Precisamos de ajuda com os testes dessas versões de desenvolvimento para evitar que bugs simples passem desapercebidos nas próximas versões. Att., Luiz |
|
From: Luiz O. O S. <lo...@gm...> - 2009-01-20 15:59:22
|
Srs., Alguem pode me confirmar se esse meu ultimo commit resolve todos os problemas da interface (visualização status dos usuários e outros detalhes) com o messenger 9 ? Obrigado, Luiz |
|
From: <lo...@us...> - 2009-01-20 15:34:30
|
Revision: 96
http://msn-proxy.svn.sourceforge.net/msn-proxy/?rev=96&view=rev
Author: loos-br
Date: 2009-01-20 15:34:19 +0000 (Tue, 20 Jan 2009)
Log Message:
-----------
Corrigido o suporte ao messenger 9. Testes sao bem vindos !
Modified Paths:
--------------
trunk/ChangeLog
trunk/Makefile
trunk/array_cmd.h
trunk/check-cmd.c
trunk/check-cmd.h
trunk/client.c
trunk/client.h
trunk/command.c
trunk/command.h
trunk/config.c
trunk/config.h
trunk/contacts-data.h
trunk/contacts.c
trunk/contacts.h
trunk/ctl.c
trunk/ctl.h
trunk/fmt.c
trunk/fmt.h
trunk/io.c
trunk/io.h
trunk/msg.c
trunk/msg.h
trunk/msn-proxy.c
trunk/msn-proxy.h
trunk/msnp12.h
trunk/msnp8.h
trunk/mysql.c
trunk/mysql.h
trunk/net-io.c
trunk/net-io.h
trunk/ns-data.h
trunk/ns.c
trunk/ns.h
trunk/p2p.c
trunk/p2p.h
trunk/php/ajax.inc.php
trunk/php/al.inc.php
trunk/php/bl.inc.php
trunk/php/chat-to.php
trunk/php/chat.php
trunk/php/class.ctl.php
trunk/php/conf.php
trunk/php/default.array.cmd.inc.php
trunk/php/default.array.option.inc.php
trunk/php/default.array.status.inc.php
trunk/php/fl.inc.php
trunk/php/group.inc.php
trunk/php/header.inc.php
trunk/php/index.php
trunk/php/mysql.inc.php
trunk/php/save_contact_op.php
trunk/php/save_default_op.php
trunk/php/save_msg.php
trunk/php/save_user_op.php
trunk/php/user.inc.php
trunk/php/user.php
trunk/php/view-to.php
trunk/php/view.php
trunk/protocol.c
trunk/protocol.h
trunk/queue.h
trunk/return.h
trunk/sb-data.h
trunk/sb.c
trunk/sb.h
trunk/server.c
trunk/server.h
trunk/sig.c
trunk/sig.h
trunk/sql.c
trunk/sql.h
trunk/string.c
trunk/string.h
trunk/syslog.c
trunk/syslog.h
trunk/tree.h
trunk/user.c
trunk/user.h
trunk/xml-data.h
trunk/xml.c
trunk/xml.h
Added Paths:
-----------
trunk/msnp18.h
Removed Paths:
-------------
trunk/msnp13.h
trunk/msnp15.h
Property Changed:
----------------
trunk/array_cmd.h
trunk/check-cmd.c
trunk/check-cmd.h
trunk/client.c
trunk/client.h
trunk/command.c
trunk/command.h
trunk/config.c
trunk/config.h
trunk/contacts-data.h
trunk/contacts.c
trunk/contacts.h
trunk/ctl.c
trunk/ctl.h
trunk/fmt.c
trunk/fmt.h
trunk/io.c
trunk/io.h
trunk/msg.c
trunk/msg.h
trunk/msn-proxy.c
trunk/msn-proxy.h
trunk/msnp12.h
trunk/msnp8.h
trunk/mysql.c
trunk/mysql.h
trunk/net-io.c
trunk/net-io.h
trunk/ns-data.h
trunk/ns.c
trunk/ns.h
trunk/p2p.c
trunk/p2p.h
trunk/php/ajax.inc.php
trunk/php/al.inc.php
trunk/php/bl.inc.php
trunk/php/chat-to.php
trunk/php/chat.php
trunk/php/class.ctl.php
trunk/php/conf.php
trunk/php/default.array.cmd.inc.php
trunk/php/default.array.option.inc.php
trunk/php/default.array.status.inc.php
trunk/php/fl.inc.php
trunk/php/group.inc.php
trunk/php/header.inc.php
trunk/php/index.php
trunk/php/mysql.inc.php
trunk/php/save_contact_op.php
trunk/php/save_default_op.php
trunk/php/save_msg.php
trunk/php/save_user_op.php
trunk/php/user.inc.php
trunk/php/user.php
trunk/php/view-to.php
trunk/php/view.php
trunk/protocol.c
trunk/protocol.h
trunk/queue.h
trunk/return.h
trunk/sb-data.h
trunk/sb.c
trunk/sb.h
trunk/server.c
trunk/server.h
trunk/sig.c
trunk/sig.h
trunk/sql.c
trunk/sql.h
trunk/string.c
trunk/string.h
trunk/syslog.c
trunk/syslog.h
trunk/tree.h
trunk/user.c
trunk/user.h
trunk/xml-data.h
trunk/xml.c
trunk/xml.h
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/ChangeLog 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,4 +1,10 @@
+2009-01-20
+- Corrigido o suporte ao messenger 9 (MSNP18)
+
+- Adicionada a vers\xE3o do msn-proxy na op\xE7\xE3o debug e verbose (-d e -v)
+
+
2008-10-28
- Corrigido outro bug (segmentation fault) rastreado pelo William Knob.
Modified: trunk/Makefile
===================================================================
--- trunk/Makefile 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/Makefile 2009-01-20 15:34:19 UTC (rev 96)
@@ -23,8 +23,7 @@
INCLUDES=msn-proxy.h server.h sb.h command.h config.h net-io.h client.h \
syslog.h ns.h mysql.h sql.h protocol.h check-cmd.h contacts.h msg.h \
user.h array_cmd.h string.h io.h return.h sig.h fmt.h xml.h msnp8.h \
- msnp12.h msnp13.h msnp15.h contacts-data.h ns-data.h sb-data.h ctl.h \
- xml-data.h
+ msnp12.h msnp18.h contacts-data.h ns-data.h sb-data.h ctl.h xml-data.h
TABLES=mysql/tables/contacts mysql/tables/contact_groups mysql/tables/sb \
mysql/tables/log mysql/tables/defaults mysql/tables/users
Modified: trunk/array_cmd.h
===================================================================
--- trunk/array_cmd.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/array_cmd.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: array_cmd.h,v 1.4 2008-04-24 12:58:35 loos-br Exp $
+ * $Id$
*/
#ifndef ARRAY_CMD_H
Property changes on: trunk/array_cmd.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/check-cmd.c
===================================================================
--- trunk/check-cmd.c 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/check-cmd.c 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-static const char rcsid[] = "$Id: check-cmd.c,v 1.9 2008-10-16 00:39:35 loos-br Exp $";
+static const char rcsid[] = "$Id$";
#include <errno.h>
#include <stdio.h>
Property changes on: trunk/check-cmd.c
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/check-cmd.h
===================================================================
--- trunk/check-cmd.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/check-cmd.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: check-cmd.h,v 1.4 2008-01-28 14:59:42 loos-br Exp $
+ * $Id$
*/
#ifndef CHECK_CMD_H
Property changes on: trunk/check-cmd.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/client.c
===================================================================
--- trunk/client.c 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/client.c 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-static const char rcsid[] = "$Id: client.c,v 1.6 2008-10-25 14:18:06 loos-br Exp $";
+static const char rcsid[] = "$Id$";
#include <sys/types.h>
#include <sys/socket.h>
Property changes on: trunk/client.c
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/client.h
===================================================================
--- trunk/client.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/client.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: client.h,v 1.4 2008-10-25 14:18:06 loos-br Exp $
+ * $Id$
*/
#ifndef CLIENT_H
Property changes on: trunk/client.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/command.c
===================================================================
--- trunk/command.c 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/command.c 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-static const char rcsid[] = "$Id: command.c,v 1.17 2008-10-25 14:18:06 loos-br Exp $";
+static const char rcsid[] = "$Id$";
#include <errno.h>
#include <stdlib.h>
Property changes on: trunk/command.c
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/command.h
===================================================================
--- trunk/command.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/command.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: command.h,v 1.5 2008-10-19 15:24:10 loos-br Exp $
+ * $Id$
*/
#ifndef COMMAND_H
Property changes on: trunk/command.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/config.c
===================================================================
--- trunk/config.c 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/config.c 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-static const char rcsid[] = "$Id: config.c,v 1.4 2008-04-23 01:22:29 loos-br Exp $";
+static const char rcsid[] = "$Id$";
#include <stdio.h>
#include <stdlib.h>
@@ -293,6 +292,9 @@
log_ *log = &config->log;
defaults_ *defaults = &config->defaults;
+ log->debug("msn-proxy release : %S [%S]\n", "msn-proxy-"
+ MSNPROXY_VERSION,
+ MSNPROXY_RELEASE);
log->debug("config file : %s\n", &config->file);
log->debug("default ns host : %s\n", &config->default_ns_host);
log->debug("default ns port : %s\n", &config->default_ns_port);
Property changes on: trunk/config.c
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/config.h
===================================================================
--- trunk/config.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/config.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: config.h,v 1.3 2008-04-23 01:22:29 loos-br Exp $
+ * $Id$
*/
#ifndef CONFIG_H
Property changes on: trunk/config.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/contacts-data.h
===================================================================
--- trunk/contacts-data.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/contacts-data.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: contacts-data.h,v 1.3 2008-04-23 01:22:30 loos-br Exp $
+ * $Id$
*/
#ifndef CONTACTS_DATA_H
Property changes on: trunk/contacts-data.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/contacts.c
===================================================================
--- trunk/contacts.c 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/contacts.c 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-static const char rcsid[] = "$Id: contacts.c,v 1.11 2008-10-28 11:31:14 loos-br Exp $";
+static const char rcsid[] = "$Id$";
#include <errno.h>
#include <string.h>
@@ -84,7 +83,7 @@
}
if (contact->deny & CONTACT_BLOCKED) {
if (i) io_printf(1, ", ");
- io_printf(1, "CONTACT_DENY");
+ io_printf(1, "CONTACT_BLOCKED");
}
io_printf(1, "]\n");
io_printf(1, "debug contact: info: [%s]\n", &contact->info);
@@ -136,13 +135,22 @@
struct contact_ *contact;
struct contact_ *save;
struct contact_ find;
+ unsigned int len = 0;
if (c == NULL || c->len == 0)
return(NULL);
/* find contact in db if exist */
memset(&find, 0, sizeof (struct contact_));
- if (str_copy(&find.c, c->s, c->len) == 0) die_nomem();
+ c->p = (unsigned char *)strchr((char *)c->s, ':');
+ if (c->p)
+ len = ++c->p - c->s;
+
+ if (len > 0 && len < c->len) {
+ if (str_copy(&find.c, c->s + len, c->len - len) == 0) die_nomem();
+ } else {
+ if (str_copy(&find.c, c->s, c->len) == 0) die_nomem();
+ }
contact = RB_FIND(contacts, &user->contacts, &find);
contact_free(&find);
@@ -150,7 +158,11 @@
contact = (struct contact_ *)malloc(sizeof(struct contact_));
if (contact == NULL) die_nomem();
memset(contact, 0, sizeof (struct contact_));
- if (str_copy(&contact->c, c->s, c->len) == 0) die_nomem();
+ if (len > 0 && len < c->len) {
+ if (str_copy(&contact->c, c->s + len, c->len - len) == 0) die_nomem();
+ } else {
+ if (str_copy(&contact->c, c->s, c->len) == 0) die_nomem();
+ }
RB_INSERT(contacts, &user->contacts, contact);
contact->updated = NEW;
if (user->commands & CONTACT_DENY)
@@ -160,7 +172,7 @@
save = (struct contact_ *)malloc(sizeof(struct contact_));
if (save == NULL) die_nomem();
memset(save, 0, sizeof (struct contact_));
- if (str_copy(&save->c, c->s, c->len) == 0) die_nomem();
+ if (str_copy(&save->c, contact->c.s, contact->c.len) == 0) die_nomem();
save->deny = contact->deny;
save->updated = NEW;
contact->updated = UPDATE;
@@ -532,9 +544,14 @@
/* SEEIMG */
if (o && (user->commands & SEEIMG)) {
- if (user->version == MSNP15) {
+ switch (user->version) {
+ case MSNP15:
+ case MSNP16:
+ case MSNP17:
+ case MSNP18:
if (str_copys(o, (unsigned char *)"0") == 0) exit (51);
- } else {
+ break;
+ default:
str_free(o);
free(o);
cmd->args[6] = NULL;
@@ -626,6 +643,7 @@
struct contact_ *contact;
struct contact_ *save;
struct contact_ find;
+ unsigned int len;
string *c;
if (cmd->args_len < 1)
@@ -637,7 +655,18 @@
/* find contact in db if exist */
memset(&find, 0, sizeof (struct contact_));
- if (str_copy(&find.c, c->s, c->len) == 0) die_nomem();
+ if (user->version == MSNP18 && c->len > 0) {
+ c->p = (unsigned char *)strchr((char *)c->s, ':');
+ if (c->p) {
+ len = c->p - c->s;
+ if (c->len > ++len)
+ if (str_copy(&find.c, c->s + len, c->len - len) == 0) die_nomem();
+ } else
+ goto error;
+ } else {
+ if (str_copy(&find.c, c->s, c->len) == 0) die_nomem();
+ }
+contact_print(&find);
contact = RB_FIND(contacts, &user->contacts, &find);
contact_free(&find);
@@ -654,15 +683,92 @@
if (str_copys(&save->status, (unsigned char *)"OFF") == 0) die_nomem();
save->deny &= ~CONTACT_BLOCKED;
+contact_print(save);
(void)sql_contact_save(user, save);
if (contact->deny & CONTACT_DENY)
return(RETURN);
+error:
return(ROK);
}
int
+msnp18_contact_change(struct user_ *user, command *cmd, int args) {
+ struct contact_ *contact;
+ struct contact_ *save;
+ struct contact_ find;
+ unsigned int len = 0;
+ string *c; /* contato */
+ string *d; /* texto nome */
+ string *o; /* object */
+ string *s; /* status */
+
+
+ if (cmd->args_len < 5)
+ return(ROK);
+
+ if ((s = get_arg(cmd, 0)) == NULL ||
+ (c = get_arg(cmd, 1)) == NULL ||
+ (d = get_arg(cmd, 2)) == NULL ||
+ (o = get_arg(cmd, 4)) == NULL) {
+
+ return(ROK);
+ }
+
+ memset(&find, 0, sizeof (struct contact_));
+ c->p = (unsigned char *)strchr((char *)c->s, ':');
+ if (c->p)
+ len = ++c->p - c->s;
+ if (len > 0 && len < c->len) {
+ if (str_copy(&find.c, c->s + len, c->len - len) == 0) die_nomem();
+ } else {
+ if (str_copy(&find.c, c->s, c->len) == 0) die_nomem();
+ }
+ contact = RB_FIND(contacts, &user->contacts, &find);
+ contact_free(&find);
+
+ if (contact == NULL || cmd->ignore)
+ return(ROK);
+
+ save = contact_save(user, &contact->c);
+ if (save == NULL)
+ return(ROK);
+
+ if (d->len > 0 && msn_decode(d, &save->dn) == RFAIL) {
+ contact_free(save);
+ free(save);
+ contact->save = NULL;
+ return(ROK);
+ }
+ if (contact->c.len > 0 && str_copy(&save->c, contact->c.s, contact->c.len) == 0)
+ die_nomem();
+ if (o->len > 0 && str_copy(&save->o, o->s, o->len) == 0)
+ die_nomem();
+ if (s->len > 0 && str_copy(&save->status, s->s, s->len) == 0)
+ die_nomem();
+ save->flags = (get_arg(cmd, 3) == NULL) ? 0 : atoll((char *)cmd->args[3]->s);
+
+ /* check for blocked contacts */
+ if (save->deny & CONTACT_DENY)
+ save->deny |= CONTACT_BLOCKED;
+
+ /* SEEIMG */
+ if (o && (user->commands & SEEIMG)) {
+ if (str_copys(o, (unsigned char *)"0") == 0) exit (51);
+ }
+
+ if (sql_contact_save(user, save) == RFAIL)
+ return(ROK);
+
+ /* check for blocked contacts */
+ if (contact->deny & CONTACT_BLOCKED)
+ return(RETURN);
+
+ return(ROK);
+}
+
+int
msnp13_contact_change(struct user_ *user, command *cmd, int args) {
struct contact_ *contact;
struct contact_ *save;
@@ -710,14 +816,19 @@
save->flags = (get_arg(cmd, 4) == NULL) ? 0 : atoll((char *)cmd->args[4]->s);
/* check for blocked contacts */
- if (contact->save->deny & CONTACT_DENY)
- contact->save->deny |= CONTACT_BLOCKED;
+ if (save->deny & CONTACT_DENY)
+ save->deny |= CONTACT_BLOCKED;
/* SEEIMG */
if (o && (user->commands & SEEIMG)) {
- if (user->version == MSNP15) {
+ switch (user->version) {
+ case MSNP15:
+ case MSNP16:
+ case MSNP17:
+ case MSNP18:
if (str_copys(o, (unsigned char *)"0") == 0) exit (51);
- } else {
+ break;
+ default:
str_free(o);
free(o);
cmd->args[5] = NULL;
@@ -736,7 +847,7 @@
}
int
-msn_contact_change(struct user_ *user, command *cmd, int args) {
+msnp8_contact_change(struct user_ *user, command *cmd, int args) {
struct contact_ *contact;
struct contact_ *save;
struct contact_ find;
@@ -783,8 +894,8 @@
save->flags = (get_arg(cmd, 3) == NULL) ? 0 : atoll((char *)cmd->args[3]->s);
/* check for blocked contacts */
- if (contact->save->deny & CONTACT_DENY)
- contact->save->deny |= CONTACT_BLOCKED;
+ if (save->deny & CONTACT_DENY)
+ save->deny |= CONTACT_BLOCKED;
/* SEEIMG */
if (o && (user->commands & SEEIMG)) {
@@ -805,6 +916,19 @@
}
int
+msn_contact_change(struct user_ *user, command *cmd, int args) {
+
+ switch (user->version) {
+ case MSNP18:
+ return msnp18_contact_change(user, cmd, args);
+ case MSNP13:
+ return msnp13_contact_change(user, cmd, args);
+ default:
+ return msnp8_contact_change(user, cmd, args);
+ }
+}
+
+int
msnp12_client_syn_rewrite(struct user_ *user, command *cmd, int args) {
string *arg1;
string *arg2;
Property changes on: trunk/contacts.c
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/contacts.h
===================================================================
--- trunk/contacts.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/contacts.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: contacts.h,v 1.6 2008-04-23 01:22:30 loos-br Exp $
+ * $Id$
*/
#ifndef CONTACTS_H
@@ -49,7 +48,6 @@
int msnp13_contact_initial_state(struct user_ *user, command *cmd, int args);
int msn_contact_initial_state(struct user_ *user, command *cmd, int args);
int msn_contact_logoff(struct user_ *user, command *cmd, int args);
-int msnp13_contact_change(struct user_ *user, command *cmd, int args);
int msn_contact_change(struct user_ *user, command *cmd, int args);
int msnp12_client_syn_rewrite(struct user_ *user, command *cmd, int args);
int msnp8_client_syn_rewrite(struct user_ *user, command *cmd, int args);
Property changes on: trunk/contacts.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/ctl.c
===================================================================
--- trunk/ctl.c 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/ctl.c 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-static const char rcsid[] = "$Id: ctl.c,v 1.1 2008-04-23 01:22:30 loos-br Exp $";
+static const char rcsid[] = "$Id$";
#include <sys/types.h>
#include <sys/socket.h>
Property changes on: trunk/ctl.c
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/ctl.h
===================================================================
--- trunk/ctl.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/ctl.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: ctl.h,v 1.1 2008-04-23 01:22:31 loos-br Exp $
+ * $Id$
*/
#ifndef CTL_H
Property changes on: trunk/ctl.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/fmt.c
===================================================================
--- trunk/fmt.c 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/fmt.c 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-static const char rcsid[] = "$Id: fmt.c,v 1.4 2008-05-31 13:03:53 loos-br Exp $";
+static const char rcsid[] = "$Id$";
#include <stdarg.h>
Property changes on: trunk/fmt.c
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/fmt.h
===================================================================
--- trunk/fmt.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/fmt.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: fmt.h,v 1.3 2008-01-25 13:34:38 loos-br Exp $
+ * $Id$
*/
#ifndef FMT_H
Property changes on: trunk/fmt.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/io.c
===================================================================
--- trunk/io.c 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/io.c 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-static const char rcsid[] = "$Id: io.c,v 1.4 2008-05-17 16:18:14 loos-br Exp $";
+static const char rcsid[] = "$Id$";
#include <sys/select.h>
Property changes on: trunk/io.c
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/io.h
===================================================================
--- trunk/io.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/io.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: io.h,v 1.2 2008-01-03 12:27:32 loos-br Exp $
+ * $Id$
*/
#ifndef IO_H
Property changes on: trunk/io.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/msg.c
===================================================================
--- trunk/msg.c 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/msg.c 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009 Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-static const char rcsid[] = "$Id: msg.c,v 1.9 2008-10-16 01:07:15 loos-br Exp $";
+static const char rcsid[] = "$Id$";
#include <string.h>
Property changes on: trunk/msg.c
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/msg.h
===================================================================
--- trunk/msg.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/msg.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: msg.h,v 1.3 2008-01-28 14:59:43 loos-br Exp $
+ * $Id$
*/
#ifndef MSG_H
Property changes on: trunk/msg.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/msn-proxy.c
===================================================================
--- trunk/msn-proxy.c 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/msn-proxy.c 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-static const char rcsid[] = "$Id: msn-proxy.c,v 1.5 2008-04-23 01:22:31 loos-br Exp $";
+static const char rcsid[] = "$Id$";
#include <errno.h>
#include <stdio.h>
Property changes on: trunk/msn-proxy.c
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/msn-proxy.h
===================================================================
--- trunk/msn-proxy.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/msn-proxy.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: msn-proxy.h,v 1.8 2008-09-26 16:56:48 loos-br Exp $
+ * $Id$
*/
#ifndef MSN_PROXY_H
@@ -90,6 +89,14 @@
#define P2P_ACK 0x00000002
#define P2P_FILE 0x00002000
+#ifndef MSNPROXY_VERSION
+#define MSNPROXY_VERSION "0.6.3p1"
+#endif
+
+#ifndef MSNPROXY_RELEASE
+#define MSNPROXY_RELEASE "$Id$"
+#endif
+
#ifndef MAX_BUF
#define MAX_BUF 1024
#endif
Property changes on: trunk/msn-proxy.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/msnp12.h
===================================================================
--- trunk/msnp12.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/msnp12.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: msnp12.h,v 1.3 2008-09-26 16:56:48 loos-br Exp $
+ * $Id$
*/
#include "check-cmd.h"
@@ -59,9 +58,9 @@
{ "SBP", 4, check_args },
{ "SBS", 2, check_args },
{ "SYN", 0, check_ok },
- { "UBX", 0, msnp12_ubx },
- { "UUX", 2, check_args },
+ { "UBX", 0, msn_ubx },
{ "URL", 0, msn_url },
+ { "UUX", 2, check_args },
{ "XFR", 0, xfr_proxy },
{ NULL, 0, NULL }
};
Property changes on: trunk/msnp12.h
___________________________________________________________________
Added: svn:keywords
+ Id
Deleted: trunk/msnp13.h
===================================================================
--- trunk/msnp13.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/msnp13.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,145 +0,0 @@
-/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-/*
- * $Id: msnp13.h,v 1.8 2008-10-16 00:39:35 loos-br Exp $
- */
-
-#include "check-cmd.h"
-
-CMD SERVER_MSNP13_PRE_CMDS[] = {
- { "CVR", 6, check_args },
- { "GCF", 2, check_args },
- { "USR", 0, server_msnp12_pre_usr },
- { "VER", 0, msn_get_ver },
- { "XFR", 0, xfr_proxy },
- { NULL, 0, NULL }
- };
-
-CMD SERVER_MSNP13_POST_CMDS[] = {
- { "XFR", 0, xfr_ns_post_proxy },
- { NULL, 0, NULL }
- };
-
-CMD SERVER_MSNP13_CMDS[] = {
- { "241", 2, check_args },
- { "508", 2, check_args },
- { "509", 2, check_args },
- { "ADL", 2, check_args },
- { "BLP", 2, check_args },
- { "CHG", 0, check_ok },
- { "CHL", 2, check_args },
- { "FLN", 0, msn_contact_logoff },
- { "FQY", 2, check_args },
- { "ILN", 0, msnp13_contact_initial_state },
- { "MSG", 3, check_args },
- { "NLN", 0, msnp13_contact_change },
- { "NOT", 1, check_args },
- { "OUT", 1, check_args },
- { "PRP", 0, msnp12_update_dn },
- { "QNG", 1, check_args },
- { "QRY", 1, check_args },
- { "RML", 2, check_args },
- { "RNG", 0, rng_sb_proxy },
- { "SBS", 2, check_args },
- { "URL", 0, msn_url },
- { "UBN", 3, check_args },
- { "UBX", 0, msnp12_ubx },
- { "UUN", 2, check_args },
- { "UUX", 2, check_args },
- { "XFR", 0, xfr_proxy },
- { NULL, 0, NULL }
- };
-
-CMD CLIENT_MSNP13_PRE_CMDS[] = {
- { "CVR", 9, check_args },
- { "OUT", 0, check_ok },
- { "USR", 0, client_msn_pre_usr },
- { "VER", 0, msn_get_ver },
- { NULL, 0, NULL }
- };
-
-CMD CLIENT_MSNP13_POST_CMDS[] = {
- { NULL, 0, NULL }
- };
-
-CMD CLIENT_MSNP13_CMDS[] = {
- { "ADL", 0, msnp13_save_contact },
- { "BLP", 2, check_args },
- { "CHG", 0, msn_update_status },
- { "FQY", 2, check_args },
- { "OUT", 0, check_ok },
- { "PNG", 0, check_ok },
- { "PRP", 3, check_args },
- { "QRY", 3, check_args },
- { "RML", 2, check_args },
- { "URL", 0, msn_url },
- { "UUN", 4, check_args },
- { "UUX", 2, check_args },
- { "XFR", 2, check_args },
- { NULL, 0, NULL }
- };
-
-SBCMD SERVER_MSNP13_SB_CMDS[] = {
- { "ACK", 1, check_sb_args },
- { "ANS", 2, check_sb_args },
- { "BYE", 1, check_sb_args },
- { "CAL", 3, check_sb_args },
- { "IRO", 0, sb_iro },
- { "JOI", 0, msn_sb_joi },
- { "MSG", 0, msn_sb_server_msg },
- { "USR", 4, check_sb_args },
- { NULL, 0, NULL }
- };
-
-SBCMD SERVER_MSNP13_SB_POST_CMDS[] = {
- { "BYE", 0, msn_sb_post_bye },
- { NULL, 0, NULL }
- };
-
-SBCMD CLIENT_MSNP13_SB_CMDS[] = {
- { "ANS", 4, check_sb_args },
- { "CAL", 0, msn_sb_cal },
- { "MSG", 0, msn_sb_client_msg },
- { "OUT", 0, check_sb_args },
- { "USR", 3, check_sb_args },
- { NULL, 0, NULL }
- };
-
-SBCMD CLIENT_MSNP13_SB_POST_CMDS[] = {
- { "OUT", 0, msn_sb_post_out },
- { NULL, 0, NULL }
- };
-
-CMDS_ MSNP13_CMDS[] = {
- { SERVER_CMD, "server_cmd", SERVER_MSNP13_CMDS },
- { SERVER_PRE_CMD, "server_pre_cmd", SERVER_MSNP13_PRE_CMDS },
- { SERVER_POST_CMD, "server_post_cmd", SERVER_MSNP13_POST_CMDS },
- { CLIENT_CMD, "client_cmd", CLIENT_MSNP13_CMDS },
- { CLIENT_PRE_CMD, "client_pre_cmd", CLIENT_MSNP13_PRE_CMDS },
- { CLIENT_POST_CMD, "client_post_cmd", CLIENT_MSNP13_POST_CMDS },
- { 0, NULL, NULL }
- };
-
-SBCMDS_ MSNP13_SBCMDS[] = {
- { SERVER_SB_CMD, "server_sb_cmd", SERVER_MSNP13_SB_CMDS },
- { SERVER_SB_POST_CMD, "server_sb_post_cmd", SERVER_MSNP13_SB_POST_CMDS },
- { CLIENT_SB_CMD, "client_sb_cmd", CLIENT_MSNP13_SB_CMDS },
- { CLIENT_SB_POST_CMD, "client_sb_post", CLIENT_MSNP13_SB_POST_CMDS },
- { 0, NULL, NULL }
- };
-
Deleted: trunk/msnp15.h
===================================================================
--- trunk/msnp15.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/msnp15.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,149 +0,0 @@
-/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-/*
- * $Id: msnp15.h,v 1.8 2008-10-16 00:39:35 loos-br Exp $
- */
-
-#include "check-cmd.h"
-
-CMD SERVER_MSNP15_PRE_CMDS[] = {
- { "CVR", 6, check_args },
- { "GCF", 2, check_args },
- { "USR", 0, server_msnp12_pre_usr },
- { "VER", 0, msn_get_ver },
- { "XFR", 0, xfr_proxy },
- { NULL, 0, NULL }
- };
-
-CMD SERVER_MSNP15_POST_CMDS[] = {
- { "XFR", 0, xfr_ns_post_proxy },
- { NULL, 0, NULL }
- };
-
-CMD SERVER_MSNP15_CMDS[] = {
- { "241", 2, check_args },
- { "508", 2, check_args },
- { "509", 2, check_args },
- { "ADL", 2, check_args },
- { "BLP", 2, check_args },
- { "CHG", 0, check_ok },
- { "CHL", 2, check_args },
- { "FLN", 0, msn_contact_logoff },
- { "FQY", 2, check_args },
- { "ILN", 0, msnp13_contact_initial_state },
- { "MSG", 3, check_args },
- { "NLN", 0, msnp13_contact_change },
- { "NOT", 1, check_args },
- { "OUT", 1, check_args },
- { "PRP", 0, msnp12_update_dn },
- { "QNG", 1, check_args },
- { "QRY", 1, check_args },
- { "RML", 2, check_args },
- { "RNG", 0, rng_sb_proxy },
- { "SBS", 2, check_args },
- { "UBN", 3, check_args },
- { "UBX", 0, msnp12_ubx },
- { "URL", 0, msn_url },
- { "USR", 5, check_args },
- { "UUX", 2, check_args },
- { "UUN", 2, check_args },
- { "XFR", 0, xfr_proxy },
- { NULL, 0, NULL }
- };
-
-CMD CLIENT_MSNP15_PRE_CMDS[] = {
- { "CVR", 9, check_args },
- { "OUT", 0, check_ok },
- { "USR", 0, client_msn_pre_usr },
- { "VER", 0, msn_get_ver },
- { NULL, 0, NULL }
- };
-
-CMD CLIENT_MSNP15_POST_CMDS[] = {
- { NULL, 0, NULL }
- };
-
-CMD CLIENT_MSNP15_CMDS[] = {
- { "ADL", 0, msnp13_save_contact },
- { "BLP", 2, check_args },
- { "CHG", 0, msn_update_status },
- { "CHL", 0, check_ok },
- { "FQY", 2, check_args },
- { "OUT", 0, check_ok },
- { "PNG", 0, check_ok },
- { "PRP", 3, check_args },
- { "QRY", 3, check_args },
- { "RML", 2, check_args },
- { "URL", 0, msn_url },
- { "USR", 4, check_args },
- { "UUM", 5, check_args },
- { "UUN", 4, check_args },
- { "UUX", 2, check_args },
- { "XFR", 2, check_args },
- { NULL, 0, NULL }
- };
-
-SBCMD SERVER_MSNP15_SB_CMDS[] = {
- { "ACK", 1, check_sb_args },
- { "ANS", 2, check_sb_args },
- { "BYE", 1, check_sb_args },
- { "CAL", 3, check_sb_args },
- { "IRO", 0, sb_iro },
- { "JOI", 0, msn_sb_joi },
- { "MSG", 0, msn_sb_server_msg },
- { "USR", 4, check_sb_args },
- { NULL, 0, NULL }
- };
-
-SBCMD SERVER_MSNP15_SB_POST_CMDS[] = {
- { "BYE", 0, msn_sb_post_bye },
- { NULL, 0, NULL }
- };
-
-SBCMD CLIENT_MSNP15_SB_CMDS[] = {
- { "ANS", 4, check_sb_args },
- { "CAL", 0, msn_sb_cal },
- { "MSG", 0, msn_sb_client_msg },
- { "OUT", 0, check_sb_args },
- { "USR", 3, check_sb_args },
- { NULL, 0, NULL }
- };
-
-SBCMD CLIENT_MSNP15_SB_POST_CMDS[] = {
- { "OUT", 0, msn_sb_post_out },
- { NULL, 0, NULL }
- };
-
-CMDS_ MSNP15_CMDS[] = {
- { SERVER_CMD, "server_cmd", SERVER_MSNP15_CMDS },
- { SERVER_PRE_CMD, "server_pre_cmd", SERVER_MSNP15_PRE_CMDS },
- { SERVER_POST_CMD, "server_post_cmd", SERVER_MSNP15_POST_CMDS },
- { CLIENT_CMD, "client_cmd", CLIENT_MSNP15_CMDS },
- { CLIENT_PRE_CMD, "client_pre_cmd", CLIENT_MSNP15_PRE_CMDS },
- { CLIENT_POST_CMD, "client_post_cmd", CLIENT_MSNP15_POST_CMDS },
- { 0, NULL, NULL }
- };
-
-SBCMDS_ MSNP15_SBCMDS[] = {
- { SERVER_SB_CMD, "sever_sb_cmd", SERVER_MSNP15_SB_CMDS },
- { SERVER_SB_POST_CMD, "server_sb_post_cmd", SERVER_MSNP15_SB_POST_CMDS },
- { CLIENT_SB_CMD, "client_sb_cmd", CLIENT_MSNP15_SB_CMDS },
- { CLIENT_SB_POST_CMD, "client_sb_post_cmd", CLIENT_MSNP15_SB_POST_CMDS },
- { 0, NULL, NULL }
- };
-
Copied: trunk/msnp18.h (from rev 91, trunk/msnp15.h)
===================================================================
--- trunk/msnp18.h (rev 0)
+++ trunk/msnp18.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -0,0 +1,148 @@
+/*
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+/*
+ * $Id$
+ */
+
+#include "check-cmd.h"
+
+CMD SERVER_MSNP18_PRE_CMDS[] = {
+ { "CVR", 6, check_args },
+ { "GCF", 2, check_args },
+ { "USR", 0, server_msnp12_pre_usr },
+ { "VER", 0, msn_get_ver },
+ { "XFR", 0, xfr_proxy },
+ { NULL, 0, NULL }
+ };
+
+CMD SERVER_MSNP18_POST_CMDS[] = {
+ { "XFR", 0, xfr_ns_post_proxy },
+ { NULL, 0, NULL }
+ };
+
+CMD SERVER_MSNP18_CMDS[] = {
+ { "241", 2, check_args },
+ { "508", 2, check_args },
+ { "509", 2, check_args },
+ { "ADL", 2, check_args },
+ { "BLP", 2, check_args },
+ { "CHG", 0, check_ok },
+ { "CHL", 2, check_args },
+ { "FLN", 0, msn_contact_logoff },
+ { "FQY", 2, check_args },
+ { "ILN", 0, msnp13_contact_initial_state },
+ { "MSG", 3, check_args },
+ { "NLN", 0, msn_contact_change },
+ { "NOT", 1, check_args },
+ { "OUT", 1, check_args },
+ { "PRP", 0, msnp12_update_dn },
+ { "QNG", 1, check_args },
+ { "QRY", 1, check_args },
+ { "RML", 2, check_args },
+ { "RNG", 0, rng_sb_proxy },
+ { "SBS", 2, check_args },
+ { "UBN", 3, check_args },
+ { "UBX", 0, msn_ubx },
+ { "URL", 0, msn_url },
+ { "USR", 5, check_args },
+ { "UUN", 2, check_args },
+ { "UUX", 2, check_args },
+ { "XFR", 0, xfr_proxy },
+ { NULL, 0, NULL }
+ };
+
+CMD CLIENT_MSNP18_PRE_CMDS[] = {
+ { "CVR", 9, check_args },
+ { "OUT", 0, check_ok },
+ { "USR", 0, client_msn_pre_usr },
+ { "VER", 0, msn_get_ver },
+ { NULL, 0, NULL }
+ };
+
+CMD CLIENT_MSNP18_POST_CMDS[] = {
+ { NULL, 0, NULL }
+ };
+
+CMD CLIENT_MSNP18_CMDS[] = {
+ { "ADL", 0, msnp13_save_contact },
+ { "BLP", 2, check_args },
+ { "CHG", 0, msn_update_status },
+ { "CHL", 0, check_ok },
+ { "FQY", 2, check_args },
+ { "OUT", 0, check_ok },
+ { "PNG", 0, check_ok },
+ { "PRP", 3, check_args },
+ { "QRY", 3, check_args },
+ { "RML", 2, check_args },
+ { "URL", 0, msn_url },
+ { "USR", 4, check_args },
+ { "UUM", 5, check_args },
+ { "UUN", 4, check_args },
+ { "UUX", 2, check_args },
+ { "XFR", 2, check_args },
+ { NULL, 0, NULL }
+ };
+
+SBCMD SERVER_MSNP18_SB_CMDS[] = {
+ { "ACK", 1, check_sb_args },
+ { "ANS", 2, check_sb_args },
+ { "BYE", 1, check_sb_args },
+ { "CAL", 3, check_sb_args },
+ { "IRO", 0, sb_iro },
+ { "JOI", 0, msn_sb_joi },
+ { "MSG", 0, msn_sb_server_msg },
+ { "USR", 4, check_sb_args },
+ { NULL, 0, NULL }
+ };
+
+SBCMD SERVER_MSNP18_SB_POST_CMDS[] = {
+ { "BYE", 0, msn_sb_post_bye },
+ { NULL, 0, NULL }
+ };
+
+SBCMD CLIENT_MSNP18_SB_CMDS[] = {
+ { "ANS", 4, check_sb_args },
+ { "CAL", 0, msn_sb_cal },
+ { "MSG", 0, msn_sb_client_msg },
+ { "OUT", 0, check_sb_args },
+ { "USR", 3, check_sb_args },
+ { NULL, 0, NULL }
+ };
+
+SBCMD CLIENT_MSNP18_SB_POST_CMDS[] = {
+ { "OUT", 0, msn_sb_post_out },
+ { NULL, 0, NULL }
+ };
+
+CMDS_ MSNP18_CMDS[] = {
+ { SERVER_CMD, "server_cmd", SERVER_MSNP18_CMDS },
+ { SERVER_PRE_CMD, "server_pre_cmd", SERVER_MSNP18_PRE_CMDS },
+ { SERVER_POST_CMD, "server_post_cmd", SERVER_MSNP18_POST_CMDS },
+ { CLIENT_CMD, "client_cmd", CLIENT_MSNP18_CMDS },
+ { CLIENT_PRE_CMD, "client_pre_cmd", CLIENT_MSNP18_PRE_CMDS },
+ { CLIENT_POST_CMD, "client_post_cmd", CLIENT_MSNP18_POST_CMDS },
+ { 0, NULL, NULL }
+ };
+
+SBCMDS_ MSNP18_SBCMDS[] = {
+ { SERVER_SB_CMD, "sever_sb_cmd", SERVER_MSNP18_SB_CMDS },
+ { SERVER_SB_POST_CMD, "server_sb_post_cmd", SERVER_MSNP18_SB_POST_CMDS },
+ { CLIENT_SB_CMD, "client_sb_cmd", CLIENT_MSNP18_SB_CMDS },
+ { CLIENT_SB_POST_CMD, "client_sb_post_cmd", CLIENT_MSNP18_SB_POST_CMDS },
+ { 0, NULL, NULL }
+ };
+
Property changes on: trunk/msnp18.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/msnp8.h
===================================================================
--- trunk/msnp8.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/msnp8.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: msnp8.h,v 1.3 2008-09-26 16:56:48 loos-br Exp $
+ * $Id$
*/
CMD SERVER_MSNP8_PRE_CMDS[] = {
Property changes on: trunk/msnp8.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/mysql.c
===================================================================
--- trunk/mysql.c 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/mysql.c 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-static const char rcsid[] = "$Id: mysql.c,v 1.3 2008-01-25 13:34:38 loos-br Exp $";
+static const char rcsid[] = "$Id$";
#include <sys/types.h>
#include <sys/stat.h>
Property changes on: trunk/mysql.c
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/mysql.h
===================================================================
--- trunk/mysql.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/mysql.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: mysql.h,v 1.3 2008-06-02 14:09:49 loos-br Exp $
+ * $Id$
*/
#ifndef MYSQL_H
Property changes on: trunk/mysql.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/net-io.c
===================================================================
--- trunk/net-io.c 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/net-io.c 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-static const char rcsid[] = "$Id: net-io.c,v 1.5 2008-04-25 16:27:42 loos-br Exp $";
+static const char rcsid[] = "$Id$";
#include <sys/types.h>
#include <sys/socket.h>
Property changes on: trunk/net-io.c
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/net-io.h
===================================================================
--- trunk/net-io.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/net-io.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: net-io.h,v 1.3 2008-04-23 01:22:31 loos-br Exp $
+ * $Id$
*/
#ifndef NET_IO_H
Property changes on: trunk/net-io.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/ns-data.h
===================================================================
--- trunk/ns-data.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/ns-data.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: ns-data.h,v 1.2 2008-01-03 12:27:37 loos-br Exp $
+ * $Id$
*/
#ifndef NS_DATA_H
Property changes on: trunk/ns-data.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/ns.c
===================================================================
--- trunk/ns.c 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/ns.c 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-static const char rcsid[] = "$Id: ns.c,v 1.10 2008-10-19 15:24:10 loos-br Exp $";
+static const char rcsid[] = "$Id$";
#include <sys/types.h>
#include <sys/socket.h>
Property changes on: trunk/ns.c
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/ns.h
===================================================================
--- trunk/ns.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/ns.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: ns.h,v 1.4 2008-04-23 13:32:04 loos-br Exp $
+ * $Id$
*/
#ifndef NS_H
Property changes on: trunk/ns.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/p2p.c
===================================================================
--- trunk/p2p.c 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/p2p.c 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-static const char rcsid[] = "$Id: p2p.c,v 1.3 2008-01-28 14:59:43 loos-br Exp $";
+static const char rcsid[] = "$Id$";
#include <stdio.h> /* XXX - printf */
#include <stdlib.h>
Property changes on: trunk/p2p.c
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/p2p.h
===================================================================
--- trunk/p2p.h 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/p2p.h 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,6 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
- * Luiz Otavio O Souza <lo...@gm...>
+ * Copyright (c) 2004-2009, Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,7 +15,7 @@
*/
/*
- * $Id: p2p.h,v 1.2 2008-01-03 12:27:39 loos-br Exp $
+ * $Id$
*/
#ifndef P2P_H
Property changes on: trunk/p2p.h
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/php/ajax.inc.php
===================================================================
--- trunk/php/ajax.inc.php 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/php/ajax.inc.php 2009-01-20 15:34:19 UTC (rev 96)
@@ -17,7 +17,7 @@
*/
/*
- * $Id: ajax.inc.php,v 1.2 2008-01-22 14:29:43 loos-br Exp $
+ * $Id$
*/
?>
Property changes on: trunk/php/ajax.inc.php
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/php/al.inc.php
===================================================================
--- trunk/php/al.inc.php 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/php/al.inc.php 2009-01-20 15:34:19 UTC (rev 96)
@@ -17,7 +17,7 @@
*/
/*
- * $Id: al.inc.php,v 1.2 2008-04-23 01:22:32 loos-br Exp $
+ * $Id$
*/
?>
Property changes on: trunk/php/al.inc.php
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/php/bl.inc.php
===================================================================
--- trunk/php/bl.inc.php 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/php/bl.inc.php 2009-01-20 15:34:19 UTC (rev 96)
@@ -17,7 +17,7 @@
*/
/*
- * $Id: bl.inc.php,v 1.3 2008-06-18 21:10:16 loos-br Exp $
+ * $Id$
*/
require('default.array.cmd.inc.php');
Property changes on: trunk/php/bl.inc.php
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/php/chat-to.php
===================================================================
--- trunk/php/chat-to.php 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/php/chat-to.php 2009-01-20 15:34:19 UTC (rev 96)
@@ -17,7 +17,7 @@
*/
/*
- * $Id: chat-to.php,v 1.3 2008-04-28 01:00:25 loos-br Exp $
+ * $Id$
*/
require('mysql.inc.php');
Property changes on: trunk/php/chat-to.php
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/php/chat.php
===================================================================
--- trunk/php/chat.php 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/php/chat.php 2009-01-20 15:34:19 UTC (rev 96)
@@ -17,7 +17,7 @@
*/
/*
- * $Id: chat.php,v 1.3 2008-04-28 01:00:25 loos-br Exp $
+ * $Id$
*/
require('mysql.inc.php');
Property changes on: trunk/php/chat.php
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/php/class.ctl.php
===================================================================
--- trunk/php/class.ctl.php 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/php/class.ctl.php 2009-01-20 15:34:19 UTC (rev 96)
@@ -1,7 +1,7 @@
<?php
/*
- * $Id: class.ctl.php,v 1.1 2008-04-23 01:22:32 loos-br Exp $
+ * $Id$
*/
class ctl {
Property changes on: trunk/php/class.ctl.php
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/php/conf.php
===================================================================
--- trunk/php/conf.php 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/php/conf.php 2009-01-20 15:34:19 UTC (rev 96)
@@ -17,7 +17,7 @@
*/
/*
- * $Id: conf.php,v 1.3 2008-06-18 21:00:54 loos-br Exp $
+ * $Id$
*/
require('default.array.option.inc.php');
Property changes on: trunk/php/conf.php
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/php/default.array.cmd.inc.php
===================================================================
--- trunk/php/default.array.cmd.inc.php 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/php/default.array.cmd.inc.php 2009-01-20 15:34:19 UTC (rev 96)
@@ -17,7 +17,7 @@
*/
/*
- * $Id: default.array.cmd.inc.php,v 1.7 2008-10-15 16:42:31 loos-br Exp $
+ * $Id$
*/
$arrayCMD = array(
Property changes on: trunk/php/default.array.cmd.inc.php
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/php/default.array.option.inc.php
===================================================================
--- trunk/php/default.array.option.inc.php 2009-01-19 14:26:28 UTC (rev 95)
+++ trunk/php/default.array.option.inc.php 2009-01-20 15:34:19 UTC (rev 96)
@@ -17,7 +17,7 @@
*/
/*
- * $Id: default.array.option.inc.php,v 1.5 2008-10-15 16:42:31 loos-br Exp $
+ * $Id$
*/
$arrayOption = array(
@@ -34,14 +34,8 @@
array ( "name" => "msnp15", "cmd" => "MSNP15",
"desc" => "Bloquear o uso do protocolo MSNP15 (Live Messenger 8.x)" ),
- array ( "name" => "msnp16", "cmd" => "MSNP16",
- "desc" => "Bloquear o uso do protocolo MSNP16 (Live Messenger 9 Beta)" ),
-
- array ( "name" => "msnp17", "cmd" => "MSNP17",
- "desc" => "Bloquear o uso do protocolo MSNP17 (Live Messenger 9 Beta)" ),
-
array ( "name" => "msnp18", "cmd" => "MSNP18",
- "desc" => "Bloquear o uso do protocolo MSNP18 (Live Messenger 9.x Beta)" ),
+ "desc" => "Bloquear o uso do protocolo MSNP18 (Live Messenger 9.x)" ),
array ( "name" => "filetransf", "cmd" => "FILETRANSF",
"desc" => "Bloquear a transfer\xEAncia de arquivos" ),
Property changes on: trunk/php/default.array.option.inc.php
___________________________________________________________________
Added: svn:keywords
+ Id
Modified: trunk/php/default.array.status.inc.php
===================================================================
--- t...
[truncated message content] |
|
From: <lo...@us...> - 2009-01-19 14:26:33
|
Revision: 95
http://msn-proxy.svn.sourceforge.net/msn-proxy/?rev=95&view=rev
Author: loos-br
Date: 2009-01-19 14:26:28 +0000 (Mon, 19 Jan 2009)
Log Message:
-----------
adicionando um .htaccess para exemplo, parece que tem gente deixando suas instalacoes abertas. cuidado com o google ! altere o caminho do arquivo de senhas, crie com o comando htpasswd.
Added Paths:
-----------
trunk/php/.htaccess
Added: trunk/php/.htaccess
===================================================================
--- trunk/php/.htaccess (rev 0)
+++ trunk/php/.htaccess 2009-01-19 14:26:28 UTC (rev 95)
@@ -0,0 +1,5 @@
+AuthType Basic
+AuthName "MSN-Proxy"
+AuthUserFile /usr/local/www/passwd/msn-proxy
+Require valid-user
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <lo...@us...> - 2009-01-18 18:30:58
|
Revision: 94
http://msn-proxy.svn.sourceforge.net/msn-proxy/?rev=94&view=rev
Author: loos-br
Date: 2009-01-18 18:30:52 +0000 (Sun, 18 Jan 2009)
Log Message:
-----------
teste do svn
Modified Paths:
--------------
trunk/mysql.c
Modified: trunk/mysql.c
===================================================================
--- trunk/mysql.c 2009-01-18 17:40:58 UTC (rev 93)
+++ trunk/mysql.c 2009-01-18 18:30:52 UTC (rev 94)
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004, 2005, 2006, 2007, 2008
+ * Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009
* Luiz Otavio O Souza <lo...@gm...>
*
* Permission to use, copy, modify, and distribute this software for any
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: Luiz O. O S. <lo...@gm...> - 2009-01-18 18:25:18
|
> Boa tarde, > > Já fiz as alterações que gostaria no svn e assim o mesmo esta novamente > liberado. > > seguem os novos paths: > > tag 0.6.3p1: > > svn co > https://msn-proxy.svn.sourceforge.net/svnroot/msn-proxy/tags/msn-proxy-6.3.1p1 > msn-proxy > Corrigindo: svn co https://msn-proxy.svn.sourceforge.net/svnroot/msn-proxy/tags/msn-proxy-0.6.3p1 msn-proxy []s' Luiz |
|
From: aledr <mat...@gm...> - 2009-01-18 18:24:23
|
Obrigado Luiz, vamos começar a trabalhar no SVN agora mesmo! On Sun, Jan 18, 2009 at 4:18 PM, Luiz Otavio O Souza <lo...@gm...> wrote: > Boa tarde, > > Já fiz as alterações que gostaria no svn e assim o mesmo esta novamente > liberado. > > seguem os novos paths: > > tag 0.6.3p1: > > svn co > https://msn-proxy.svn.sourceforge.net/svnroot/msn-proxy/tags/msn-proxy-6.3.1p1 > msn-proxy > > HEAD: > svn co https://msn-proxy.svn.sourceforge.net/svnroot/msn-proxy/trunk > msn-proxy > > Completo: > svn co https://msn-proxy.svn.sourceforge.net/svnroot/msn-proxy msn-proxy > > []'s > Luiz > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > msn-proxy-devel mailing list > msn...@li... > https://lists.sourceforge.net/lists/listinfo/msn-proxy-devel > > -- [ ]'s Aledr - Alexandre "OpenSource Solutions for SmallBusiness Problems" |
|
From: Luiz O. O S. <lo...@gm...> - 2009-01-18 18:18:31
|
Boa tarde, Já fiz as alterações que gostaria no svn e assim o mesmo esta novamente liberado. seguem os novos paths: tag 0.6.3p1: svn co https://msn-proxy.svn.sourceforge.net/svnroot/msn-proxy/tags/msn-proxy-6.3.1p1 msn-proxy HEAD: svn co https://msn-proxy.svn.sourceforge.net/svnroot/msn-proxy/trunk msn-proxy Completo: svn co https://msn-proxy.svn.sourceforge.net/svnroot/msn-proxy msn-proxy []'s Luiz |
|
From: Luiz O. O S. <lo...@gm...> - 2009-01-18 16:29:54
|
boa tarde, Vou remover um diretório que acabou sobrando na migração do cvs para o svn, poderia ser feito de outra maneira, mas aproveitando que não temos muitas alterações, vou refazer o repositório. Vou também direcionar a mensagem de commit do svn para a lista, assim fica fácil acompanhar o que esta sendo feito. Obrigado, Luiz |
|
From: Luiz O. O S. <lo...@gm...> - 2009-01-18 13:55:34
|
Srs. desenvolvedores, Eu criei uma tag no svn a partir do código atual que eu chamei de msn-proxy-0.6.3p1, pois eu pretendo fazer algumas alterações no HEAD e isso pode quebrar o código que esta lá por algum tempo. Embora seja recomendado que vocês (desenvolvedores) trabalhem na versão HEAD, qualquer problema com o daemon pode ser contornado utilizando o daemon que esta nessa tag estavel: # svn checkout https://msn-proxy.svn.sourceforge.net/svnroot/msn-proxy/tags/msn-proxy-0_6_3p1 msn-proxy E para acessar o trabalho que segue na HEAD: # svn checkout https://msn-proxy.svn.sourceforge.net/svnroot/msn-proxy/trunk/msn-proxy msn-proxy Todo acesso de leitura/comparação é anonimo, só é necessário setar seu usuário para gravar alguma coisa (svn commit). []'s e obrigado a todos que atenderam o chamado :) Luiz Otavio |
|
From: <vi...@ha...> - 2009-01-17 14:01:02
|
>Srs., > >Como não é novidade pra ninguém aqui não sou desenvolvedor web e preciso da >ajuda / colaboração de alguem nessa area para o bom desenvolvimento do >msn-proxy. > >Pretendo e continuo a desenvolver o daemon do msn-proxy, mas realmente >gostaria de poder contar com outra pessoa pelo menos para administrar os >diversos esforços para melhorar a ferramenta web. > >A partir de hoje todos dispostos a colaborar serão direcionados a essa lista >e serão encorajados a falar sobre seus planos aqui, de maneira que possamos >por as pessoas em contato com facilidade e assim administrar melhor a >divisão de tarefas. > >Enfim, se alguem se habitar, por favor entrar em contato. > >Abraços, >Luiz Otavio Opa.. eu me Habilito a ajudar na parte de desenvolvimento web. Att Vitor |
|
From: Luiz O. O S. <lo...@gm...> - 2009-01-17 13:29:47
|
Srs., Como não é novidade pra ninguém aqui não sou desenvolvedor web e preciso da ajuda / colaboração de alguem nessa area para o bom desenvolvimento do msn-proxy. Pretendo e continuo a desenvolver o daemon do msn-proxy, mas realmente gostaria de poder contar com outra pessoa pelo menos para administrar os diversos esforços para melhorar a ferramenta web. A partir de hoje todos dispostos a colaborar serão direcionados a essa lista e serão encorajados a falar sobre seus planos aqui, de maneira que possamos por as pessoas em contato com facilidade e assim administrar melhor a divisão de tarefas. Enfim, se alguem se habitar, por favor entrar em contato. Abraços, Luiz Otavio |