1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00

net/spyc is not looking good :-(

This commit is contained in:
psyc://psyced.org/~lynX 2009-03-03 16:28:17 +01:00
parent 40e7a625ee
commit a4e16cd2c4
6 changed files with 70 additions and 84 deletions

View file

@ -5,7 +5,12 @@
#include <net.h>
#include <services.h>
#ifdef SPYC
inherit SPYC_PATH "circuit";
#else
inherit PSYC_PATH "circuit";
#endif
inherit NET_PATH "circuit";
volatile object super;
@ -37,7 +42,11 @@ int logon(int failure) {
if (port && port != PSYC_SERVICE) peeraddr += ":"+port;
// circuit::logon now also implies a full greeting
// therefore it needs peeraddr, and the emit is redundant
# ifdef SPYC
SPYC_PATH "circuit"::logon(failure);
# else
PSYC_PATH "circuit"::logon(failure);
# endif
#endif
return 1;
}