If I understood correctly, you need to receive/ send data from/ to several different machines.
Use socket programming... UDP will surely work. I am not sure about number of simultaneous TCP...
Type: Posts; User: vkaushal21
If I understood correctly, you need to receive/ send data from/ to several different machines.
Use socket programming... UDP will surely work. I am not sure about number of simultaneous TCP...
I am not sure, but you can look for OpenMP
OpenMP is for multi-processor systems support.
I need to find out stack of main function ...
Like while we create a thread, we have stack base and stack size...
So if I assume my main is also a thread in itself, It will have some stack.
...
When I use \w to set my prompt in bashrc (using ubuntu, if it makes a difference)
it shows prompt as
~/sources
vivek-laptop:vivek
while i want it to be like
/home/vivek/sources
I am injecting packets using sendto
and receiving packets using recvfrom
Is there a way to read the UDP headers which are used by the lower layer.
I don't really want to go into raw sockets...
I am writing a socket ...
When I call accept function, it keeps on waiting for the new connection.
I want to know, can I call accept function in some manner so that it doesn't completely hang...
strncpy(buffer, "Load_buffer", sizeof(buffer));
Here sizeof statement is wrong. You need to give size of "Load_buffer" not of buffer pointer. as you might be running on 32 bit system, ...
Can you please give reason for why for typedef definition is the only declaration allowed?
Isn't typedef just for the compiler to replace with original declaration (sort of macro type...
I just joined this forum yesterday ... didn't read homework policy earlier ..
thanks for the info.. i will mind that in future :)
No idea about what you are aiming at from 0123456789, anyways I can give you the pre and posorder traversal of the tree you have drawn
POST order : - 0214367985
PRE order : - 5310248769
How...
yes, I agree with you two... const char * is a better option...
Why do you want to use *char = "string" ??
This way as you said, you are creating a read only string. So leave apart pointer arthimetic and changing '\0' character, you won't be able to change...