I think u misunderstood my question. I am not headers will read somethinh. I am saying that they will be read by the corresponding layers Example: L2 headers will be read by the Data Link Layer. L3...
Type: Posts; User: sumit180288
I think u misunderstood my question. I am not headers will read somethinh. I am saying that they will be read by the corresponding layers Example: L2 headers will be read by the Data Link Layer. L3...
We all know that a TCP socket is identified by a four tuple entry: src ip, dest ip, src port dest port
TCP does the job of Multiplexing and Demultiplexing the Data from/to differnt processes...
There are two types of scokets:
1) TCP socket: multiple sockets can be bound to a single port in this case. These are the ESTABLISHED or Active Sockets , the ones which are Exchanging the data....
Actually I think You SHOULD go for JAVA for excel file manipulation.
Java has jxl library API downloadable from internet and also it has newly launched Excel API by APACHE.
These are very...
Hello Experts,
My Doubts:
1) I have heard that Socket is an endpoint residing on the host. If so then how a socket is uniquely identified?
2) Can this endpint communicate with multiple...
Hello experts,
Can anyone give a link to nice video lecture series on C, which cover the "Advanced concepts"
Regards
I believe what u r trying to do is support multiple chat users from remote end chatting with ur chat bot.
The correct method to implement this to use Multi-threading.
- As soon as one user...
Hello experts
What is lvalue in C? I have heard about it but i m not able to understand it completely?
Regards
What is Segmentation fault and why do we get this error?
Also advise some programming practices to avoid this error..
Thanking you
@LIPGEAK
In the main() function
struct bpf_insn *bf_insn;
This is just a pointer to a structure (It can hold address of a structure), but no actual structure has been created by you yet....
@AndrewHunter
Very nice doc shared. Thank you for this... :)
The argc and argv (or whatever name we can them) are very useful when we want to use the command line parameters.
I will give an example to explain this. (Daily life example)
You must have used...
@Tater
Correctly said... But i will one more argument in support.
Every thing is an object in Java (including arrays) i.e. Memory for these objects are allocated dynamically out of heap.
Hence as...
Hello All,
I came to face some issues regarding the scope of variables.
Eg: String literal has a scope which is lifetime (entire program).
Where can i find such rules which are not commonly...
@laserlight.
Nice thoughts there. Could you please tell me a link or a reference where i can get these nice facts about the scope of a literal.
@whiteflags and @all dear members
Can u tell me the difference in the mechanisms of memory storage in case of a string literal and the one mentioned by @whiteflags i.e.
char a[] =...
Moreover the array declaration
char a[]="Sumit";
Here a also points to the string literal.
What is the difference?
@Salem. Sorry to say i didn't see the pointer version. I thought u are asking about the array version.
I am also not knowing why this verison works?
Anyone plz clear this doubt.
Regards
OK i got ur point
Can you tell me what is the difference between these two codes:
char *f()
{
char *name="Sumit";
return name;
}
char *f()
{
char buf[10];
/* ... */
return buf;
}
According to a link http:///www.lysator.liu.se/c/c-faq/c-3.html, the above...
Java is the one of the most standardized programming language today.
It is the most widely used today in industry and has very bright future..
Thanks @quzah for your quick reply.
You mean to say that the memory allocated this way is not dynamic
char name[]="Sumit";
What we call this type of memory allocation.
Moreover you mean...
This C version does not work. It returns garbage (i.e the pointer points to garbage, not to memory conatainig the desired string)
In C we know that the memory allocated locally inside a function will vanish when the function returns
char *getName()
{
char name[]="Sumit";
return name
}
Thank you very much for clearing the the things... :)