Changeset 7d7df47 in network-game for client/Client/main.cpp


Ignore:
Timestamp:
Nov 19, 2012, 8:45:48 PM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
aee34b9
Parents:
51f5101
Message:

Added a directory for common code and added basic boost library code to the client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/Client/main.cpp

    r51f5101 r7d7df47  
    1010#include <iostream>
    1111
     12#include <boost/lambda/lambda.hpp>
     13
     14#include "../../common/message.h"
     15
    1216#pragma comment(lib, "ws2_32.lib")
    1317
     
    1519
    1620void error(const char *);
     21
     22int 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
    1732int main(int argc, char *argv[])
    1833{
     
    7388}
    7489
     90/*
     91int 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
    75102void error(const char *msg)
    76103{
Note: See TracChangeset for help on using the changeset viewer.