# Re: 关于 winsock UDP 这样写也错吗？

Posted by trytsai on December 14, 1998 at 16:31:52:

In Reply to: Re: 关于 winsock UDP 这样写也错吗？ posted by Roger on December 14, 1998 at 15:55:56:

:
: B程式要加个一小段

: set Udp as new Winsock1
: Udp.Protocol = sckUDPProtocol
: Udp.LocalPort = 1234
: Udp.RemoteHost = "127.0.0.1"
: Udp.RemotePort = "0"
: Udp.SendData vbNull
: ^^^^^^^^^^^^^^^^^^^^
: 接收端要先丢个null出去才会收资料.
: 不知道为什么.

真的很感谢你，刚刚试了一下真的就可以传了！

Follow Ups:

- 错!!!!!!!!!!!!!!!!!!!!!!!!!!!! windows NT user 18:35:00 12/18/98 (1)
  - Re: 错!!!!!!!!!!!!!!!!!!!!!!!!!!!! trytsai 17:04:12 12/28/98 (0)