Re: Raw socket TCP/IP

2012-03-07 Thread maarten van damme
this might be a little late but could it be that the ethernet header was also needed?

Re: Raw socket TCP/IP

2012-03-07 Thread Tyler Jameson Little
Just curious, but what exactly do you need a raw IP socket for?

Re: Raw socket TCP/IP

2012-03-07 Thread dennis luehring
Am 08.02.2012 19:35, schrieb Eyyub: BUMP, I really need help please ! Eyyub. what are you trying to archive? did you got an Ethernet-Frame+IP-Frame+(your replacement for tcp or udp) - or are your trying to change the tcp frame before sending? and if your using Windows:

Re: Raw socket TCP/IP

2012-02-08 Thread Eyyub
BUMP, I really need help please ! Eyyub.

Re: Raw socket TCP/IP

2012-02-05 Thread Eyyub
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

Re: Raw socket TCP/IP

2012-02-05 Thread Eyyub
If the source code can help : http://paste.pocoo.org/show/OJK11zDw6jAaurlKLT3Z/ . Eyyub,

Raw socket TCP/IP

2012-02-04 Thread Eyyub
Hi, I'm trying to use a raw socket, but when I create a socket(AddressFamily.INET, SocketType.RAW, ProtocolType.TCP) and then I use socket.sendTo(datagram, addr) I've got a 10002 code error Invalid argument... Can anyone help me please, and sorry for my bad english :s

Re: Raw socket TCP/IP

2012-02-04 Thread David Nadlinger
On 2/4/12 11:42 PM, Eyyub wrote: I'm trying to use a raw socket, […] Use SocketType.STREAM if you want TCP. SOCK_RAW is for cases where you want a raw IP socket (for the exact details, look it up in your OS docs). David