ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts  1.0
ESP8266ILI9341DisplayProject
Macros | Functions | Variables
server.c File Reference

Network test client This code receives a message and displays iit. More...

#include "user_config.h"
#include <stdint.h>
#include <stdarg.h>
#include <string.h>
#include <math.h>
#include "display/ili9341.h"
#include "network/network.h"
#include "server/server.h"

Go to the source code of this file.

Macros

#define SERVER_TIMEOUT   1
 
#define MAX_CONNS   5
 

Functions

MEMSPACE void servertest_message (window *win)
 Network receive task. More...
 
MEMSPACE void servertest_receive (void *arg, char *pdata, unsigned short len)
 Network receive task. More...
 
MEMSPACE void servertest_setup (int port)
 Setup Server Task. More...
 

Variables

static struct espconn * TCP_Server
 
uint8_t network_msg [256]
 
static received = 0
 

Detailed Description

Network test client This code receives a message and displays iit.

Copyright © 2015 Mike Gore, GPL License
You are free to use this code under the terms of GPL
please retain a copy of this notice in any code you use it in.

This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file server.c.

Macro Definition Documentation

#define MAX_CONNS   5

Definition at line 45 of file server.c.

#define SERVER_TIMEOUT   1

Definition at line 44 of file server.c.

Referenced by servertest_setup().

Function Documentation

MEMSPACE void servertest_message ( window win)

Network receive task.

Parameters
[in]*winwindow pointer
Returns
void

Definition at line 56 of file server.c.

Referenced by user_loop().

MEMSPACE void servertest_receive ( void *  arg,
char *  pdata,
unsigned short  len 
)

Network receive task.

Parameters
[in]*argnetwork callback arg
[in]*pdatadata buffer
[in]lenbuffer length
Returns
void

Definition at line 81 of file server.c.

Referenced by servertest_setup().

MEMSPACE void servertest_setup ( int  port)

Setup Server Task.

Parameters
[in]portTCP port for service Credits: ideas borrowed from David Ogilvy(MetalPhreak)
Returns
void

Definition at line 100 of file server.c.

Referenced by setup().

Variable Documentation

uint8_t network_msg[256]

Definition at line 37 of file server.c.

Referenced by servertest_message(), servertest_receive(), and servertest_setup().

received = 0
static

Definition at line 48 of file server.c.

Referenced by servertest_message(), servertest_receive(), and servertest_setup().

struct espconn* TCP_Server
static

Definition at line 36 of file server.c.

Referenced by servertest_receive(), and servertest_setup().