Dependents: SimpleLCDClock readCard2Twitter_http AnalogClock_StepperMotor_NTP ServoCamV1
Revision 2:32345cf67bf2, committed 2010-05-25
- Comitter:
- donatien
- Date:
- Tue May 25 11:58:19 2010 +0000
- Parent:
- 1:7043cc0db03c
- Child:
- 3:7fe2ff1a61a4
- Commit message:
Changed in this revision
--- a/dbg/dbg.h Mon May 24 10:48:21 2010 +0000 +++ b/dbg/dbg.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/netCfg.h Tue May 25 11:58:19 2010 +0000 @@ -0,0 +1,12 @@ +#ifndef NET_CFG_H +#define NET_TELIT_STACK 0 +#define NET_GPRS 0 +#define NET_PPP 0 +#define NET_ZG2100 0 +#define NET_ETH 0 +#define NET_USB_SERIAL 0 +#define NET_TELIT 0 +#define NET_CFG_H 1 +#define NET_USB 0 +#define NET_LWIP_STACK 0 +#endif
Binary file services.ar has changed
--- a/services/email/emailMessage.h Mon May 24 10:48:21 2010 +0000 +++ b/services/email/emailMessage.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
--- a/services/email/smtp/smtpClient.h Mon May 24 10:48:21 2010 +0000 +++ b/services/email/smtp/smtpClient.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
--- a/services/http/client/HttpClient.h Mon May 24 10:48:21 2010 +0000 +++ b/services/http/client/HttpClient.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -134,7 +134,7 @@ bool readHeaders(); //Called first when receiving data bool writeHeaders(); //Called to create req - int readLine(char* str, int maxLen); + int readLine(char* str, int maxLen, bool* pIncomplete = NULL); enum HTTP_METH {
--- a/services/http/client/HttpData.h Mon May 24 10:48:21 2010 +0000 +++ b/services/http/client/HttpData.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
--- a/services/http/client/data/HttpFile.h Mon May 24 10:48:21 2010 +0000 +++ b/services/http/client/data/HttpFile.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
--- a/services/http/client/data/HttpMap.h Mon May 24 10:48:21 2010 +0000 +++ b/services/http/client/data/HttpMap.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
--- a/services/http/client/data/HttpStream.h Mon May 24 10:48:21 2010 +0000 +++ b/services/http/client/data/HttpStream.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
--- a/services/http/client/data/HttpText.h Mon May 24 10:48:21 2010 +0000 +++ b/services/http/client/data/HttpText.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -27,10 +27,12 @@ #include "../HttpData.h" #include "mbed.h" +#define DEFAULT_MAX_MEM_ALLOC 512 //Avoid out-of-memory problems + class HttpText : public HttpData //Simple Text I/O { public: - HttpText(const string& encoding = "text/html"); + HttpText(const string& encoding = "text/html", int maxSize = DEFAULT_MAX_MEM_ALLOC); virtual ~HttpText(); const char* gets() const; @@ -55,6 +57,7 @@ private: string m_buf; string m_encoding; + int m_maxSize; }; #endif
--- a/services/http/server/HttpRequestDispatcher.h Mon May 24 10:48:21 2010 +0000 +++ b/services/http/server/HttpRequestDispatcher.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
--- a/services/http/server/HttpRequestHandler.h Mon May 24 10:48:21 2010 +0000 +++ b/services/http/server/HttpRequestHandler.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
--- a/services/http/server/HttpServer.h Mon May 24 10:48:21 2010 +0000 +++ b/services/http/server/HttpServer.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
--- a/services/http/server/impl/FSHandler.h Mon May 24 10:48:21 2010 +0000 +++ b/services/http/server/impl/FSHandler.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
--- a/services/http/server/impl/RpcHandler.h Mon May 24 10:48:21 2010 +0000 +++ b/services/http/server/impl/RpcHandler.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
--- a/services/http/server/impl/SimpleHandler.h Mon May 24 10:48:21 2010 +0000 +++ b/services/http/server/impl/SimpleHandler.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
--- a/services/http/util/base64.h Mon May 24 10:48:21 2010 +0000 +++ b/services/http/util/base64.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
--- a/services/http/util/url.h Mon May 24 10:48:21 2010 +0000 +++ b/services/http/util/url.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
--- a/services/ntp/NtpClient.h Mon May 24 10:48:21 2010 +0000 +++ b/services/ntp/NtpClient.h Tue May 25 11:58:19 2010 +0000 @@ -1,6 +1,6 @@ /* -Copyright (c) 2010 Donatien Garnier (donatiengar [dot] gmail [dot] com) +Copyright (c) 2010 Donatien Garnier (donatiengar [at] gmail [dot] com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -52,7 +52,6 @@ NtpResult setTime(const Host& host); //Blocking NtpResult setTime(const Host& host, void (*pMethod)(NtpResult)); //Non blocking template<class T> - //Linker bug : Must be defined here :( NtpResult setTime(const Host& host, T* pItem, void (T::*pMethod)(NtpResult)) //Non blocking { setOnResult(pItem, pMethod); @@ -65,7 +64,6 @@ void setOnResult( void (*pMethod)(NtpResult) ); class CDummy; template<class T> - //Linker bug : Must be defined here :( void setOnResult( T* pItem, void (T::*pMethod)(NtpResult) ) { m_pCbItem = (CDummy*) pItem;