Customized
Dependents: MurataTypeYD_RPC_Sample
Fork of SNICInterface_mod by
Socket/TCPSocketServer.cpp@26:f2e1030964e4, 2014-03-28 (annotated)
- Committer:
- kishino
- Date:
- Fri Mar 28 03:03:40 2014 +0000
- Revision:
- 26:f2e1030964e4
- Parent:
- 20:dd736d328de6
- Child:
- 29:6a0ba999597d
Created a virtual destructor
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kishino | 20:dd736d328de6 | 1 | /* Copyright (C) 2012 mbed.org, MIT License |
kishino | 20:dd736d328de6 | 2 | * |
kishino | 20:dd736d328de6 | 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software |
kishino | 20:dd736d328de6 | 4 | * and associated documentation files (the "Software"), to deal in the Software without restriction, |
kishino | 20:dd736d328de6 | 5 | * including without limitation the rights to use, copy, modify, merge, publish, distribute, |
kishino | 20:dd736d328de6 | 6 | * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is |
kishino | 20:dd736d328de6 | 7 | * furnished to do so, subject to the following conditions: |
kishino | 20:dd736d328de6 | 8 | * |
kishino | 20:dd736d328de6 | 9 | * The above copyright notice and this permission notice shall be included in all copies or |
kishino | 20:dd736d328de6 | 10 | * substantial portions of the Software. |
kishino | 20:dd736d328de6 | 11 | * |
kishino | 20:dd736d328de6 | 12 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING |
kishino | 20:dd736d328de6 | 13 | * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
kishino | 20:dd736d328de6 | 14 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
kishino | 20:dd736d328de6 | 15 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
kishino | 20:dd736d328de6 | 16 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
kishino | 20:dd736d328de6 | 17 | */ |
kishino | 20:dd736d328de6 | 18 | /******************* Murata Manufacturing Co.,Ltd. 2014 ***************** |
kishino | 20:dd736d328de6 | 19 | * |
kishino | 20:dd736d328de6 | 20 | * Filename: TCPSocketServer.cpp |
kishino | 20:dd736d328de6 | 21 | * |
kishino | 20:dd736d328de6 | 22 | * Purpose: This module has implementation of TCP server. |
kishino | 20:dd736d328de6 | 23 | * |
kishino | 20:dd736d328de6 | 24 | * $Author: kishino $ |
kishino | 20:dd736d328de6 | 25 | * |
kishino | 20:dd736d328de6 | 26 | * $Date: 2014/03/26 $ |
kishino | 20:dd736d328de6 | 27 | * |
kishino | 20:dd736d328de6 | 28 | * $Revision: 0.0.0.1 $ |
kishino | 20:dd736d328de6 | 29 | * ***********************************************************************/ |
kishino | 20:dd736d328de6 | 30 | #include "TCPSocketServer.h" |
kishino | 20:dd736d328de6 | 31 | |
kishino | 20:dd736d328de6 | 32 | #include <cstring> |
kishino | 20:dd736d328de6 | 33 | |
kishino | 20:dd736d328de6 | 34 | using namespace murata_wifi; |
kishino | 20:dd736d328de6 | 35 | |
kishino | 20:dd736d328de6 | 36 | TCPSocketServer::TCPSocketServer() |
kishino | 20:dd736d328de6 | 37 | { |
kishino | 20:dd736d328de6 | 38 | } |
kishino | 20:dd736d328de6 | 39 | |
kishino | 26:f2e1030964e4 | 40 | TCPSocketServer::~TCPSocketServer() |
kishino | 26:f2e1030964e4 | 41 | { |
kishino | 26:f2e1030964e4 | 42 | } |
kishino | 26:f2e1030964e4 | 43 | |
kishino | 20:dd736d328de6 | 44 | int TCPSocketServer::bind(int port) |
kishino | 20:dd736d328de6 | 45 | { |
kishino | 20:dd736d328de6 | 46 | return 0; |
kishino | 20:dd736d328de6 | 47 | } |
kishino | 20:dd736d328de6 | 48 | |
kishino | 20:dd736d328de6 | 49 | int TCPSocketServer::listen(int max) |
kishino | 20:dd736d328de6 | 50 | { |
kishino | 20:dd736d328de6 | 51 | return 0; |
kishino | 20:dd736d328de6 | 52 | } |
kishino | 20:dd736d328de6 | 53 | |
kishino | 20:dd736d328de6 | 54 | int TCPSocketServer::accept(TCPSocketConnection& connection) |
kishino | 20:dd736d328de6 | 55 | { |
kishino | 20:dd736d328de6 | 56 | return 0; |
kishino | 20:dd736d328de6 | 57 | } |