uses pushing box to write to google spreadsheets

Dependencies:   GSM_PUSHING_BOX_STATE_MACHINE MBed_Adafruit-GPS-Library SDFileSystem mbed

Fork of DCS by DCS_TEAM

Committer:
DeWayneDennis
Date:
Wed Oct 21 19:46:32 2015 +0000
Revision:
20:84661ac75715
Parent:
19:404594768414
a

Who changed what in which revision?

UserRevisionLine numberNew contents of line
DeWayneDennis 19:404594768414 1 /*
DeWayneDennis 19:404594768414 2 TCPSocketServer.h
DeWayneDennis 19:404594768414 3 2014 Copyright (c) Seeed Technology Inc. All right reserved.
DeWayneDennis 19:404594768414 4
DeWayneDennis 19:404594768414 5 Author:lawliet zou(lawliet.zou@gmail.com)
DeWayneDennis 19:404594768414 6 2014-2-24
DeWayneDennis 19:404594768414 7
DeWayneDennis 19:404594768414 8 This library is free software; you can redistribute it and/or
DeWayneDennis 19:404594768414 9 modify it under the terms of the GNU Lesser General Public
DeWayneDennis 19:404594768414 10 License as published by the Free Software Foundation; either
DeWayneDennis 19:404594768414 11 version 2.1 of the License, or (at your option) any later version.
DeWayneDennis 19:404594768414 12
DeWayneDennis 19:404594768414 13 This library is distributed in the hope that it will be useful,
DeWayneDennis 19:404594768414 14 but WITHOUT ANY WARRANTY; without even the implied warranty of
DeWayneDennis 19:404594768414 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
DeWayneDennis 19:404594768414 16 Lesser General Public License for more details.
DeWayneDennis 19:404594768414 17
DeWayneDennis 19:404594768414 18 You should have received a copy of the GNU Lesser General Public
DeWayneDennis 19:404594768414 19 License along with this library; if not, write to the Free Software
DeWayneDennis 19:404594768414 20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
DeWayneDennis 19:404594768414 21 */
DeWayneDennis 19:404594768414 22 #ifndef TCPSOCKETSERVER_H
DeWayneDennis 19:404594768414 23 #define TCPSOCKETSERVER_H
DeWayneDennis 19:404594768414 24
DeWayneDennis 19:404594768414 25 #include "Socket/Socket.h"
DeWayneDennis 19:404594768414 26 #include "TCPSocketConnection.h"
DeWayneDennis 19:404594768414 27
DeWayneDennis 19:404594768414 28 /** TCP Server.
DeWayneDennis 19:404594768414 29 */
DeWayneDennis 19:404594768414 30 class TCPSocketServer : public Socket
DeWayneDennis 19:404594768414 31 {
DeWayneDennis 19:404594768414 32 public:
DeWayneDennis 19:404594768414 33 /** Instantiate a TCP Server.
DeWayneDennis 19:404594768414 34 */
DeWayneDennis 19:404594768414 35 TCPSocketServer();
DeWayneDennis 19:404594768414 36
DeWayneDennis 19:404594768414 37 /** Bind a socket to a specific port.
DeWayneDennis 19:404594768414 38 \param port The port to listen for incoming connections on.
DeWayneDennis 19:404594768414 39 \return 0 on success, -1 on failure.
DeWayneDennis 19:404594768414 40 */
DeWayneDennis 19:404594768414 41 int bind(int port);
DeWayneDennis 19:404594768414 42
DeWayneDennis 19:404594768414 43 /** Start listening for incoming connections.
DeWayneDennis 19:404594768414 44 \param backlog number of pending connections that can be queued up at any
DeWayneDennis 19:404594768414 45 one time [Default: 1].
DeWayneDennis 19:404594768414 46 \return 0 on success, -1 on failure.
DeWayneDennis 19:404594768414 47 */
DeWayneDennis 19:404594768414 48 int listen(int backlog=1);
DeWayneDennis 19:404594768414 49
DeWayneDennis 19:404594768414 50 /** Accept a new connection.
DeWayneDennis 19:404594768414 51 \param connection A TCPSocketConnection instance that will handle the incoming connection.
DeWayneDennis 19:404594768414 52 \return 0 on success, -1 on failure.
DeWayneDennis 19:404594768414 53 */
DeWayneDennis 19:404594768414 54 int accept(TCPSocketConnection& connection);
DeWayneDennis 19:404594768414 55 };
DeWayneDennis 19:404594768414 56
DeWayneDennis 19:404594768414 57 #endif