hypebeast / go-osc

Open Sound Control (OSC) library for Golang. Implemented in pure Go.
MIT License
200 stars 46 forks source link

Providing ParsePacket function for parsing individual strings #20

Closed anonymouse64 closed 7 years ago

anonymouse64 commented 8 years ago

This new function uses the existing functions that parse the OSC packets into the Packet struct to provide an exported function, ParsePacket, which takes a string argument and returns the corresponding Packet struct.

To do this, some of the internal functions which were part of the interface for Server were modified to not be part of the interface so they can be used without a Server object.

hypebeast commented 7 years ago

Thanks for the pull request.