mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-23 14:41:04 -04:00
Improve RsUrl
Fix a bug in RsUrl::fromString eating one character when parsing URL string with IPv6 host Offer explicit conversion from sockaddr_storage
This commit is contained in:
parent
aabba04be9
commit
056904c90b
2 changed files with 32 additions and 8 deletions
|
@ -22,6 +22,8 @@
|
|||
|
||||
#include "serialiser/rsserializable.h"
|
||||
|
||||
struct sockaddr_storage;
|
||||
|
||||
/**
|
||||
* Very simplistic and minimal URL helper class for RetroShare, after looking
|
||||
* for a small and self-contained C/C++ URL parsing and manipulation library,
|
||||
|
@ -36,7 +38,8 @@
|
|||
struct RsUrl : RsSerializable
|
||||
{
|
||||
RsUrl();
|
||||
RsUrl(const std::string& urlStr);
|
||||
explicit RsUrl(const std::string& urlStr);
|
||||
explicit RsUrl(const sockaddr_storage& ssas);
|
||||
|
||||
RsUrl& fromString(const std::string& urlStr);
|
||||
std::string toString() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue