remove more iostream includes (#65)
This commit is contained in:
parent
518a445074
commit
93b901a286
@ -20,8 +20,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#define socketerrno errno
|
#define socketerrno errno
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
#include "IXSocketConnect.h"
|
#include "IXSocketConnect.h"
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
#include <openssl/x509v3.h>
|
#include <openssl/x509v3.h>
|
||||||
|
|
||||||
|
@ -7,8 +7,6 @@
|
|||||||
#include "IXUrlParser.h"
|
#include "IXUrlParser.h"
|
||||||
#include "LUrlParser.h"
|
#include "LUrlParser.h"
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
namespace ix
|
namespace ix
|
||||||
{
|
{
|
||||||
bool UrlParser::parse(const std::string& url,
|
bool UrlParser::parse(const std::string& url,
|
||||||
@ -66,22 +64,4 @@ namespace ix
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UrlParser::printUrl(const std::string& url)
|
|
||||||
{
|
|
||||||
std::string protocol, host, path, query;
|
|
||||||
int port {0};
|
|
||||||
|
|
||||||
if (!parse(url, protocol, host, path, query, port))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::cout << "[" << url << "]" << std::endl;
|
|
||||||
std::cout << protocol << std::endl;
|
|
||||||
std::cout << host << std::endl;
|
|
||||||
std::cout << port << std::endl;
|
|
||||||
std::cout << path << std::endl;
|
|
||||||
std::cout << query << std::endl;
|
|
||||||
std::cout << "-------------------------------" << std::endl;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,5 @@ namespace ix
|
|||||||
std::string& path,
|
std::string& path,
|
||||||
std::string& query,
|
std::string& query,
|
||||||
int& port);
|
int& port);
|
||||||
|
|
||||||
static void printUrl(const std::string& url);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user