Esempio n. 1
0
PUBLIC HttpStream *getStream()
{
    HttpStream    *stream;

    stream = mprGetThreadData(((Esp*) MPR->espService)->local);
    if (stream == 0) {
        mprLog("error esp", 0, "Stream is not defined in thread local storage.\n"
        "If using a callback, make sure you invoke espSetStream with the connection before using the ESP abbreviated API");
    }
    return stream;
}
Esempio n. 2
0
PUBLIC HttpConn *getConn()
{
    return mprGetThreadData(((Esp*) MPR->espService)->local);
}