zeromq, that you have suggested seems to me like an overkill, all i need is asynchronous io, that supports network. For example, lighttpd claim to be asynchronous, how do they achieve it?
Type: Posts; User: wirmius
zeromq, that you have suggested seems to me like an overkill, all i need is asynchronous io, that supports network. For example, lighttpd claim to be asynchronous, how do they achieve it?
https://code.google.com/p/kernel/wiki/AIOUserGuide - in the performance considerations section it says, that socket, pipes, etc are not supported, and will block if one attempts to do something with...
Hi everyone!
I would like to create SCGI server library, that would be completely based on asynchronous IO. I have been wandering around the internet for a few weeks now, but have not found suitable...
HI everyone!
For the last few days I was looking for a good tutorial on how to use GObject. But without good results. What I am looking for is well explained tutorial(I am not very familiar with...
Just wandering, will something like this work?
header
#define func(arg) func_(arg)
...
The target OS is linux of course.
The main downside in convinience I see in next function approach - good bye stack variables.
I would use the threaded method, if I didn't have goal of making it...
Hi everyone!
I am making a scgi library(yeah, I know that there lots of them already), and I have a problem. I am using libev for event based system with non blocking synchronous io. I need to...
figured it out myself - tracked declaration of sigevent, looked what macroses did I need to add, added them goes ok
including signal and sys/signal didn't work, so far I think the problem is inside aio.h file, I'm using Linux Mint 13 running 3.2.0 - 23 generic i686 kernel if it matters.
gcc -c -Wall -fpic syslog.c -std=c99 -g -L/home/botokiller/C/NServ001 -Wl,-rpath=/home/botokiller/C/NServ001 -laio_ext
In file included from aio_ext.h:4:0,
from syslog.c:4:...
Hi everyone!
I was wandering around and looking for solid vector basement for my project, when I found this: http://judy.sourceforge.net. Can Judy be a good basis for vector implementation? Is there...
So far I have no success trying to google the thing, can anyone provide some names or links to lists or something?
Hi evryone!
I don't like to reinvent a bicycle every time I write program. I heard there are extensions for standart C library, what would you recommend?
That is the point, i dont need pointer, i need it to reserve 16 bytes inside structure.
something like this:
struct mystruct {
char 0;
char 1;
...
char 14;
char 15;
Hi everyone!
I need an array inside structure, something like this:
struct mystruct {
char array[16];
}
but the way, that it doesnt give me pointer, but leaves 16 bytes free space inside...
Thanks everyone, I got it fixed.
Errno of fsync is also one strange thing:
-1 0 - Success
is output for
printf("%i %i - %s\n", fsync(rr->sock), errno, strerror(errno));
P.S. I just tried to perform send command from another...
Andurils idea about \n at the end seems to work for printf, but still no luck with send. fsync(rr->sock) shows -1, but return value of send is 4 and no errno is set. I've been programming sockets...
Hi everyone!
My problem is that i have a function containing this:
printf("text");
send(rr->sock, "text", 4, 0);
It runs in separate thread from the main function, rr->sock is...
Hi everyone!
Who is up to make a sandbox game?
P.S. for moderators: sorry, I posted here cause no one visits Jobs & Projects