PIPeer ported to data transfer
git-svn-id: svn://db.shs.com.ru/pip@46 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
6
main.cpp
6
main.cpp
@@ -133,7 +133,7 @@ public:
|
||||
void print() {piCout << "Child"; Parent::print();}
|
||||
};
|
||||
|
||||
#include <netdb.h>
|
||||
//#include <netdb.h>
|
||||
int main (int argc, char * argv[]) {
|
||||
PIString s, s2;
|
||||
s = "test";
|
||||
@@ -157,12 +157,12 @@ int main (int argc, char * argv[]) {
|
||||
ba >> s2;
|
||||
PICout(0xFFFF) << s2 << s2.length();
|
||||
return 0;
|
||||
|
||||
/*
|
||||
hostent * he = 0;
|
||||
he = gethostbyname(argv[1]);
|
||||
piCout << he->h_name;
|
||||
piCout << he->h_aliases[0];
|
||||
return 0;
|
||||
return 0;*/
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user