1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Remove unused rx_buffer_size argument from WebServer constructor

This commit is contained in:
Ivan Grokhotkov 2015-01-08 00:39:46 +03:00
parent 661c414c2a
commit af99a3e388
3 changed files with 4 additions and 7 deletions

View File

@ -13,9 +13,8 @@ const char* ssid = "your-ssid";
const char* password = "your-password";
// Create an instance of the server
// specify the port to listen on (first argument)
// and the receive buffer size (second argument)
WiFiServer server(80, 2048);
// specify the port to listen on as an argument
WiFiServer server(80);
void setup() {
Serial.begin(115200);

View File

@ -38,13 +38,12 @@ extern "C" {
#include "cbuf.h"
#include "include/ClientContext.h"
WiFiServer::WiFiServer(uint16_t port, size_t rx_buffer_size)
WiFiServer::WiFiServer(uint16_t port)
{
_port = port;
_pcb = 0;
_unclaimed = 0;
_discarded = 0;
_rx_buffer_size = rx_buffer_size;
}
void WiFiServer::begin()

View File

@ -37,13 +37,12 @@ class WiFiServer : public Server {
private:
uint16_t _port;
tcp_pcb* _pcb;
size_t _rx_buffer_size;
ClientContext* _unclaimed;
ClientContext* _discarded;
public:
WiFiServer(uint16_t port, size_t rx_buffer_size = 2048);
WiFiServer(uint16_t port);
WiFiClient available(uint8_t* status = NULL);
void begin();
virtual size_t write(uint8_t);