Dependencies: EthernetNetIf mbed NetServicesMin
message.h
- Committer:
- alpsayin
- Date:
- 2011-09-21
- Revision:
- 0:be9ccd3a915d
File content as of revision 0:be9ccd3a915d:
#include "mbed.h" #include "TCPSocket.h" #define TYPE_GET 1 #define TYPE_POST 2 #define TYPE_RESPONSE 3 #define BUFFER_LENGTH 256 #define messageHandlerFunction(X) void X(TCPSocket* pConnectedSocket, char* msg, int len) void defaultMessageHandler(TCPSocket* pConnectedSocket, char* msg, int len); void vSendMessage(TCPSocket* pConnectedSocket, char* msg, int len); void vGetMessage(TCPSocket* pConnected); int iGetLine(TCPSocket* pConnectedSocket, char* buf, int len); void vSetMessageHandler(int messageType, void (*messageHandler)(TCPSocket*, char*, int));