[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 286
  • Last Modified:

UDP server

i want to implement a udp server that serves multi clients from unknown addresses.
where can i find source code for the server?
0
ischwar
Asked:
ischwar
1 Solution
 
aperdonCommented:
quite simple just do the following.

create socket(bla bla bla..)
bind socket to a local port (above 1024)

while (forever)
   received = recvfrom(s,buf,buflen,address,addresslen)
   process received buffer

there is nothing special.
if you want i can give some source code to 'listen' through normal udp and/or multicast.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now