Skip to content

Commit

Permalink
Merge pull request #5 from snow-kluster/main
Browse files Browse the repository at this point in the history
FIXME COMPLETED
  • Loading branch information
snowkluster committed Nov 28, 2022
2 parents e3b1916 + 0b16424 commit f95974d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Binary file modified build/client0.exe
Binary file not shown.
Binary file modified build/client1.exe
Binary file not shown.
Binary file modified build/client2.exe
Binary file not shown.
Binary file modified build/server.exe
Binary file not shown.
8 changes: 4 additions & 4 deletions src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ void recv_msg(int);

using namespace std;
string msg;
std::string name = "DEFAULT";
int main(int argc,const char **argv){
string name = "DEFAULT";
int main(int argc,const char **argv,const char **envp){

string ipaddress = "127.0.0.1";
int port = 50000;
string name = "["+std::string(argv[1])+"]";
name = "["+std::string(argv[1])+"]";

WSADATA data;
WORD ver = MAKEWORD(2,2);
Expand Down Expand Up @@ -48,7 +48,7 @@ int main(int argc,const char **argv){
return 0;
}

std::string my_name = "#new client:" + std::string(argv[1]);
std::string my_name = "new client:" + std::string(argv[1]);
send(rsocket, my_name.c_str(), my_name.length() + 1, 0);

thread snd(send_msg, rsocket);
Expand Down

0 comments on commit f95974d

Please sign in to comment.