| To: | pcp@xxxxxxxxxxx |
|---|---|
| Subject: | Re: [pcp] pcp updates |
| From: | Dave Brolley <brolley@xxxxxxxxxx> |
| Date: | Tue, 02 Apr 2013 16:24:40 -0400 |
| Delivered-to: | pcp@xxxxxxxxxxx |
| In-reply-to: | <515B3A58.40309@xxxxxxxxxx> |
| References: | <515B3475.7050508@xxxxxxxxxxxxxxxx> <515B3A58.40309@xxxxxxxxxx> |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 |
On 04/02/2013 04:06 PM, Dave Brolley wrote: Hi Ken,With respect to commit 4b69271ebe5847dc730a5135a2fd1318ee8770ee, the code for the { secure sockets enabled, secure sockets disabled } x { ipv4, ipv6 } mix is unnecessary. All you need to do is to call __pmSockAddrToString(saddr). It will take care of those details. It returns a pointer to a string from the heap, so you don't need to know the magic buffer size (46), but you do need to free it. You also do need to check that it is not NULL. If if is NULL then you can issue an error message. Something like this should do it ....
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [pcp] pcp updates, Dave Brolley |
|---|---|
| Next by Date: | Re: One pmwebapi against multiple pcp running hosts, Frank Ch. Eigler |
| Previous by Thread: | Re: [pcp] pcp updates, Dave Brolley |
| Next by Thread: | Re: [pcp] pcp updates, Ken McDonell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |