Well, I'm no Linux expert and I'm not familiar with kernel 3.x, but I
would go looking that way.
My apologies, it is not tun0 but tap0, and it shows up in ifconfig only
when you run the program (when it is open), and in some systems you have
to be root for this to succeed, unless you change
Well, I don't see how you call those functions on your client, but you
know you have to wait to be connected before you send data, do you ? The
callback in tcp_connect() will be called when that happens.
Also, you are supposed to check for the available room before calling
tcp_write(), and/or