mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
things that happened in 2008
This commit is contained in:
parent
8f98522570
commit
94530cc322
136 changed files with 3222 additions and 2873 deletions
|
@ -1,5 +1,5 @@
|
|||
// vim:foldmethod=marker:syntax=lpc:noexpandtab
|
||||
// $Id: server.c,v 1.14 2008/03/11 13:42:27 lynx Exp $
|
||||
// $Id: server.c,v 1.18 2008/12/18 18:16:14 lynx Exp $
|
||||
//
|
||||
// the thing that answers on port 4404 of psyced.
|
||||
|
||||
|
@ -67,7 +67,7 @@ static void resolved(mixed host, mixed tag) {
|
|||
mixed uni, psycip;
|
||||
|
||||
unless (stringp(host)) {
|
||||
#if 1 //ndef BETA
|
||||
#if 1 //ndef SYMLYNX
|
||||
if (host == -2) {
|
||||
monitor_report("_warning_invalid_hostname",
|
||||
S("%O: %O has an invalid IN PTR", ME,
|
||||
|
@ -96,7 +96,7 @@ static void resolved(mixed host, mixed tag) {
|
|||
return;
|
||||
}
|
||||
#else
|
||||
// we sent them to beta, so let beta be easy on them
|
||||
// we sent them to the test server, so let it be easy on them
|
||||
host = peerip;
|
||||
#endif
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ static void resolved(mixed host, mixed tag) {
|
|||
if (peerport && peerport != PSYC_SERVICE) peeraddr += ":"+peerport;
|
||||
netloc = "psyc://"+peeraddr+"/";
|
||||
register_target( netloc );
|
||||
#if 1 // OPTIONAL
|
||||
#ifndef _flag_disable_module_authentication // OPTIONAL
|
||||
// should this server be connected to a psyc client, then the new
|
||||
// resolved name of the connection may have to be recognized as
|
||||
// location for the person. finally this code should be unnecessary
|
||||
|
@ -140,8 +140,8 @@ static void resolved(mixed host, mixed tag) {
|
|||
// cleanup? are you sure we will never need this again?
|
||||
register_location(psycip, 0); //cleanup
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // _flag_disable_module_authentication
|
||||
|
||||
// PIKE TPD: says psyc://127.0.0.1/ here .. should say
|
||||
// psyc://localhost:-23232/ instead
|
||||
P2(("%O resolves as %O (UNI %O)\n", ME, netloc, uni))
|
||||
|
@ -158,6 +158,26 @@ static void resolved(mixed host, mixed tag) {
|
|||
msg(0, "_notice_features", 0, tag ? ([ "_tag_reply" : tag ]) : 0);
|
||||
}
|
||||
|
||||
// this only gets called from net/psyc.. FIXME
|
||||
void greet() {
|
||||
// should be doing sTextPath(); here ?
|
||||
// should be sharing code with net/psyc and do a proper greeting
|
||||
// three separate packets follow (thus three emits)
|
||||
emit(S_GLYPH_PACKET_DELIMITER "\n");
|
||||
emit("\
|
||||
:_source\t"+ query_server_unl() +"\n\
|
||||
:_target_peer\tpsyc://"+ peeraddr +"/\n\
|
||||
\n\
|
||||
_notice_circuit_established\n" S_GLYPH_PACKET_DELIMITER "\n");
|
||||
emit("\
|
||||
:_source\t"+ query_server_unl() +"\n\
|
||||
\n\
|
||||
_status_circuit\n"); // S_GLYPH_PACKET_DELIMITER "\n");
|
||||
// last pipe is generated by fippo's code
|
||||
#ifdef _flag_log_sockets_SPYC
|
||||
log_file("RAW_SPYC", "» %O greeted.\n", ME);
|
||||
#endif
|
||||
}
|
||||
|
||||
void circuit_msg(string mc, mapping vars, string data) {
|
||||
switch(mc) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue