473,658 Members | 2,628 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating socket programs as daemon

Hello,
I have UDP socket programs. I want to run server socket on
one machine and client socket on another and viceversa.
How can i create a flexibility at each system so that it will not only
listen from client socket but will also communicate to another server
socket.
For that i think it require me to make both programs daemon so that
they will run as backgroung hidden process.
How to do that on redhat linux 9 machnes with i386 arch?
Nov 14 '05 #1
2 2597

kernel.lover wrote:
Hello,
I have UDP socket programs. I want to run server socket on
one machine and client socket on another and viceversa.
How can i create a flexibility at each system so that it will not only listen from client socket but will also communicate to another server
socket.
For that i think it require me to make both programs daemon so that
they will run as backgroung hidden process.
How to do that on redhat linux 9 machnes with i386 arch?


Ah cute. A script kiddie. Dude, rootkit != hard. It's installing the
kit that is hard...

Tom

Nov 14 '05 #2
On 2 Mar 2005 18:53:52 -0800, cr**********@gm ail.com (kernel.lover)
wrote in comp.lang.c:
Hello,
I have UDP socket programs. I want to run server socket on
one machine and client socket on another and viceversa.
How can i create a flexibility at each system so that it will not only
listen from client socket but will also communicate to another server
socket.
For that i think it require me to make both programs daemon so that
they will run as backgroung hidden process.
How to do that on redhat linux 9 machnes with i386 arch?


Ask in news:comp.os.li nux.development .apps. This is a Linux issue,
not a C language one.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.l earn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Nov 14 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2095
by: John Burton | last post by:
I wrote a python program on windows which needs to listen for connections on a low numbered port which works fine on windows but on linux you need to be *root* in order to listen for connections on port numbers below 1024. I really don't want to run my program as root because that would give it unnecessary access to the whole of the system. Has anyone got any suggestion on the best way to allow my program to listen on those socket...
11
6851
by: Mike M | last post by:
Is it possible? In the parent process, I have a socket that binds, listens and then accepts new connections (which creates new sockets in the process). I want to be able to pass some of these new sockets to a spawned process. Is it possible, and if so how? Any help is much appreciated!! Mike
3
7607
by: Obi-Wan | last post by:
I'm trying to write a daemon in C that runs under (x)inetd that communicates over UDP. I'm trying to write a simple DNS server that returns the same IP for every query it receives. Things work just fine reading the request, but when I try to write(2) the response, it returns -1 with errno 89: "Destination address required". This seems to indicate the wrong setting on a socket. Here's my xinetd config paragraph: ...
0
966
by: Mike Levine | last post by:
I have a small server daemon running on a unix-like system, the socket for the server is a SOCK_DGRAM, the protocol is ETH_DISCO_P (defined by me). I want to be able to broadcast messages to this server from visual basic. The server may be running on a mchine with no IP address, but a network link. I cannot seem to set the protocol of the socket. I have defined "Private Const ETH_P_DISCO As ProtocolType = &H88AD" same as in my server...
1
2723
by: Ismail Demiralp | last post by:
Hi, I want to open a permanent socket connection to a service witch is running on the same computer. After I logged in on my php page, I start a session. After this a socket connection should be opened to a service I get data from. Now my problem is I want open only once a socket connection to the service and after this I want use on all php pages this connection. How can I transmit (or use) this one connection on all pages ?
9
9142
by: Sakagami Hiroki | last post by:
Hi, What is the easiest way to create a daemon process in Python? Google says I should call fork() and other system calls manually, but is there no os.daemon() and the like? Regards, -- Sakagami Hiroki
0
2414
by: doc | last post by:
Hi Hard to know where to post this and I don't want to double post it - please move it if you need to, I am trying to connect a Flash client socket (XML) to a php socket server (using Flash 8 and php 5). My php socket server responds correctly when I connect to it with a php client socket but I cannot connect with the flash xml client socket. Both codes are included below - they are both in the same folder on the web site and I am only...
3
3415
by: doc | last post by:
What will a flash xml client socket connect to? I have a working php TCP/IP server socket bound to a port >1023 and the flash client will not even connect to it. I can connect to it with non-xml client. Can anyone explain this to me - it has been driving me mad for weeks! Please help! Thanks
4
3022
by: bartosz.zaleski | last post by:
Hi I am running the PHP Socket Server: #!/usr/bin/php -q <?php error_reporting(E_ALL); set_time_limit(0); ob_implicit_flush();
0
8330
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8850
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8746
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8626
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6178
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2749
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.