Skip to content

Commit 0c26ece

Browse files
committed
Simple simulation tests without TLS
1 parent fbcbc60 commit 0c26ece

File tree

7 files changed

+378
-247
lines changed

7 files changed

+378
-247
lines changed

UnitTest1/unittest1.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,6 +1947,23 @@ namespace UnitTest1
19471947
Assert::AreEqual(ret, 0);
19481948
}
19491949

1950+
TEST_METHOD(qmux_loop)
1951+
{
1952+
int ret = qmux_loop_test();
1953+
Assert::AreEqual(ret, 0);
1954+
}
1955+
1956+
TEST_METHOD(qmux_loop_delay)
1957+
{
1958+
int ret = qmux_loop_delay_test();
1959+
Assert::AreEqual(ret, 0);
1960+
}
1961+
1962+
TEST_METHOD(qmux_loop_idle)
1963+
{
1964+
int ret = qmux_loop_idle_test();
1965+
Assert::AreEqual(ret, 0);
1966+
}
19501967
TEST_METHOD(perflog)
19511968
{
19521969
int ret = perflog_test();

picoquic/picoquic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ void picoquic_default_quality_update(picoquic_quic_t* quic, uint64_t pacing_rate
11631163
* that was created.
11641164
*/
11651165

1166-
typedef void (*picoquic_create_socket_fn)(void* create_socket_ctx,
1166+
typedef void* (*picoquic_create_socket_fn)(void* create_socket_ctx,
11671167
int af, int type, int protocol,
11681168
struct sockaddr* addr_local, struct sockaddr* addr_remote, int interface_index);
11691169

picoquic/picoquic_internal.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,10 @@ typedef struct st_picoquic_quic_t {
701701
/* Creation of additional socket, if authorized by packet loop. */
702702
picoquic_create_socket_fn create_socket_fn;
703703
void* create_socket_ctx;
704+
/* Handling of QMux*/
705+
picoquic_cnx_t* qmux_pending_first;
706+
picoquic_cnx_t* qmux_pending_last;
707+
picohash_table* qmux_socket_id_table;
704708

705709
/* Logging APIS */
706710
void* F_log;
@@ -1400,6 +1404,8 @@ typedef struct st_picoquic_cnx_t {
14001404
picoquic_ack_context_t ack_ctx[picoquic_nb_packet_context];
14011405
/* Sequence number of the next observed address frame */
14021406
uint64_t observed_number;
1407+
/* Handling of qmux queues */
1408+
picoquic_cnx_t* qmux_pending_next;
14031409
/* Handling of QMUX socket */
14041410
void* qmux_socket_id;
14051411
picohash_item registered_socket_id_item;

0 commit comments

Comments
 (0)