You're overthinking the first part, the local port is stored in $sock_r->sockport, it doesn't require any manipulation or unpacking to get it.
For the second part, the socket doesn't care what the data is, the default is not ascii, it's just bytes, if you send binary bytes, they will work just fine.
| We're not surrounded, we're in a target-rich environment! |
|---|
In reply to Re: UDP socket questions
by jasonk
in thread UDP socket questions
by sbrandt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |