!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/netdata/externaldeps/libwebsockets/include/libwebsockets/abstract/transports/   drwxrwxr-x
Free 13.04 GB of 57.97 GB (22.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     unit-test.h (2.38 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * libwebsockets include/libwebsockets/abstract/transports/unit-test.c
 *
 * Copyright (C) 2019 Andy Green <andy@warmcat.com>
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation:
 *  version 2.1 of the License.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *  MA  02110-1301  USA
 *
 * This is an abstract transport useful for unit testing abstract protocols.
 *
 * Instead of passing data anywhere, you give the transport a list of packets
 * to deliver and packets you expect back from the abstract protocol it's
 * bound to.
 */

enum {
    LWS_AUT_EXPECT_TEST_END                    = (1 << 0),
    LWS_AUT_EXPECT_LOCAL_CLOSE                = (1 << 1),
    LWS_AUT_EXPECT_DO_REMOTE_CLOSE                = (1 << 2),
    LWS_AUT_EXPECT_TX /* expect this as tx from protocol */    = (1 << 3),
    LWS_AUT_EXPECT_RX /* present this as rx to protocol */    = (1 << 4),
    LWS_AUT_EXPECT_SHOULD_FAIL                = (1 << 5),
    LWS_AUT_EXPECT_SHOULD_TIMEOUT                = (1 << 6),
};

typedef enum {
    LPE_CONTINUE,
    LPE_SUCCEEDED,
    LPE_FAILED,
    LPE_FAILED_UNEXPECTED_TIMEOUT,
    LPE_FAILED_UNEXPECTED_PASS,
    LPE_FAILED_UNEXPECTED_CLOSE,
    LPE_SKIPPED,
    LPE_CLOSING
} lws_unit_test_packet_disposition;

typedef int (*lws_unit_test_packet_test_cb)(const void *cb_user, int disposition);
typedef int (*lws_unit_test_packet_cb)(lws_abs_t *instance);

/* each step in the unit test */

typedef struct lws_unit_test_packet {
    void                *buffer;
    lws_unit_test_packet_cb        pre;
    size_t                len;

    uint32_t            flags;
} lws_unit_test_packet_t;

/* each unit test */

typedef struct lws_unit_test {
    const char *        name; /* NULL indicates end of test array */
    lws_unit_test_packet_t *        expect_array;
    int            max_secs;
} lws_unit_test_t;

enum {
    LTMI_PEER_V_EXPECT_TEST = LTMI_TRANSPORT_BASE,    /* u.value */
    LTMI_PEER_V_EXPECT_RESULT_CB,            /* u.value */
    LTMI_PEER_V_EXPECT_RESULT_CB_ARG,        /* u.value */
};

LWS_VISIBLE LWS_EXTERN const char *
lws_unit_test_result_name(int in);


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0051 ]--