#include <W3AIBO.h>
Public Member Functions | |
W3AIBO () | |
virtual | ~W3AIBO () |
virtual OStatus | DoInit (const OSystemEvent &event) |
virtual OStatus | DoStart (const OSystemEvent &event) |
virtual OStatus | DoStop (const OSystemEvent &event) |
virtual OStatus | DoDestroy (const OSystemEvent &event) |
void | NotifyImage (const ONotifyEvent &event) |
void | ListenCont (ANTENVMSG msg) |
void | ReceiveCont (ANTENVMSG msg) |
void | SendHeaderCont (ANTENVMSG msg) |
void | SendImageCont (ANTENVMSG msg) |
void | SendErrorCont (ANTENVMSG msg) |
void | CloseCont (ANTENVMSG msg) |
Public Attributes | |
OSubject * | subject [numOfSubject] |
OObserver * | observer [numOfObserver] |
Private Member Functions | |
OStatus | InitTCPConnection (int index) |
OStatus | Listen (int index) |
OStatus | Receive (int index) |
OStatus | SendHeader (int index) |
OStatus | SendImage (int index) |
OStatus | SendError (int index) |
OStatus | Close (int index) |
void | ProcessHTTPRequest (int index) |
void | HTTPResponse (int index, HTTPStatus st) |
Private Attributes | |
antStackRef | ipstackRef |
HTTP | http |
JPEGEncoder | jpegEncoder |
TCPConnection | connection [W3AIBO_CONNECTION_MAX] |
Static Private Attributes | |
const int | W3AIBO_CONNECTION_MAX = JPEGEncoder::NUM_JPEG_BUF |
const size_t | W3AIBO_HTTP_BUFSIZE = 4096 |
|
|
|
|
|
Definition at line 429 of file W3AIBO.cc. References connection, CONNECTION_CLOSED, ipstackRef, and TCPConnection::state. Referenced by ListenCont(), ReceiveCont(), SendErrorCont(), SendHeaderCont(), and SendImageCont(). |
|
Definition at line 448 of file W3AIBO.cc. References connection, Listen(), and TCPConnection::state. |
|
|
|
Definition at line 29 of file W3AIBO.cc. References JPEGEncoder::Init(), InitTCPConnection(), ipstackRef, and jpegEncoder. |
|
Definition at line 52 of file W3AIBO.cc. References Listen(). |
|
|
|
Definition at line 521 of file W3AIBO.cc. References connection, HTTP::HeaderField(), http, HTTP_CONTENT_TYPE, HTTP_HEADER_END, HTTP_SERVER, TCPConnection::sendData, SendError(), SendHeader(), TCPConnection::sendSize, and HTTP::Status(). Referenced by NotifyImage(), and ProcessHTTPRequest(). |
|
|
Definition at line 176 of file W3AIBO.cc. References connection, TCPConnection::endpoint, IP_ADDR_ANY(), ipstackRef, TCPConnection::state, W3AIBO_HTTP_BUFSIZE, and W3AIBO_PORT. Referenced by CloseCont(), and DoStart(). |
|
Definition at line 213 of file W3AIBO.cc. References Close(), connection, Receive(), and TCPConnection::state. |
|
Definition at line 153 of file W3AIBO.cc. References connection, JPEGEncoder::GetJPEG(), HTTP_OK, HTTPResponse(), TCPConnection::imageRequested, jpegEncoder, and observer. |
|
Definition at line 460 of file W3AIBO.cc. References connection, http, HTTP_BAD_REQUEST, HTTP_NOT_FOUND, HTTP_NOT_IMPLEMENTED, HTTPResponse(), TCPConnection::imageRequested, TCPConnection::layer, HTTP::Parse(), TCPConnection::reconstruction, W3AIBO_DEFAULT_URI, W3AIBO_LAYER_H_URI, W3AIBO_LAYER_HR_URI, W3AIBO_LAYER_L_URI, W3AIBO_LAYER_LR_URI, W3AIBO_LAYER_M_URI, and W3AIBO_LAYER_MR_URI. Referenced by ReceiveCont(). |
|
Definition at line 234 of file W3AIBO.cc. References connection, CONNECTION_CONNECTED, TCPConnection::httpReqLen, ipstackRef, TCPConnection::recvSize, and TCPConnection::state. Referenced by ListenCont(), and ReceiveCont(). |
|
Definition at line 256 of file W3AIBO.cc. References Close(), connection, TCPConnection::httpReq, TCPConnection::httpReqLen, memcpy(), ProcessHTTPRequest(), and Receive(). |
|
Definition at line 386 of file W3AIBO.cc. References connection, ipstackRef, TCPConnection::sendSize, and TCPConnection::state. Referenced by HTTPResponse(). |
|
Definition at line 409 of file W3AIBO.cc. References Close(), connection, and TCPConnection::state. |
|
Definition at line 298 of file W3AIBO.cc. References connection, ipstackRef, TCPConnection::sendSize, and TCPConnection::state. Referenced by HTTPResponse(). |
|
Definition at line 321 of file W3AIBO.cc. References Close(), connection, SendImage(), and TCPConnection::state. |
|
Definition at line 341 of file W3AIBO.cc. References connection, ipstackRef, and TCPConnection::state. Referenced by SendHeaderCont(). |
|
Definition at line 364 of file W3AIBO.cc. References Close(), connection, JPEGEncoder::FreeJPEG(), jpegEncoder, and TCPConnection::state. |
|
Definition at line 64 of file W3AIBO.h. Referenced by Close(), CloseCont(), HTTPResponse(), InitTCPConnection(), Listen(), ListenCont(), NotifyImage(), ProcessHTTPRequest(), Receive(), ReceiveCont(), SendError(), SendErrorCont(), SendHeader(), SendHeaderCont(), SendImage(), and SendImageCont(). |
|
Definition at line 62 of file W3AIBO.h. Referenced by HTTPResponse(), and ProcessHTTPRequest(). |
|
Definition at line 61 of file W3AIBO.h. Referenced by Close(), DoInit(), InitTCPConnection(), Listen(), Receive(), SendError(), SendHeader(), and SendImage(). |
|
Definition at line 63 of file W3AIBO.h. Referenced by DoInit(), NotifyImage(), and SendImageCont(). |
|
Definition at line 30 of file W3AIBO.h. Referenced by NotifyImage(). |
|
|
|
|
|
Definition at line 48 of file W3AIBO.h. Referenced by InitTCPConnection(), and Listen(). |