WxWidgets Network

Network Example
... wxSocketClient *socket = new wxSocketClient(wxSOCKET_BLOCK); wxIPV4address addr; addr.Hostname(wxT("localhost")); addr.Service(9000); const wxChar *buffer; unsigned char len; buffer = wxT("Test string (less than 256 chars!)"); len = (unsigned char)((wxStrlen(buffer) + 1) * sizeof(wxChar)); if(socket->Connect(addr, true)) { socket->Write(buffer, len); char buffer[100]; socket->Read(buffer, 100); socket->Close; } else wxMessageBox(_("Can't connect to the specified host"), _("Alert !")); return 0;
 * 1) include 