1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-17 06:52:18 +01:00

Making Print::write(char *) non-virtual on WiFi lib

This commit is contained in:
mlafauci 2011-09-13 21:48:09 +02:00
parent 00b945d869
commit 20bea5fcc0
4 changed files with 0 additions and 18 deletions

View File

@ -61,17 +61,6 @@ size_t WiFiClient::write(uint8_t b) {
return 0;
}
size_t WiFiClient::write(const char *str) {
if (_sock != 255)
{
unsigned int len = strlen(str);
ServerDrv::sendData(_sock, (const uint8_t *)str, len);
while (!ServerDrv::isDataSent(_sock));
return len;
}
return 0;
}
size_t WiFiClient::write(const uint8_t *buf, size_t size) {
if (_sock != 255)
{

View File

@ -15,7 +15,6 @@ public:
virtual int connect(IPAddress ip, uint16_t port);
virtual int connect(const char *host, uint16_t port);
virtual size_t write(uint8_t);
virtual size_t write(const char *str);
virtual size_t write(const uint8_t *buf, size_t size);
virtual int available();
virtual int read();

View File

@ -51,11 +51,6 @@ void WiFiServer::write(uint8_t b)
write(&b, 1);
}
void WiFiServer::write(const char *str)
{
write((const uint8_t *)str, strlen(str));
}
void WiFiServer::write(const uint8_t *buffer, size_t size)
{
for (int sock = 0; sock < MAX_SOCK_NUM; sock++)

View File

@ -18,7 +18,6 @@ public:
WiFiClient available(uint8_t* status = NULL);
void begin();
virtual void write(uint8_t);
virtual void write(const char *str);
virtual void write(const uint8_t *buf, size_t size);
};