Raw socket TCP/IP

Eyyub eyyub.pangearaion at gmail.com
Sun Feb 5 01:26:57 PST 2012


> Use SocketType.STREAM if you want TCP. SOCK_RAW is for cases 
> where you want a raw IP socket

Yes, I want a raw IP socket, but when I sendTo my datagram(ip and 
tcp headers) with a raw IP socket, Wireshark say that my datagram 
is IPv4 type protocol:unknow(255)...
In C or C++ programming language, ID_HDRINCL with setsockopt 
indicates the application provides the IP header but in D' there 
isn't this option :/ .

Thanx

Eyyub,(sorry for ma bad english)


More information about the Digitalmars-d-learn mailing list