aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-08-21 14:53:21 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-08-21 18:35:20 +0300
commit9d2588d9d8f7c7956cb59151bee91c7ae306a85a (patch)
treea7aa334e650694e8946b4c1a5fce170df412f997
parent067628c6f7aa308dbe88ea54ec161e4eedfdb6c5 (diff)
downloadlibmicrohttpd-9d2588d9d8f7c7956cb59151bee91c7ae306a85a.tar.gz
libmicrohttpd-9d2588d9d8f7c7956cb59151bee91c7ae306a85a.zip
enum MHD_CONNECTION_STATE: removed numbers from doxy
The numbers were meaningless as states are switched not in order
-rw-r--r--src/microhttpd/internal.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 1524ced3..1c6ea40c 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -569,101 +569,101 @@ enum MHD_CONNECTION_STATE
569 MHD_CONNECTION_INIT = 0, 569 MHD_CONNECTION_INIT = 0,
570 570
571 /** 571 /**
572 * 1: We got the URL (and request type and version). Wait for a header line. 572 * We got the URL (and request type and version). Wait for a header line.
573 */ 573 */
574 MHD_CONNECTION_URL_RECEIVED = MHD_CONNECTION_INIT + 1, 574 MHD_CONNECTION_URL_RECEIVED = MHD_CONNECTION_INIT + 1,
575 575
576 /** 576 /**
577 * 2: We got part of a multi-line request header. Wait for the rest. 577 * We got part of a multi-line request header. Wait for the rest.
578 */ 578 */
579 MHD_CONNECTION_HEADER_PART_RECEIVED = MHD_CONNECTION_URL_RECEIVED + 1, 579 MHD_CONNECTION_HEADER_PART_RECEIVED = MHD_CONNECTION_URL_RECEIVED + 1,
580 580
581 /** 581 /**
582 * 3: We got the request headers. Process them. 582 * We got the request headers. Process them.
583 */ 583 */
584 MHD_CONNECTION_HEADERS_RECEIVED = MHD_CONNECTION_HEADER_PART_RECEIVED + 1, 584 MHD_CONNECTION_HEADERS_RECEIVED = MHD_CONNECTION_HEADER_PART_RECEIVED + 1,
585 585
586 /** 586 /**
587 * 4: We have processed the request headers. Send 100 continue. 587 * We have processed the request headers. Send 100 continue.
588 */ 588 */
589 MHD_CONNECTION_HEADERS_PROCESSED = MHD_CONNECTION_HEADERS_RECEIVED + 1, 589 MHD_CONNECTION_HEADERS_PROCESSED = MHD_CONNECTION_HEADERS_RECEIVED + 1,
590 590
591 /** 591 /**
592 * 5: We have processed the headers and need to send 100 CONTINUE. 592 * We have processed the headers and need to send 100 CONTINUE.
593 */ 593 */
594 MHD_CONNECTION_CONTINUE_SENDING = MHD_CONNECTION_HEADERS_PROCESSED + 1, 594 MHD_CONNECTION_CONTINUE_SENDING = MHD_CONNECTION_HEADERS_PROCESSED + 1,
595 595
596 /** 596 /**
597 * 6: We have sent 100 CONTINUE (or do not need to). Read the message body. 597 * We have sent 100 CONTINUE (or do not need to). Read the message body.
598 */ 598 */
599 MHD_CONNECTION_CONTINUE_SENT = MHD_CONNECTION_CONTINUE_SENDING + 1, 599 MHD_CONNECTION_CONTINUE_SENT = MHD_CONNECTION_CONTINUE_SENDING + 1,
600 600
601 /** 601 /**
602 * 7: We got the request body. Wait for a line of the footer. 602 * We got the request body. Wait for a line of the footer.
603 */ 603 */
604 MHD_CONNECTION_BODY_RECEIVED = MHD_CONNECTION_CONTINUE_SENT + 1, 604 MHD_CONNECTION_BODY_RECEIVED = MHD_CONNECTION_CONTINUE_SENT + 1,
605 605
606 /** 606 /**
607 * 8: We got part of a line of the footer. Wait for the 607 * We got part of a line of the footer. Wait for the
608 * rest. 608 * rest.
609 */ 609 */
610 MHD_CONNECTION_FOOTER_PART_RECEIVED = MHD_CONNECTION_BODY_RECEIVED + 1, 610 MHD_CONNECTION_FOOTER_PART_RECEIVED = MHD_CONNECTION_BODY_RECEIVED + 1,
611 611
612 /** 612 /**
613 * 9: We received the entire footer. Wait for a response to be queued 613 * We received the entire footer. Wait for a response to be queued
614 * and prepare the response headers. 614 * and prepare the response headers.
615 */ 615 */
616 MHD_CONNECTION_FOOTERS_RECEIVED = MHD_CONNECTION_FOOTER_PART_RECEIVED + 1, 616 MHD_CONNECTION_FOOTERS_RECEIVED = MHD_CONNECTION_FOOTER_PART_RECEIVED + 1,
617 617
618 /** 618 /**
619 * 10: We have prepared the response headers in the writ buffer. 619 * We have prepared the response headers in the writ buffer.
620 * Send the response headers. 620 * Send the response headers.
621 */ 621 */
622 MHD_CONNECTION_HEADERS_SENDING = MHD_CONNECTION_FOOTERS_RECEIVED + 1, 622 MHD_CONNECTION_HEADERS_SENDING = MHD_CONNECTION_FOOTERS_RECEIVED + 1,
623 623
624 /** 624 /**
625 * 11: We have sent the response headers. Get ready to send the body. 625 * We have sent the response headers. Get ready to send the body.
626 */ 626 */
627 MHD_CONNECTION_HEADERS_SENT = MHD_CONNECTION_HEADERS_SENDING + 1, 627 MHD_CONNECTION_HEADERS_SENT = MHD_CONNECTION_HEADERS_SENDING + 1,
628 628
629 /** 629 /**
630 * 12: We are ready to send a part of a non-chunked body. Send it. 630 * We are ready to send a part of a non-chunked body. Send it.
631 */ 631 */
632 MHD_CONNECTION_NORMAL_BODY_READY = MHD_CONNECTION_HEADERS_SENT + 1, 632 MHD_CONNECTION_NORMAL_BODY_READY = MHD_CONNECTION_HEADERS_SENT + 1,
633 633
634 /** 634 /**
635 * 13: We are waiting for the client to provide more 635 * We are waiting for the client to provide more
636 * data of a non-chunked body. 636 * data of a non-chunked body.
637 */ 637 */
638 MHD_CONNECTION_NORMAL_BODY_UNREADY = MHD_CONNECTION_NORMAL_BODY_READY + 1, 638 MHD_CONNECTION_NORMAL_BODY_UNREADY = MHD_CONNECTION_NORMAL_BODY_READY + 1,
639 639
640 /** 640 /**
641 * 14: We are ready to send a chunk. 641 * We are ready to send a chunk.
642 */ 642 */
643 MHD_CONNECTION_CHUNKED_BODY_READY = MHD_CONNECTION_NORMAL_BODY_UNREADY + 1, 643 MHD_CONNECTION_CHUNKED_BODY_READY = MHD_CONNECTION_NORMAL_BODY_UNREADY + 1,
644 644
645 /** 645 /**
646 * 15: We are waiting for the client to provide a chunk of the body. 646 * We are waiting for the client to provide a chunk of the body.
647 */ 647 */
648 MHD_CONNECTION_CHUNKED_BODY_UNREADY = MHD_CONNECTION_CHUNKED_BODY_READY + 1, 648 MHD_CONNECTION_CHUNKED_BODY_UNREADY = MHD_CONNECTION_CHUNKED_BODY_READY + 1,
649 649
650 /** 650 /**
651 * 16: We have sent the response body. Prepare the footers. 651 * We have sent the response body. Prepare the footers.
652 */ 652 */
653 MHD_CONNECTION_BODY_SENT = MHD_CONNECTION_CHUNKED_BODY_UNREADY + 1, 653 MHD_CONNECTION_BODY_SENT = MHD_CONNECTION_CHUNKED_BODY_UNREADY + 1,
654 654
655 /** 655 /**
656 * 17: We have prepared the response footer. Send it. 656 * We have prepared the response footer. Send it.
657 */ 657 */
658 MHD_CONNECTION_FOOTERS_SENDING = MHD_CONNECTION_BODY_SENT + 1, 658 MHD_CONNECTION_FOOTERS_SENDING = MHD_CONNECTION_BODY_SENT + 1,
659 659
660 /** 660 /**
661 * 18: We have sent the response footer. Shutdown or restart. 661 * We have sent the response footer. Shutdown or restart.
662 */ 662 */
663 MHD_CONNECTION_FOOTERS_SENT = MHD_CONNECTION_FOOTERS_SENDING + 1, 663 MHD_CONNECTION_FOOTERS_SENT = MHD_CONNECTION_FOOTERS_SENDING + 1,
664 664
665 /** 665 /**
666 * 19: This connection is to be closed. 666 * This connection is to be closed.
667 */ 667 */
668 MHD_CONNECTION_CLOSED = MHD_CONNECTION_FOOTERS_SENT + 1, 668 MHD_CONNECTION_CLOSED = MHD_CONNECTION_FOOTERS_SENT + 1,
669 669