mylinuxlearnings.blogspot.com
LINUX LEARNINGS: Vi Adding at begining of Line
http://mylinuxlearnings.blogspot.com/2010/09/vi-adding-at-begining-of-line.html
This Blog is for LInux C Developers. Tuesday, September 28, 2010. Vi Adding at begining of Line. For Snmp MIB files to comment many lines is a challenge as we need to insert - at each line. Global Insertion at begining each line denotes begining of line. Global Removal from begining of each line. If you have line nos to change lets say from 209 to 461 both including. 209, 461 s! 209, 461 s! Posted by Amit K Sharma (xamitx). Subscribe to: Post Comments (Atom). Links And My blogs. Amit K Sharma (xamitx).
bitreader.blogspot.com
C Learnings: September 2008
http://bitreader.blogspot.com/2008_09_01_archive.html
This blog is for those who love C programing. Tuesday, September 9, 2008. Http:/ www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf. Posted by Amit K Sharma (xamitx). Subscribe to: Posts (Atom). Good c stuff form Gowri my friend. Enter your search terms. Only search Amit's Blog. Welcome to c coders world. Amit K Sharma (xamitx). View my complete profile. Provided by website-hit-counters.com.
myinterviewsawaals.blogspot.com
Some questions for Interview purpose: Non Blocking Connect with Timeout
http://myinterviewsawaals.blogspot.com/2012/08/non-blocking-connect-with-timeout.html
Some questions for Interview purpose. Monday, August 13, 2012. Non Blocking Connect with Timeout. If there is no response retries will be done on interval which keeps increasing for minutes . If we need to return quicker connect should be done as nonblocking and time can be set for how long wait for SYN ACK from Server. Fd set fdset;. Struct timeval tv;. Int flags ;. If ( flags = fcntl(sock, F GETFL). Printf("fcntl get FL failed n");. If( fcntl(sock, F SETFL, O NONBLOCK). Printf("fcntl get FL failed n");.
myinterviewsawaals.blogspot.com
Some questions for Interview purpose: Traceroute
http://myinterviewsawaals.blogspot.com/2012/03/traceroute.html
Some questions for Interview purpose. Thursday, March 8, 2012. Q) How TraceRoute works. It works on the principle of TTL.Router decrements TTL while processing and if TTL is zero it drops the Packet and sends ICMP Error Time Exceeded. Mesage back to source HOST. In the ICMP Reply Message source IP is of Router which drops the packet. Every router in path must have respinded to source host and We got list of all HOPS on ROUTE. Q) What kind of message are send in traceroute? In Unix like OS. Q Why cant we ...
myinterviewsawaals.blogspot.com
Some questions for Interview purpose: June 2010
http://myinterviewsawaals.blogspot.com/2010_06_01_archive.html
Some questions for Interview purpose. Wednesday, June 16, 2010. Remote login Through C code? Printf("%d",m) whede m = 987. Endianess happens because of what? Why cant OS take care of it? How to write code which can be easily ported across OS? Hashing how to decide hash funciton? AVL tree , bst- Binary tree? Complexity ot binary tree? Q If i do malloc for 64 MB will it go if yes how . Does process memory increases . Q Is Stack frame Size constant . what is stack corruption. Q Use of extern in C.
bitreader.blogspot.com
C Learnings: May 2010
http://bitreader.blogspot.com/2010_05_01_archive.html
This blog is for those who love C programing. Friday, May 7, 2010. If we have same name static variable in two functions what will happen . Remember static variable goes in Data area . Val in f1 = 9. Val in f2 = 0. Posted by Amit K Sharma (xamitx). Subscribe to: Posts (Atom). Good c stuff form Gowri my friend. Enter your search terms. Only search Amit's Blog. Welcome to c coders world. Amit K Sharma (xamitx). View my complete profile. Provided by website-hit-counters.com.
bitreader.blogspot.com
C Learnings: Solution of C puzzeles
http://bitreader.blogspot.com/2010/04/soltion-of-c-puzzeles.html
This blog is for those who love C programing. Tuesday, April 13, 2010. Solution of C puzzeles. 1Solution : Problem is in comparison of d = -1 as unsigned int to Macro which is 5. 4294967295 (%u of -1 ) 5(%u of TOTAL ELEMENTS-2). OS HP-UX print is Erroneous '-'is not allowed in names . Reason is stdout is buffered to print we need fflush(stdout) or wait till buffer fills . Stderr is not buffered so hello-err cones to screen instantaneously. OUTPUT : In foobar1. I : 10 sizeof(i ) is: 4 i : 10.
myinterviewsawaals.blogspot.com
Some questions for Interview purpose: September 2011
http://myinterviewsawaals.blogspot.com/2011_09_01_archive.html
Some questions for Interview purpose. Wednesday, September 14, 2011. Packet flow in Network. A typical data flow which we deal with on daily bases in our homes and offices is like this:. Switch - Router R. Switch - Host B. The 1x host A. Wants to send to 2.x host B. Is on a different network judging from the subnet mask and ip addresses and knows it need help from a router. Does an ARP operation to find out the MAC address of its default gateway, which is a router R. Sends to router R. With source MAC = A.
myinterviewsawaals.blogspot.com
Some questions for Interview purpose: March 2010
http://myinterviewsawaals.blogspot.com/2010_03_01_archive.html
Some questions for Interview purpose. Tuesday, March 30, 2010. How to do Multicast and Broadcast? Is it possible for both TCP and UDP. Multicast can not happen on TCP it works only in UDP or RAW socket. Same applies to Broadcast also . TCP sockets are always Unicast. Protocol, like PGM(Pragmatic General Multicast ), adds the ability for receivers to detect lost and/or out-of-order messages and take corrective action (similar in principle to TCP. Resulting in a gap-free, in-order message stream. Picture W...