I updated my personal C/C++ Socket Library to include an example of setting up TCP raw sockets. You can download this library from http://softhouseproductions.com.
The only thing I have not sorted out is the TCP datagram's Sequence Number. It seems that WireShark always has one issue or another with it.
Anyhow, if you download the library, take a look at the examples written in C++. I did not write any raw-socket test programs in C, although there shouldn't any reason why one couldn't.
Send an Instant Message to ApEkV2 Using...
Gee! These Aren't Roasted!