mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
restart from working psyc codebase and look at new code later
This commit is contained in:
parent
3709792118
commit
ecda9d906c
10 changed files with 41 additions and 3 deletions
|
@ -2,6 +2,10 @@
|
|||
// $Id: circuit.c,v 1.38 2008/10/14 19:02:29 lynx Exp $
|
||||
|
||||
#include "psyc.h"
|
||||
#include "../psyc/circuit.c"
|
||||
|
||||
#if 0 // first we get the syntax running, then we'll think of new features:
|
||||
|
||||
#include <net.h>
|
||||
#include <uniform.h>
|
||||
#include <tls.h>
|
||||
|
@ -324,3 +328,5 @@ varargs int msg(string source, string mc, string data,
|
|||
#endif
|
||||
return emit(buf);
|
||||
}
|
||||
|
||||
#endif // 0
|
||||
|
|
2
world/net/spyc/common.h
Normal file
2
world/net/spyc/common.h
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "../psyc/common.h"
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
#if 0 // first we get the syntax running, then we'll think of new features:
|
||||
|
||||
// included by TCP circuit *and* UDP daemon // vim:syntax=lpc
|
||||
|
||||
void dispatch(mixed header_vars, mixed varops, mixed method, mixed body) {
|
||||
|
@ -242,3 +244,4 @@ void dispatch(mixed header_vars, mixed varops, mixed method, mixed body) {
|
|||
::dispatch(header_vars, varops, method, body);
|
||||
}
|
||||
|
||||
#endif // 0
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#if 0 // first we get the syntax running, then we'll think of new features:
|
||||
|
||||
// vim:foldmethod=marker:syntax=lpc:noexpandtab
|
||||
// $Id: parse.c,v 1.30 2008/12/18 18:16:14 lynx Exp $
|
||||
//
|
||||
|
@ -449,3 +451,4 @@ void resume_parse() {
|
|||
state = PSYCPARSE_STATE_HEADER;
|
||||
}
|
||||
|
||||
#endif // 0
|
||||
|
|
3
world/net/spyc/parse.i
Normal file
3
world/net/spyc/parse.i
Normal file
|
@ -0,0 +1,3 @@
|
|||
#include "psyc.h"
|
||||
#include "../psyc/parse.i"
|
||||
|
|
@ -23,7 +23,15 @@
|
|||
* the first byte.
|
||||
*/
|
||||
|
||||
#define SPYC
|
||||
#ifndef SPYC
|
||||
# define SPYC
|
||||
|
||||
# include <psyc.h>
|
||||
#endif
|
||||
|
||||
// EOF
|
||||
|
||||
#if 0 // first we get the syntax running, then we'll think of new features:
|
||||
|
||||
#define PSYCPARSE_STATE_HEADER 0
|
||||
#define PSYCPARSE_STATE_CONTENT 1
|
||||
|
@ -37,4 +45,4 @@
|
|||
return; \
|
||||
}
|
||||
|
||||
#include <psyc.h>
|
||||
#endif // 0
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
// the thing that answers on port 4404 of psyced.
|
||||
|
||||
#include "psyc.h"
|
||||
#include "../psyc/server.c"
|
||||
|
||||
#if 0 // first we get the syntax running, then we'll think of new features:
|
||||
|
||||
#include <net.h>
|
||||
#include <services.h>
|
||||
#define NO_INHERIT
|
||||
|
@ -189,3 +193,5 @@ void circuit_msg(string mc, mapping vars, string data) {
|
|||
return ::circuit_msg(mc, vars, data);
|
||||
}
|
||||
}
|
||||
|
||||
#endif // 0
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
// $Id: udp.c,v 1.7 2008/07/17 15:07:59 lynx Exp $
|
||||
|
||||
#include "psyc.h"
|
||||
#include "../psyc/udp.c"
|
||||
|
||||
#if 0 // first we get the syntax running, then we'll think of new features:
|
||||
|
||||
#include <net.h>
|
||||
#include <uniform.h>
|
||||
#include <text.h>
|
||||
|
@ -36,3 +40,5 @@ parseUDP(ip, port, msg) {
|
|||
// ignoring the routing vars.. TODO FIXME
|
||||
#define PSYC_UDP
|
||||
#include "dispatch.i"
|
||||
|
||||
#endif // 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue