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:
parent
40e7a625ee
commit
a4e16cd2c4
6 changed files with 70 additions and 84 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue