Yes, I actually used cwrap to generate the initial files. However, as mentioned on the cwrap website there can be problems converting from Go structs to C structs and vice versa (due to padding, alignment, etc...) and the structs rfbServer and rfbClient were very large C structs so I thought there would be issues if I tried to use cwrap. In addition, I wanted to change the methods to have the methods attached to the rfbServer and rfbClient rather than accepting them as the first parameter.
Luke