Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~415 People Reached
Favorite Forums
Favorite Tags
c++ x 9
Member Avatar for zuki88

#include <iostream> #include <string> #include <stdlib.h> #include <winsock.h>//dont forget to add wsock32.lib to linker dependencies using namespace std; #define BUFFERSIZE 1024 void die_with_error(char *errorMessage); void die_with_wserror(char *errorMessage); int main(int argc, char *argv[]) { string request; string response; int resp_leng; char buffer[BUFFERSIZE]; struct sockaddr_in serveraddr; int sock; WSADATA wsaData; char *ipaddress …

Member Avatar for zuki88
0
130
Member Avatar for zuki88

hello everyone i want to input ip like a char,then split into "127 0 0 1" so that i can scan ips for start ip to end ip. I tried with strtok spliting but program crashes when i do sprintf (buffer, "%s",pch[1]);

Member Avatar for L7Sqr
0
285