Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
gmsec_kafka
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christopher Reis
gmsec_kafka
Commits
35a37996
Commit
35a37996
authored
Jan 16, 2017
by
Christopher Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Libraries to make file
parent
cc364bd8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
Makefile
Makefile
+1
-1
KafkaConnection.cpp
src/KafkaConnection.cpp
+12
-12
No files found.
Makefile
View file @
35a37996
...
...
@@ -26,7 +26,7 @@ CXXFLAGS += $(LOCAL_DEFS) $(LOCAL_INCS)
LIBDIRS
=
LIBS
=
LIBS
=
-lrdkafka
-lz
-lpthread
-lrt
#
SRCDIR
=
src
...
...
src/KafkaConnection.cpp
View file @
35a37996
...
...
@@ -46,18 +46,18 @@ using namespace std;
* Called once for each message.
* See rdkafka.h for more information.
*/
static
void
msg_delivered
(
rd_kafka_t
*
rk
,
void
*
payload
,
size_t
len
,
int
error_code
,
void
*
opaque
,
void
*
msg_opaque
)
{
if
(
error_code
)
fprintf
(
stderr
,
"%% Message delivery failed: %s
\n
"
,
rd_kafka_err2str
(
error_code
));
else
if
(
!
quiet
)
fprintf
(
stderr
,
"%% Message delivered (%zd bytes): %.*s
\n
"
,
len
,
(
int
)
len
,
(
const
char
*
)
payload
);
}
//
static void msg_delivered (rd_kafka_t *rk,
//
void *payload, size_t len,
//
int error_code,
//
void *opaque, void *msg_opaque) {
//
//
if (error_code)
//
fprintf(stderr, "%% Message delivery failed: %s\n",
//
rd_kafka_err2str(error_code));
//
else if (!quiet)
//
fprintf(stderr, "%% Message delivered (%zd bytes): %.*s\n", len,
//
(int)len, (const char *)payload);
//
}
KafkaConnection
::
KafkaConnection
(
const
Config
&
config
)
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment