UDP server as a kernel module

Discussion in 'Linux Networking' started by alex, Sep 4, 2006.

  1. alex

    alex Guest

    hi ... i am trying to write an UDP server as a kernel module.
    i want to use sys_select(). is it possible to use sys_select in kernel
    level.plz help me ......

    the actual prblm is

    i want to write a server to serve more than 1000 clients
    each bound with different port. i created sockets using 'socket'
    structure (socket *KSocket ) and bound using KSocket-> ops -> bind ()
    (port is different), i want to use sys_select (if possible) function on
    these sockets . I heard that creating threads in kernel is not good
    idea as using sys_select, so i want to create 4 or 5 threads to serve
    all the clients (sockets). can u plz help me to write this.

    thanks in advance.

    alex, Sep 4, 2006
    1. Advertisements

  2. alex

    Giovanni Guest

    What you need is to create a daemon that can be started at boot. You
    can find lots of examples in unix world.

    Giovanni, Sep 4, 2006
    1. Advertisements

  3. alex

    alex Guest

    ok .. thank you for ur suggestion ..but the actual prblm is how to
    write sys_select for udp.
    here all are different socket variables bound with different ports. can
    u plz giv me example...

    thank you.
    alex, Sep 4, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.