Jussi
:)
Anonymous
Jussi
I dont need to know how kernel buffers data, i dont need to know which syscalls are called when i read data from a socket
Jussi
I dont need to know how the network layer works in kernel, nor how the driver works
Anonymous
Anonymous
Anonymous
simple
Jussi
You clearly are a newbie in C
Jussi
What thing?
Jussi
Simple socket server?
Anonymous
Jussi
Well
Anonymous
why you would even do it in C
Jussi
For example for very simple IPC (inter process communication)
Jussi
Inside the same PC
Jussi
So you can transfer data between programs
Anonymous
Message Queues?
Anonymous
That's better in C
Jussi
But if the other program is not written in C
Jussi
The client I mean
Anonymous
You mean for IPC or MQ?
Jussi
Either
Jussi
Is there a mq library for python?
Jussi
For example
Anonymous
so don't write programs that segfault
other thing , its not portable nor have enough apis/libs to replace a langauge like python , and not sure about perl , didn't use it before
Anonymous
Ah, well MQ just does message passing so it's just a case of having a socket and a matching API
Jussi
And IIRC MQs have some synchro problems if the amount of data is big
Anonymous
depends which one you use
Jussi
Was it only for sysV?
Anonymous
Apache's ActiveMQ is pretty good, as is RabbitMQ
Anonymous
but I use ZeroMQ which is a bit less capable but much lighter
Jussi
Aah you are talking something else than POSIX/unix
Anonymous
wait
Anonymous
is MQs like the dbus ?
Jussi
MessageQueue
Jussi
I thought you meant posix/sysV message queue
Anonymous
Oh, no lol
Anonymous
Jussi
What exact problem? Maybe in some newer apis, and I might even remember wrong
Jussi
Yeah but I just remembered that there was some limit, and after that you couldn't be sure about the actual order of the messages anymore
Jussi
I'm not 100% sure about it now, I can check it once I get home
Anonymous
Anonymous
but in general terms if you would program in C
Anonymous
you can make your own MQ types
Anonymous
Anonymous
Dima
lol this is a masterpiece
Dima
°_°
What is int* n
°_°
?
Dima
a pointer?
Dima
int* n and int *n are the same
Dima
I prefer int* n, looks good
Dima
Anonymous
°_°
Char* n= abcd;
cout<<n;
°_°
What's the output?
Igor🇺🇦
What's abcd?
Dima
'abcd'
Dima
fits 32
Dima
wait
Dima
I thought its int
Dima
lol
Evgenii
Onur
It is possible but I think its more ambigious than
int *a, *b;
But still usually there is no need to define two pointer at the same place.
Evgenii
°_°
Can someone help me with this?
°_°
Igor🇺🇦
.
Without defining what's abcd it will not compile.
Any way you can try for yourself here: https://ideone.com/dJ4zhI
°_°
Ah
°_°
I was assuming it like a string
°_°
In a char type
°_°
Someone tells me that the output is "a"
°_°
But I can't find why