removing some old files

This commit is contained in:
Alex Yatskov 2011-09-03 19:23:06 -07:00
parent b3defb671c
commit fbba810e12
3 changed files with 17 additions and 125 deletions

View File

@ -102,15 +102,23 @@ static void client() {
// //
int main(int argc, char **argv) { int main(int argc, char **argv) {
if (fork() == 0) { printf("[S] Starting server on port %d\n", SERVER_PORT);
sleep(1); Server server;
client(); if (!server.start(SERVER_PORT, 1)) {
} printf("[S] Unable to start server\n");
else { return 1;
server(); }
printf("Press enter to exit...\n");
getchar();
} printf("[S] Connecting to server on port %d\n", SERVER_PORT);
Client client;
if (!client.connect("localhost", SERVER_PORT)) {
printf("[C] Unable to connect to server\n");
return 1;
}
return 0; return 0;
} }

View File

@ -1,104 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<CodeLite_Project Name="metacall" InternalType="Console">
<Description/>
<Dependencies/>
<VirtualDirectory Name="src">
<File Name="main.cpp"/>
<File Name="mc_socket.cpp"/>
<File Name="mc_socket.hpp"/>
<File Name="metacall.hpp"/>
<File Name="mc_buffer.cpp"/>
<File Name="mc_buffer.hpp"/>
<File Name="mc_packet.hpp"/>
<File Name="mc_stream.cpp"/>
<File Name="mc_stream.hpp"/>
<File Name="mc_stream-inl.hpp"/>
<File Name="mc_serial.hpp"/>
<File Name="mc_serial-inl.hpp"/>
<File Name="mc_serial.cpp"/>
<File Name="mc_meta.hpp"/>
<File Name="mc_functor.hpp"/>
<File Name="mc_binding-inl.hpp"/>
<File Name="mc_binding.hpp"/>
<File Name="mc_binding.cpp"/>
<File Name="mc_common.hpp"/>
<File Name="mc_protocol-inl.hpp"/>
<File Name="mc_protocol.cpp"/>
<File Name="mc_protocol.hpp"/>
<File Name="mc_client.cpp"/>
<File Name="mc_client.hpp"/>
<File Name="mc_server.cpp"/>
<File Name="mc_server.hpp"/>
<File Name="mc_token.cpp"/>
<File Name="mc_token.hpp"/>
</VirtualDirectory>
<Settings Type="Executable">
<GlobalSettings>
<Compiler Options="" C_Options="">
<IncludePath Value="."/>
</Compiler>
<Linker Options="">
<LibraryPath Value="."/>
</Linker>
<ResourceCompiler Options=""/>
</GlobalSettings>
<Configuration Name="Debug" CompilerType="gnu g++" DebuggerType="GNU gdb debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
<Compiler Options="-g" C_Options="-g" Required="yes" PreCompiledHeader="">
<IncludePath Value="."/>
</Compiler>
<Linker Options="" Required="yes"/>
<ResourceCompiler Options="" Required="no"/>
<General OutputFile="$(IntermediateDirectory)/$(ProjectName)" IntermediateDirectory="./Debug" Command="./$(ProjectName)" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="yes"/>
<Environment EnvVarSetName="&lt;Use Defaults&gt;" DbgSetName="&lt;Use Defaults&gt;"/>
<Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="">
<PostConnectCommands/>
<StartupCommands/>
</Debugger>
<PreBuild/>
<PostBuild/>
<CustomBuild Enabled="no">
<RebuildCommand/>
<CleanCommand/>
<BuildCommand/>
<PreprocessFileCommand/>
<SingleFileCommand/>
<MakefileGenerationCommand/>
<ThirdPartyToolName>None</ThirdPartyToolName>
<WorkingDirectory/>
</CustomBuild>
<AdditionalRules>
<CustomPostBuild/>
<CustomPreBuild/>
</AdditionalRules>
</Configuration>
<Configuration Name="Release" CompilerType="gnu g++" DebuggerType="GNU gdb debugger" Type="" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
<Compiler Options="" C_Options="" Required="yes" PreCompiledHeader="">
<IncludePath Value="."/>
</Compiler>
<Linker Options="-O2" Required="yes"/>
<ResourceCompiler Options="" Required="no"/>
<General OutputFile="$(IntermediateDirectory)/$(ProjectName)" IntermediateDirectory="./Release" Command="./$(ProjectName)" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="yes"/>
<Environment EnvVarSetName="&lt;Use Defaults&gt;" DbgSetName="&lt;Use Defaults&gt;"/>
<Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="">
<PostConnectCommands/>
<StartupCommands/>
</Debugger>
<PreBuild/>
<PostBuild/>
<CustomBuild Enabled="no">
<RebuildCommand/>
<CleanCommand/>
<BuildCommand/>
<PreprocessFileCommand/>
<SingleFileCommand/>
<MakefileGenerationCommand/>
<ThirdPartyToolName>None</ThirdPartyToolName>
<WorkingDirectory/>
</CustomBuild>
<AdditionalRules>
<CustomPostBuild/>
<CustomPreBuild/>
</AdditionalRules>
</Configuration>
</Settings>
</CodeLite_Project>

View File

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<CodeLite_Workspace Name="metacall" Database="./metacall.tags">
<Project Name="metacall" Path="metacall.project" Active="Yes"/>
<BuildMatrix>
<WorkspaceConfiguration Name="Debug" Selected="yes">
<Project Name="metacall" ConfigName="Debug"/>
</WorkspaceConfiguration>
<WorkspaceConfiguration Name="Release" Selected="yes">
<Project Name="metacall" ConfigName="Release"/>
</WorkspaceConfiguration>
</BuildMatrix>
</CodeLite_Workspace>