Archive for the 'C' Category

Opening a TUN Device on UNIX

November 19th, 2009 | Category: C, Networking, Programming

The TUN/TAP interface under Linux provides user space access to Transport (Ethernet) or Network Layer (IP) traffic by allowing a developer to create a “virtual” interface that can be openend in user space as a file descriptor.
Read more

1 comment

Spirit Vs. Lex/yacc/et al.

December 10th, 2008 | Category: C, C++, Networking, Programming, Python

What are the differences and when should I use one or the other?
Read more

Comments are off for this post

Why C Switch Statements Should go the way of the GOTO

March 15th, 2008 | Category: C, C#, Programming, Ruby

The venerable C switch statement keeps showing up in other languages presumably because the people who write new languages are familiar with C and don’t really think about it.
Read more

2 comments

Converting hex to Binary in 4 Languages

February 18th, 2008 | Category: C, Perl, Programming, Python, Ruby

I’ve been playing around with some scripting languages recently so I thought I’d do a small example in a few different languages for laughs.
Read more

5 comments