By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,326 Members | 881 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,326 IT Pros & Developers. It's quick & easy.

setting socket protocol

P: n/a
I have a small server daemon running on a unix-like system, the socket for
the server is a SOCK_DGRAM, the protocol is ETH_DISCO_P (defined by me). I
want to be able to broadcast messages to this server from visual basic. The
server may be running on a mchine with no IP address, but a network link. 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,
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 someone know a better way to do
broadcast a message and have a machine with no IP respond (ethernet
messaging). The server and client are both functioning as designed on the
unix-like system. Can this even be done from VB? I am wagering I'll need to
muck with winsock, (oh no, it has been years!). can someone point me in the
right direction?

Mar 24 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.