10 More Discussions You Might Find Interesting
1. Programming
Hello
I would like to create an application with communication between processes,
application tightly coupled, have you please an idea about an API or
a tool that allows me to generate such application?
Thank you so much (11 Replies)
Discussion started by: chercheur857
11 Replies
2. UNIX and Linux Applications
Hello everyone,
It is good to be here.
I am a newbie to Linux.Can anyone help me in designing a timer application.
The timer has to start.And after certain time interval the program should call a function continuously.It should not be in sleep mode.During the course of that time interval the... (0 Replies)
Discussion started by: Harry443
0 Replies
3. Programming
Problem
- Linux Client/Server Socket Application: Preventing Client from quitting on server crash
Hi,
I am writing a Linux socket Server and Client using TCP protocol on Ubuntu 9.04 x64.
I am having problem trying to implement a scenario where the client should keep running even when the... (2 Replies)
Discussion started by: varun.nagpaal
2 Replies
4. Programming
hello all,
I have developed a server application in C for ulinux kernel 2.6.It works very fine; creating a socket, binding it to a port, listening for incoming sockets and accepting them ,all finish without any error.
But there is a problem regarding application crash.After an intentionally... (1 Reply)
Discussion started by: Sedighzadeh
1 Replies
5. UNIX for Dummies Questions & Answers
hi,
i have a source code for 1 server and 2 clients ...but the clients are not able to send data..1 server only receives data from clients and forwards to any other client, the data is in the buffer.....please help... thank you in advance.....
/**********client1***************/
// Here Data... (1 Reply)
Discussion started by: unsweety
1 Replies
6. Linux
tcp communication application
i have an application which run in
1)
while()
{in
}
and listens for some request
When a request comes to create a file(containing some data fetch from somewhere)
but i also want to start some timer that after 10/20 min delete that file
But i don't know how... (0 Replies)
Discussion started by: tryit
0 Replies
7. Linux
helo,
i m using linux operationg system at both client and server side.
Now in my application when i use ntohl() then it will give segmentation fault.
now when i remove nothl(), then it works fine.
can u tell me why this happen.
amit (8 Replies)
Discussion started by: amitpansuria
8 Replies
8. Programming
hello,
when i execute my code server side it connects with the client and when i try to write through the server into the client the program exits. i could not understand whether it is the problem with the server or with the client.The Protocol is TCP/IP.
thanking you. (2 Replies)
Discussion started by: madfox
2 Replies
9. UNIX for Dummies Questions & Answers
If I do a netstat -a I can see all the sockets currently open, is there a way that I can tell which application is holding open these sockets ? (3 Replies)
Discussion started by: murphyboy
3 Replies
10. Programming
i have made a ftp application in socket programming which uses TCP/IP .. i have the problem runing the only problem is on the client side i take the user input for the file to be downloaded from the command promt.
write(s, argv, strlen(argv)+1); // this is how i write in client side
argv is... (1 Reply)
Discussion started by: toughguy2handle
1 Replies
iv_timer(3) ivykis programmer's manual iv_timer(3)
NAME
iv_timer_register, iv_timer_unregister, iv_timer_registered - deal with ivykis timers
SYNOPSIS
#include <iv.h>
struct iv_timer {
struct timespec expires;
void *cookie;
void (*handler)(void *);
};
void IV_TIMER_INIT(struct iv_timer *timer);
void iv_timer_register(struct iv_timer *timer);
void iv_timer_unregister(struct iv_timer *timer);
int iv_timer_registered(struct iv_timer *timer);
DESCRIPTION
The functions iv_timer_register and iv_timer_unregister register, respectively unregister, a timer with the current thread's ivykis event
loop. iv_timer_registered on a timer returns true if that timer is currently registered with ivykis.
When a timer that is registered becomes 'ready', due to the current system clock value becoming greater than or equal to the timer's
->expires member field, the callback function specified by ->handler is called in the thread that the timer was registered in, with
->cookie as its first and sole argument. When this happens, the timer is transparently unregistered.
The application is allowed to change the ->cookie and ->handler members at any time. The application is not allowed to change the
->expires member while the timer is registered.
A given struct iv_timer can only be registered in one thread at a time, and a timer can only be unregistered in the thread that it was reg-
istered from.
There is no limit on the number of timers registered at once.
See iv_examples(3) for programming examples.
SEE ALSO
ivykis(3), iv_examples(3)
ivykis 2010-08-15 iv_timer(3)