-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit af890be
Showing
15 changed files
with
1,148 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,33 @@ | |||
======================================================================== | |||
CONSOLE APPLICATION : ahk Project Overview | |||
======================================================================== | |||
|
|||
AppWizard has created this ahk application for you. | |||
|
|||
This file contains a summary of what you will find in each of the files that | |||
make up your ahk application. | |||
|
|||
|
|||
ahk.vcproj | |||
This is the main project file for VC++ projects generated using an Application Wizard. | |||
It contains information about the version of Visual C++ that generated the file, and | |||
information about the platforms, configurations, and project features selected with the | |||
Application Wizard. | |||
|
|||
ahk.cpp | |||
This is the main application source file. | |||
|
|||
///////////////////////////////////////////////////////////////////////////// | |||
Other standard files: | |||
|
|||
StdAfx.h, StdAfx.cpp | |||
These files are used to build a precompiled header (PCH) file | |||
named ahk.pch and a precompiled types file named StdAfx.obj. | |||
|
|||
///////////////////////////////////////////////////////////////////////////// | |||
Other notes: | |||
|
|||
AppWizard uses "TODO:" comments to indicate parts of the source code you | |||
should add to or customize. | |||
|
|||
///////////////////////////////////////////////////////////////////////////// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,39 @@ | |||
// ahk.cpp : Defines the entry point for the console application. | |||
// | |||
|
|||
#include "stdafx.h" | |||
#include "../include/zmq.h" | |||
#include "../include/zmq_utils.h" | |||
#include <stdio.h> | |||
#include <stdlib.h> | |||
#include <string.h> | |||
#define EXPORT extern "C" __declspec(dllexport) | |||
EXPORT int client () | |||
{ | |||
void *context = zmq_init (1); | |||
|
|||
// Socket to talk to server | |||
printf ("Connecting to hello world server n"); | |||
void *requester = zmq_socket (context, ZMQ_REQ); | |||
zmq_connect (requester, "tcp://localhost:5555"); | |||
|
|||
int request_nbr; | |||
for (request_nbr = 0; request_nbr != 10; request_nbr++) { | |||
zmq_msg_t request; | |||
zmq_msg_init_size (&request, 5); | |||
memcpy (zmq_msg_data (&request), "Hello", 5); | |||
printf ("Sending Hello %d n", request_nbr); | |||
zmq_send (requester, &request, 0); | |||
zmq_msg_close (&request); | |||
|
|||
zmq_msg_t reply; | |||
zmq_msg_init (&reply); | |||
zmq_recv (requester, &reply, 0); | |||
printf ("Received World %d\n", request_nbr); | |||
zmq_msg_close (&reply); | |||
} | |||
zmq_close (requester); | |||
zmq_term (context); | |||
return 0; | |||
} | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,232 @@ | |||
<?xml version="1.0" encoding="Windows-1252"?> | |||
<VisualStudioProject | |||
ProjectType="Visual C++" | |||
Version="9.00" | |||
Name="ahk" | |||
ProjectGUID="{E35FF5F5-F89F-470F-943A-0F8EE5C14279}" | |||
RootNamespace="ahk" | |||
Keyword="Win32Proj" | |||
TargetFrameworkVersion="196613" | |||
> | |||
<Platforms> | |||
<Platform | |||
Name="Win32" | |||
/> | |||
</Platforms> | |||
<ToolFiles> | |||
</ToolFiles> | |||
<Configurations> | |||
<Configuration | |||
Name="Debug|Win32" | |||
OutputDirectory="$(SolutionDir)$(ConfigurationName)" | |||
IntermediateDirectory="$(ConfigurationName)" | |||
ConfigurationType="2" | |||
CharacterSet="1" | |||
> | |||
<Tool | |||
Name="VCPreBuildEventTool" | |||
/> | |||
<Tool | |||
Name="VCCustomBuildTool" | |||
/> | |||
<Tool | |||
Name="VCXMLDataGeneratorTool" | |||
/> | |||
<Tool | |||
Name="VCWebServiceProxyGeneratorTool" | |||
/> | |||
<Tool | |||
Name="VCMIDLTool" | |||
/> | |||
<Tool | |||
Name="VCCLCompilerTool" | |||
Optimization="0" | |||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" | |||
MinimalRebuild="true" | |||
BasicRuntimeChecks="3" | |||
RuntimeLibrary="3" | |||
UsePrecompiledHeader="2" | |||
WarningLevel="3" | |||
DebugInformationFormat="4" | |||
/> | |||
<Tool | |||
Name="VCManagedResourceCompilerTool" | |||
/> | |||
<Tool | |||
Name="VCResourceCompilerTool" | |||
/> | |||
<Tool | |||
Name="VCPreLinkEventTool" | |||
/> | |||
<Tool | |||
Name="VCLinkerTool" | |||
AdditionalDependencies="libzmq.lib" | |||
OutputFile="$(OutDir)\$(ProjectName).dll" | |||
LinkIncremental="2" | |||
AdditionalLibraryDirectories="D:\naveen\source\ahkzmq\lib" | |||
GenerateDebugInformation="true" | |||
SubSystem="1" | |||
TargetMachine="1" | |||
/> | |||
<Tool | |||
Name="VCALinkTool" | |||
/> | |||
<Tool | |||
Name="VCManifestTool" | |||
/> | |||
<Tool | |||
Name="VCXDCMakeTool" | |||
/> | |||
<Tool | |||
Name="VCBscMakeTool" | |||
/> | |||
<Tool | |||
Name="VCFxCopTool" | |||
/> | |||
<Tool | |||
Name="VCAppVerifierTool" | |||
/> | |||
<Tool | |||
Name="VCPostBuildEventTool" | |||
/> | |||
</Configuration> | |||
<Configuration | |||
Name="Release|Win32" | |||
OutputDirectory="$(SolutionDir)$(ConfigurationName)" | |||
IntermediateDirectory="$(ConfigurationName)" | |||
ConfigurationType="1" | |||
CharacterSet="1" | |||
WholeProgramOptimization="1" | |||
> | |||
<Tool | |||
Name="VCPreBuildEventTool" | |||
/> | |||
<Tool | |||
Name="VCCustomBuildTool" | |||
/> | |||
<Tool | |||
Name="VCXMLDataGeneratorTool" | |||
/> | |||
<Tool | |||
Name="VCWebServiceProxyGeneratorTool" | |||
/> | |||
<Tool | |||
Name="VCMIDLTool" | |||
/> | |||
<Tool | |||
Name="VCCLCompilerTool" | |||
Optimization="2" | |||
EnableIntrinsicFunctions="true" | |||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" | |||
RuntimeLibrary="2" | |||
EnableFunctionLevelLinking="true" | |||
UsePrecompiledHeader="2" | |||
WarningLevel="3" | |||
DebugInformationFormat="3" | |||
/> | |||
<Tool | |||
Name="VCManagedResourceCompilerTool" | |||
/> | |||
<Tool | |||
Name="VCResourceCompilerTool" | |||
/> | |||
<Tool | |||
Name="VCPreLinkEventTool" | |||
/> | |||
<Tool | |||
Name="VCLinkerTool" | |||
LinkIncremental="1" | |||
GenerateDebugInformation="true" | |||
SubSystem="1" | |||
OptimizeReferences="2" | |||
EnableCOMDATFolding="2" | |||
TargetMachine="1" | |||
/> | |||
<Tool | |||
Name="VCALinkTool" | |||
/> | |||
<Tool | |||
Name="VCManifestTool" | |||
/> | |||
<Tool | |||
Name="VCXDCMakeTool" | |||
/> | |||
<Tool | |||
Name="VCBscMakeTool" | |||
/> | |||
<Tool | |||
Name="VCFxCopTool" | |||
/> | |||
<Tool | |||
Name="VCAppVerifierTool" | |||
/> | |||
<Tool | |||
Name="VCPostBuildEventTool" | |||
/> | |||
</Configuration> | |||
</Configurations> | |||
<References> | |||
</References> | |||
<Files> | |||
<Filter | |||
Name="Source Files" | |||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" | |||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" | |||
> | |||
<File | |||
RelativePath=".\ahk.cpp" | |||
> | |||
</File> | |||
<File | |||
RelativePath=".\stdafx.cpp" | |||
> | |||
<FileConfiguration | |||
Name="Debug|Win32" | |||
> | |||
<Tool | |||
Name="VCCLCompilerTool" | |||
UsePrecompiledHeader="1" | |||
/> | |||
</FileConfiguration> | |||
<FileConfiguration | |||
Name="Release|Win32" | |||
> | |||
<Tool | |||
Name="VCCLCompilerTool" | |||
UsePrecompiledHeader="1" | |||
/> | |||
</FileConfiguration> | |||
</File> | |||
<File | |||
RelativePath=".\wrap.cpp" | |||
> | |||
</File> | |||
</Filter> | |||
<Filter | |||
Name="Header Files" | |||
Filter="h;hpp;hxx;hm;inl;inc;xsd" | |||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" | |||
> | |||
<File | |||
RelativePath=".\stdafx.h" | |||
> | |||
</File> | |||
<File | |||
RelativePath=".\targetver.h" | |||
> | |||
</File> | |||
</Filter> | |||
<Filter | |||
Name="Resource Files" | |||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" | |||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" | |||
> | |||
</Filter> | |||
<File | |||
RelativePath=".\ReadMe.txt" | |||
> | |||
</File> | |||
</Files> | |||
<Globals> | |||
</Globals> | |||
</VisualStudioProject> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
// stdafx.cpp : source file that includes just the standard includes | |||
// ahk.pch will be the pre-compiled header | |||
// stdafx.obj will contain the pre-compiled type information | |||
|
|||
#include "stdafx.h" | |||
|
|||
// TODO: reference any additional headers you need in STDAFX.H | |||
// and not in this file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
// stdafx.h : include file for standard system include files, | |||
// or project specific include files that are used frequently, but | |||
// are changed infrequently | |||
// | |||
|
|||
#pragma once | |||
|
|||
#include "targetver.h" | |||
|
|||
#include <stdio.h> | |||
#include <tchar.h> | |||
|
|||
|
|||
|
|||
// TODO: reference additional headers your program requires here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,13 @@ | |||
#pragma once | |||
|
|||
// The following macros define the minimum required platform. The minimum required platform | |||
// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run | |||
// your application. The macros work by enabling all features available on platform versions up to and | |||
// including the version specified. | |||
|
|||
// Modify the following defines if you have to target a platform prior to the ones specified below. | |||
// Refer to MSDN for the latest info on corresponding values for different platforms. | |||
#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista. | |||
#define _WIN32_WINNT 0x05010200 // Change this to the appropriate value to target other versions of Windows. | |||
#endif | |||
|
Oops, something went wrong.