Skip to content

Instantly share code, notes, and snippets.

@silv3rm00n
Created February 16, 2012 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silv3rm00n/1845225 to your computer and use it in GitHub Desktop.
Save silv3rm00n/1845225 to your computer and use it in GitHub Desktop.
wxStringTokenizer tkz(whois_data, wxT("\n"));
while ( tkz.HasMoreTokens() )
{
wxString token = tkz.GetNextToken();
// process token here
if(token.Find("NetName") != wxNOT_FOUND)
{
wxStringTokenizer tkz2(token , wxT(":"));
while ( tkz2.HasMoreTokens() )
{
wxString isp = tkz2.GetNextToken();
isp = isp.Trim();
who.isp = isp;
wxPrintf("ISP is : %s" , isp);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment