• AVR Freaks

Hot!WINC1500 as station with multiple servers

Author
sidprice
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2017/12/25 17:01:27
  • Location: 0
  • Status: offline
2019/10/11 16:33:53 (permalink)
0

WINC1500 as station with multiple servers

I need to add two additional servers to my device that uses the WINC1500 module. Is this possible and if so is there an example that would guide me.
Sid
#1

3 Replies Related Threads

    jtemples
    عُضْوٌ جَدِيد
    • Total Posts : 11820
    • Reward points : 0
    • Joined: 2004/02/13 12:31:19
    • Location: Southern California
    • Status: offline
    Re: WINC1500 as station with multiple servers 2019/10/11 18:57:56 (permalink)
    0
    What do you mean by "servers"? 
    #2
    sidprice
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2017/12/25 17:01:27
    • Location: 0
    • Status: offline
    Re: WINC1500 as station with multiple servers 2019/10/12 07:05:58 (permalink)
    0
    I need to use the socket API and "listen" on more than one socket for incoming connections.
     
    Having looked deeper at the socket API it looks like I have to change my socket callback method to be able to identify which connection is associated with which listening socket. I think this is possible, has anyone done this?
    #3
    aschen0866
    Super Member
    • Total Posts : 4553
    • Reward points : 0
    • Joined: 2006/01/08 22:18:32
    • Location: San Diego
    • Status: offline
    Re: WINC1500 as station with multiple servers 2019/10/12 09:08:34 (permalink)
    0
    If you want to run multiple server applications, each server would have to listen on a different port (not a socket). For example, you can have a HTTP server listen on port 80 and a Telnet server listen on port 23. This is done by using the bind() API after the listen socket has been created.
    #4
    Jump to:
    © 2020 APG vNext Commercial Version 4.5