# 错!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Posted by windows NT user on December 18, 1998 at 18:35:00:

In Reply to: Re: 关于 winsock UDP 这样写也错吗？ posted by trytsai on December 14, 1998 at 16:31:52:

: :
: : B程式要加个一小段

: : set Udp as new Winsock1
: : Udp.Protocol = sckUDPProtocol
: : Udp.LocalPort = 1234
: : Udp.RemoteHost = "127.0.0.1"
: : Udp.RemotePort = "0"
: : Udp.SendData vbNull
: : ^^^^^^^^^^^^^^^^^^^^
这段是不需要的!!!!!!!!!!!!
正确的写法是:
sub form1_load
winsock1.localport = 1234
winsock1.bind
.
.
.
end sub

Follow Ups:

- Re: 错!!!!!!!!!!!!!!!!!!!!!!!!!!!! trytsai 17:04:12 12/28/98 (0)