Skip to content

Commit

Permalink
-cleanup, readme changes
Browse files Browse the repository at this point in the history
-context test fixed
  • Loading branch information
bvarga committed Jul 23, 2013
1 parent a1193a5 commit b0c2271
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 105 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
__history
fastmm4
dunit
bin\*.dll
bin\*.dll
bin\dunit.ini
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
0MQ Binding for Delphi
======================

This is a binding for [ZMQ](http://www.zeromq.org). Should work with all Delphi versions and with FPC 2.6.0.
This is a binding for [ZMQ](http://www.zeromq.org). Should work with Delphi7+ versions and with FPC 2.6.0.

General
=======

The package contains a wrapper (zmq.pas), and a higher level api (zmqapi.pas).
It should work with ZMQ 2.2.x, and with 3.2.x. For version 2.2.x undefine zmq3, in
zmq.inc. The dll's are not part of this repo, you can download the appropriate from
[the official distro](http://www.zeromq.org/intro:get-the-software)
[the official distro](http://www.zeromq.org/intro:get-the-software), and rename it
to `libzmq.dll`.

This is a work in progress, please open an issue if you find bugs, or have question,
or proposal.
Expand Down
100 changes: 0 additions & 100 deletions bin/dunit.ini

This file was deleted.

2 changes: 2 additions & 0 deletions tests/ContextTestCase.pas
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ procedure TContextTestCase.ContextTerminate;
begin
for st := Low( TZMQSocketType ) to High( TZMQSocketType ) do
begin
if context = nil then
context := TZMQContext.Create;
FZMQSocket := context.Socket( st );
try
FZMQSocket.bind('tcp://127.0.0.1:5555');
Expand Down
5 changes: 3 additions & 2 deletions zmq.pas
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,13 @@ function zmq_poll( var items: pollitem_t; nitems: Integer; timeout: Longint ): I
function zmq_proxy( frontend, backend, capture: Pointer ): Integer; cdecl; external libzmq;

{$endif}

{* Deprecated aliases *}
const
ZMQ_STREAMER = 1;
ZMQ_FORWARDER = 2;
ZMQ_QUEUE = 3;


{* Deprecated method *}
function zmq_device(device: Integer; insocket,outsocket: Pointer): Integer; cdecl; external libzmq;

{* Helper functions are used by perf tests so that they don't have to care *}
Expand Down

0 comments on commit b0c2271

Please sign in to comment.