Changeset 7d7df47 in network-game for client/Client/main.cpp
- Timestamp:
- Nov 19, 2012, 8:45:48 PM (12 years ago)
- Branches:
- master
- Children:
- aee34b9
- Parents:
- 51f5101
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client/Client/main.cpp
r51f5101 r7d7df47 10 10 #include <iostream> 11 11 12 #include <boost/lambda/lambda.hpp> 13 14 #include "../../common/message.h" 15 12 16 #pragma comment(lib, "ws2_32.lib") 13 17 … … 15 19 16 20 void error(const char *); 21 22 int boost_main() 23 { 24 using namespace boost::lambda; 25 typedef istream_iterator<int> in; 26 27 for_each(in(cin), in(), cout << (_1 * 3) << " " ); 28 29 return 0; 30 } 31 17 32 int main(int argc, char *argv[]) 18 33 { … … 73 88 } 74 89 90 /* 91 int sendMessage(short type, string contents, int sock, struct sockaddr_in *dest) 92 { 93 NETWORK_MSG msg; 94 95 msg.type = type; 96 strcpy(msg.buffer, contents.c_str()); 97 98 return sendto(sock, (char*)&msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *)dest, sizeof(dest)); 99 } 100 */ 101 75 102 void error(const char *msg) 76 103 {
Note:
See TracChangeset
for help on using the changeset viewer.