Midnight Cow / ThingerIO

Dependencies:   DHT WIZnetInterface mbed-src

Embed: (wiki syntax)

« Back to documentation index

TCPSocketConnectionArdu Class Reference

TCPSocketConnectionArdu Class Reference

TCP socket connection for compatible Arduino. More...

#include <TCPSocketConnectionArdu.h>

Public Member Functions

 TCPSocketConnectionArdu ()
 TCP socket connection.
virtual ssize_t write (const void *buf, size_t size)
 Send data to the remote host.
virtual uint8_t connected ()
 Check if the socket is connected.

Detailed Description

TCP socket connection for compatible Arduino.

Definition at line 26 of file TCPSocketConnectionArdu.h.


Constructor & Destructor Documentation

TCP socket connection.

Definition at line 31 of file TCPSocketConnectionArdu.h.


Member Function Documentation

uint8_t connected (  ) [virtual]

Check if the socket is connected.

Returns:
true if connected, false otherwise.

Definition at line 73 of file TCPSocketConnectionArdu.cpp.

ssize_t write ( const void *  buf,
size_t  size 
) [virtual]

Send data to the remote host.

Parameters:
dataThe buffer to send to the host.
lengthThe length of the buffer to send.
Returns:
the number of written bytes on success (>=0) or -1 on failure

Definition at line 31 of file TCPSocketConnectionArdu.cpp.