| Doubt regarding RAW sockets programming in C In a client-server scenario, with the client program using raw sockets ( int clientsock=socket(AF_INET, SOCK_RAW, IPPROTO_TCP))
and the server using stream sockets (int serversock= socket(AF_INET, SOCK_STREAM, IPPROTO_TCP))
Is it possible to send text messages to the server using send() or sendto() from the client?
If it is possible, My aim is to send 2 TCP fragments and read them as a single re-assembled packet on the server.
Please include C code if u can.
(i tried including IP header along with TCP header and pseudo header in the packets i sent from client but it still dint work) |