Skip to content

Instantly share code, notes, and snippets.

@jmorrill
Created November 19, 2014 01:07
Show Gist options
  • Save jmorrill/c5aac9e5252eab754570 to your computer and use it in GitHub Desktop.
Save jmorrill/c5aac9e5252eab754570 to your computer and use it in GitHub Desktop.
modern
int main()
{
Modern::Initialize();
Uri uri(L"http://moderncpp.com/about/");
auto socket = Modern::Windows::Networking::Sockets::StreamSocket();
printf("port: %d\n", uri.Port());
printf("domain: %ls\n", uri.Domain().Buffer());
printf("path: %ls\n", uri.Path().Buffer());
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment