quote:
Why are you calling Bind? I don''t think that is necessary. From MSDN:
---
""""
---
I don''t see you setting the "LocalPort" property. Maybe "Bind" does this for you... but then maybe not.
I don''t know what you are looking at, but
my MSDN tells me to call Bind on it to setup a UDP peer, which is what I am doing; this specifically:
quote:
UDP Basics
Creating a UDP application is even simpler than creating a TCP application because the UDP protocol doesn''t require an explicit connection. In the TCP application above, one Winsock control must explicitly be set to "listen," while the other must initiate a connection with the Connect method.
In contrast, the UDP protocol doesn''t require an explicit connection. To send data between two controls, three steps must be completed (on both sides of the connection):
1. Set the RemoteHost property to the name of the other computer.
2. Set the RemotePort property to the LocalPort property of the second control.
3. Invoke the Bind method specifying the LocalPort to be used. (This method is discussed in greater detail below.)
So LocalPort isn''t even used except if you want to pass it to Bind.
Also, I assumed that using the quotes around the string automatically implied the NULL terminator... or is that just C/C++? I tried doing this too:
.SendData -1.SendData "info".SendData 0
But that didn''t work. I think there has to be a problem with the way I''m sending the data, but I don''t know what other ways there are to send it!!!
And like I said, I want to make this VB; I want a nice Windows interface behind it, and I don''t think I''m adding enough code to justify turning it into a MFC application, but on the flipside, I''m adding enough things to make using the normal Windows API a real hastle
![](smile.gif)
So VB it is! And look at that ugly Winsock code! That''s what my console application looks like