Can a C function(server program) be a UDP or TCP server?

From: "Billow Gao" <billowgy(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Can a C function(server program) be a UDP or TCP server?
Date: 2007-10-18 14:55:19
Message-ID: 677a32120710180755g77a041bbicfb4ef395cd60398@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi there,

Is it possible to write a dynamic loaded C function as an UDP or TCP server?

What we want to do it is:
Add a search function which send a UDP package to remote UDP server
and then listen to an UDP port, waiting for the result.
Ideally, we don't close the UDP server after the search query end.
So we can reuse it for next search.

Is it possible?

Thanks

Billow

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message D'Arcy J.M. Cain 2007-10-18 15:13:25 Re: Can a C function(server program) be a UDP or TCP server?
Previous Message Tom Lane 2007-10-18 14:48:02 Re: Strange error dropping foreign key