in reply to opening udp file

Maybe RFC768 - User Datagram Protocol can be of use to you. Are you sure you want to do this manually?!. I wonder why you insist on not using modules. I mean you can always "borrow" code if for some reason/restriction you cannot install a module;)

Cheers,

Harry