nb = s.Send(ByteSend, ByteSend.Length, SocketFlags.Peek)
Now this doesn’t really help me. So I looked for the Error code, which were 10045. Looking in the error code list (link) gave me the following additional knowledge (or whatever you want to call this message) :
Windows Sockets Error Codes:
Operation not supported.
The attempted operation is not supported for the type of object referenced. Usually this occurs when a socket descriptor to a socket that cannot support this operation is trying to accept a connection on a datagram socket.
Now did that help. I ended giving up on the code so I cant really tell you what the solution is. But for reference, I choose to publish this post anyway. Sorry