diff --git a/include/psyc.h b/include/psyc.h index 149b903..5d75ced 100644 --- a/include/psyc.h +++ b/include/psyc.h @@ -146,13 +146,13 @@ typedef struct /* intermediate struct for a PSYC packet */ typedef struct { - psycHeader routing; ///< Routing header. - psycHeader entity; ///< Entitiy header. + psycHeader routing; ///< Routing header. + psycHeader entity; ///< Entity header. psycString method; psycString data; - size_t routingLength; ///< Length of routing part. - size_t contentLength; ///< Length of content part. - size_t length; ///< Total length of packet. + size_t routingLength; ///< Length of routing part. + size_t contentLength; ///< Length of content part. + size_t length; ///< Total length of packet. psycPacketFlag flag; } psycPacket; diff --git a/test/Makefile b/test/Makefile index 9e59256..3574c63 100644 --- a/test/Makefile +++ b/test/Makefile @@ -16,10 +16,10 @@ nettest: for f in packets/full-* packets/error-*; do echo ">> $$f"; cat $$f | nc localhost $(PORT); done nettestp1: - (for f in packets/part-1-p*; do cat $$f; done) | nc nb $(PORT) + (for f in packets/part-1-p*; do cat $$f; done) | nc localhost $(PORT) nettestp2: - (for f in packets/part-1-length-p*; do cat $$f; done) | nc nb $(PORT) + (for f in packets/part-1-length-p*; do cat $$f; done) | nc localhost $(PORT) clean: rm -f $(TARGETS) diff --git a/test/testServer.c b/test/testServer.c index 9134c25..78b9eb1 100644 --- a/test/testServer.c +++ b/test/testServer.c @@ -1,6 +1,8 @@ /** * libpsyc test server for packet parsing & rendering + * * based on selectserver.c from http://beej.us/guide/bgnet/ + * "The C source code presented in this document is hereby granted to the public domain, and is completely free of any license restriction." */ #include