gmcc
Mar 23rd, 2006, 03:21 PM
I have a small server daemon running on linux, the socket for the server is a SOCK_DGRAM, the protocol is ETH_DISCO_P (defined by me). I want to be able to send messages to this server from visual basic.
I cannot seem to set the protocol of the socket.
I have defined "Private Const ETH_P_DISCO As ProtocolType = &H88AD" same as in my server daemon.
When I try to open a socket like
"_socket = New Socket(AddressFamily.InterNetwork, SocketType.Dgram, ETH_P_DISCO)"
i get a socket exception; Message "The requested protocol has not been configured into the system, or no implementation for it exists"
How can i configure this protocol, or maybe some one know a better way to do this. The server and client are both working from linux. Can this even be done from VB?
I cannot seem to set the protocol of the socket.
I have defined "Private Const ETH_P_DISCO As ProtocolType = &H88AD" same as in my server daemon.
When I try to open a socket like
"_socket = New Socket(AddressFamily.InterNetwork, SocketType.Dgram, ETH_P_DISCO)"
i get a socket exception; Message "The requested protocol has not been configured into the system, or no implementation for it exists"
How can i configure this protocol, or maybe some one know a better way to do this. The server and client are both working from linux. Can this even be done from VB?