Jump to content

Search the Community

Showing results for tags 'ethernetserver'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 2 results

  1. I have TM4C129XL board and i prepared an Energia sketch and debugging it on Code Composer Studio. I'm using ethernet server and a client is making requests in approximately every 2 seconds. After server sends response to client i'm calling client.stop() method. This is working fine but after apprx. 3 or 4 days ethernet server just stops accepting new clients. When i debug the code i saw that in EthernetServer.cpp => do_accept() function for (i = 0; i < MAX_CLIENTS; i++) { if (server->clients[i].port == 0) break; } if (i >= MAX_CLIENTS) { return ERR_MEM; } It doesnt find a client with it's port set to '0'. It returns ERR_MEM. I don't understand why this is happening. Because as i said when ethernet server accepts a new client and sends it's response i immediately call client.stop() function. (MAX_CLIENTS = 8) My simplified code: loop() { delay(200); client = server.available(); delay(100); if (client) { if (client.available() > 0) { ... for(i =0;i<MaxpacketLength;i++) { if (!client.connected()) { break; } receiveByte = client.read(); //It adds bytes received to a buffer here. After it finds a specific command it sends a response to client here. break; } client.stop(); } } }
×
×
  • Create New...