M
Marco Spiga
Hi to all,
I'm trying just for fun to writing an application that completly handle a
TCP connection.
The first problem is connect with an endPoint server.
In this case a set my remoteSocket:
Dim sck As New Sockets.Socket(Sockets.AddressFamily.InterNetwork,
Sockets.SocketType.Raw, Sockets.ProtocolType.Raw)
When I try to send a packet, it occurs an Exception. The packet is formatted
with the TCP Header (so I can handle the SYN)
What's wrong?
If I try with:
Dim sck As New Sockets.Socket(Sockets.AddressFamily.InterNetwork,
Sockets.SocketType.Raw, Sockets.ProtocolType.IP)
But it send a packet with the PROTOCOL IP Option equal to Zero, and don't
work!
I tried to bind the socket and send a packet but won't work... I haven't any
idea...
if someone can help me...thanks
Marco
p.s. I know that if can I send the SYN packet the SYN/ACK will discarded by
the stack... but I want to work with this things.
p.s.s. sorry for my english
I'm trying just for fun to writing an application that completly handle a
TCP connection.
The first problem is connect with an endPoint server.
In this case a set my remoteSocket:
Dim sck As New Sockets.Socket(Sockets.AddressFamily.InterNetwork,
Sockets.SocketType.Raw, Sockets.ProtocolType.Raw)
When I try to send a packet, it occurs an Exception. The packet is formatted
with the TCP Header (so I can handle the SYN)
What's wrong?
If I try with:
Dim sck As New Sockets.Socket(Sockets.AddressFamily.InterNetwork,
Sockets.SocketType.Raw, Sockets.ProtocolType.IP)
But it send a packet with the PROTOCOL IP Option equal to Zero, and don't
work!
I tried to bind the socket and send a packet but won't work... I haven't any
idea...
if someone can help me...thanks
Marco
p.s. I know that if can I send the SYN packet the SYN/ACK will discarded by
the stack... but I want to work with this things.
p.s.s. sorry for my english