- Timestamp:
- Nov 19, 2012, 8:45:48 PM (12 years ago)
- Branches:
- master
- Children:
- aee34b9
- Parents:
- 51f5101
- Location:
- client
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
client/.gitignore
r51f5101 r7d7df47 1 1 Debug/ 2 2 ipch/ 3 Client.suo 3 4 Client.sdf 4 Client. suo5 Client.opensdf -
client/Client/Client.vcxproj
r51f5101 r7d7df47 42 42 <WarningLevel>Level3</WarningLevel> 43 43 <Optimization>Disabled</Optimization> 44 <AdditionalIncludeDirectories>C:\Program Files\boost\boost_1_51;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 44 45 </ClCompile> 45 46 <Link> … … 63 64 <ClCompile Include="main.cpp" /> 64 65 </ItemGroup> 66 <ItemGroup> 67 <ClInclude Include="..\..\common\message.h" /> 68 </ItemGroup> 65 69 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> 66 70 <ImportGroup Label="ExtensionTargets"> -
client/Client/Client.vcxproj.filters
r51f5101 r7d7df47 14 14 <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> 15 15 </Filter> 16 <Filter Include="Source Files\common"> 17 <UniqueIdentifier>{9ecfb491-9e8e-4a29-bc07-dd887204d590}</UniqueIdentifier> 18 </Filter> 16 19 </ItemGroup> 17 20 <ItemGroup> … … 20 23 </ClCompile> 21 24 </ItemGroup> 25 <ItemGroup> 26 <ClInclude Include="..\..\common\message.h"> 27 <Filter>Source Files\common</Filter> 28 </ClInclude> 29 </ItemGroup> 22 30 </Project> -
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.