The OCX does have UDP support, but I'm not sure how extensive it is.
Oops. There are quite a few companies selling their own UDP controls and they go on about how you don't need to call wsock32 directly if you buy their control etc...

There is some example wsock32 code for TCP here.