diff options
Diffstat (limited to 'src/microhttpd/response.c')
-rw-r--r-- | src/microhttpd/response.c | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c index 9336aa91..e7049a5a 100644 --- a/src/microhttpd/response.c +++ b/src/microhttpd/response.c | |||
@@ -581,35 +581,6 @@ MHD_create_response_from_buffer (size_t size, | |||
581 | 581 | ||
582 | 582 | ||
583 | /** | 583 | /** |
584 | * Handle given to the application to manage special | ||
585 | * actions relating to MHD responses that "upgrade" | ||
586 | * the HTTP protocol (i.e. to WebSockets). | ||
587 | */ | ||
588 | struct MHD_UpgradeResponseHandle | ||
589 | { | ||
590 | |||
591 | /** | ||
592 | * The connection for which this is an upgrade handle. Note that | ||
593 | * because a response may be shared over many connections, this may | ||
594 | * not be the only upgrade handle for the response of this connection. | ||
595 | */ | ||
596 | struct MHD_Connection *connection; | ||
597 | |||
598 | /** | ||
599 | * The socket we gave to the application (r/w). | ||
600 | */ | ||
601 | MHD_socket app_socket; | ||
602 | |||
603 | /** | ||
604 | * If @a app_sock was a socketpair, our end of it, otherwise | ||
605 | * #MHD_INVALID_SOCKET; (r/w). | ||
606 | */ | ||
607 | MHD_socket mhd_socket; | ||
608 | |||
609 | }; | ||
610 | |||
611 | |||
612 | /** | ||
613 | * This connection-specific callback is provided by MHD to | 584 | * This connection-specific callback is provided by MHD to |
614 | * applications (unusual) during the #MHD_UpgradeHandler. | 585 | * applications (unusual) during the #MHD_UpgradeHandler. |
615 | * It allows applications to perform 'special' actions on | 586 | * It allows applications to perform 'special' actions on |
@@ -702,7 +673,7 @@ MHD_response_execute_upgrade_ (struct MHD_Response *response, | |||
702 | connection->read_buffer_offset = 0; | 673 | connection->read_buffer_offset = 0; |
703 | response->upgrade_handler (response->upgrade_handler_cls, | 674 | response->upgrade_handler (response->upgrade_handler_cls, |
704 | connection, | 675 | connection, |
705 | connection->con_cls, | 676 | connection->client_context, |
706 | connection->read_buffer, | 677 | connection->read_buffer, |
707 | rbo, | 678 | rbo, |
708 | urh->app_socket, | 679 | urh->app_socket, |
@@ -723,6 +694,7 @@ MHD_response_execute_upgrade_ (struct MHD_Response *response, | |||
723 | connection->read_buffer_offset = 0; | 694 | connection->read_buffer_offset = 0; |
724 | response->upgrade_handler (response->upgrade_handler_cls, | 695 | response->upgrade_handler (response->upgrade_handler_cls, |
725 | connection, | 696 | connection, |
697 | connection->client_context, | ||
726 | connection->read_buffer, | 698 | connection->read_buffer, |
727 | rbo, | 699 | rbo, |
728 | connection->socket_fd, | 700 | connection->socket_fd, |