Hi Everyone!
This forum is slowly withering away and I hope I can still catch someone knowledgeable about this subject. When programming a Socket for the ESP there are so far about two things that are on my radar when I'm coding the Data Received function.
1: Which client sent the data
It seems the Function that receives the data doesn't directly pass a Parameter of which one of the many clients could have sent the data but I am currently Identifying them by their Remote port that way it's unique and when the socket closes I wipe the record from memory.
2: Data can come Fragmented
This was my most recent issue when receiving a file being sent from a web browser.
After keeping these two in mind, it seems my Data receive function should really be Dynamically allocating Buffers one for each client to store their independent data in and when the content length is matched then process the information at that point. Does anyone have any thoughts on how to properly address this workflow?
High Level Logic of an HTTP Server on 8266
-
- Posts: 142
- Joined: Sat Apr 01, 2017 1:21 am
- Contact:
Who is online
Users browsing this forum: No registered users and 14 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.