
Dependencies: EthernetNetIf mbed NetServicesMin
message.h@0:be9ccd3a915d, 2011-09-21 (annotated)
- Committer:
- alpsayin
- Date:
- Wed Sep 21 15:54:53 2011 +0000
- Revision:
- 0:be9ccd3a915d
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
alpsayin | 0:be9ccd3a915d | 1 | |
alpsayin | 0:be9ccd3a915d | 2 | #include "mbed.h" |
alpsayin | 0:be9ccd3a915d | 3 | #include "TCPSocket.h" |
alpsayin | 0:be9ccd3a915d | 4 | |
alpsayin | 0:be9ccd3a915d | 5 | #define TYPE_GET 1 |
alpsayin | 0:be9ccd3a915d | 6 | #define TYPE_POST 2 |
alpsayin | 0:be9ccd3a915d | 7 | #define TYPE_RESPONSE 3 |
alpsayin | 0:be9ccd3a915d | 8 | |
alpsayin | 0:be9ccd3a915d | 9 | #define BUFFER_LENGTH 256 |
alpsayin | 0:be9ccd3a915d | 10 | |
alpsayin | 0:be9ccd3a915d | 11 | #define messageHandlerFunction(X) void X(TCPSocket* pConnectedSocket, char* msg, int len) |
alpsayin | 0:be9ccd3a915d | 12 | |
alpsayin | 0:be9ccd3a915d | 13 | void defaultMessageHandler(TCPSocket* pConnectedSocket, char* msg, int len); |
alpsayin | 0:be9ccd3a915d | 14 | void vSendMessage(TCPSocket* pConnectedSocket, char* msg, int len); |
alpsayin | 0:be9ccd3a915d | 15 | void vGetMessage(TCPSocket* pConnected); |
alpsayin | 0:be9ccd3a915d | 16 | int iGetLine(TCPSocket* pConnectedSocket, char* buf, int len); |
alpsayin | 0:be9ccd3a915d | 17 | void vSetMessageHandler(int messageType, void (*messageHandler)(TCPSocket*, char*, int)); |