Archive for the 'Networking' Category

SWIG, Java, and JRuby

July 22nd, 2010 | Category: C++, Java, Networking, Programming, Ruby

Providing a robust, maintainable, and interactive interface to your C/C++ application can be a challenge, but I’ve found that a combination of SWIG, Java, and JRuby (or Jython if you prefer) makes for a very powerful combination.
Read more

Comments are off for this post

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

Open Source Performance Tools

November 17th, 2009 | Category: Networking

A lot of performance tools are very web-oriented these days. Here are a list of tools for simulating network traffic conditions and check throughput, delay, jitter, etc.
Read more

1 comment

Overview of the CCSDS Network Protocols

November 15th, 2009 | Category: CCSDS, Networking

The CCSDS standards can be intimidating to the uninitiated, this article covers AOS, TC, COP-1, and other protocols used in space communications, how they interact, and where to find the details.
Read more

Comments are off for this post

LDAP, PAM, SSHA, and CRYPT on RHEL 5

October 25th, 2009 | Category: Networking

I’m putting this here because it took me two days to figure this out. RHEL 5 (or CentOS 5) has openLDAP broken out of the box. It does not handle SSHA password encryption (the default for openLDAP) properly. If you want openLDAP authentication to work with PAM on CentOs 5.3 you MUST edit the /etc/openldap/slapd.conf to contain:

password-hash    {CRYPT}

If you do not then as soon as you use ldappasswd to change a password your user will no longer be able to log in. That is all.

Comments are off for this post

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

Creating a Binary File Using a Ruby DSL

March 25th, 2008 | Category: Networking, Programming, Ruby, XML

So I used ruby to convert a simple hex string into a binary file in Converting hex to Binary in 4 Languages. Today I was trying to create a mixed ascii/binary file at work and created a little Domain Specific Language that has good possibilities.

NOTE: There is an expanded version of this script here: A Better Binary File Generator DSL in Ruby
Read more

Comments are off for this post

Netcat Clone in Three Languages – Part III (Perl)

February 25th, 2008 | Category: Networking, Perl, Programming

So for the final segment in the netcat clone series (see this and this) I’m going to write it in Perl…
Read more

14 comments

Netcat Clone in Three Languages – Part I (Ruby)

February 20th, 2008 | Category: Networking, Perl, Programming, Ruby, XML

I thought I’d continue my series of writing the same application in multiple languages by trying to clone the wonderful network tool: netcat. For the first installation I’m going to try it in Ruby.

Read more

3 comments

PPP VPN Will not use Local DNS Server Under Windows

February 15th, 2007 | Category: Networking

OK. So there are solutions to this online, but it took me a long time to find them so I’m going to add one more here. The problem is that you are using a PPP adapter to connect to your LAN, but when you try to resolve internal names that have both and internal and external address, you keep getting the external address. Read more

Comments are off for this post