Fence top rail end socket

The rail end holds the top tail to the post. One of these broke on my neighbor's fence and he couldn't find the right size at any store... so i made one for him!
For an explanation of a rail end: http://www.homerepaircorner.ca/chainfence.html