From af8ff24364ca45a60798dc6a9d7999b60549bbe8 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 8 Jun 2015 22:26:57 +0100 Subject: [PATCH] Updated README --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 95e92dc..167b782 100644 --- a/README.md +++ b/README.md @@ -32,12 +32,13 @@ Include the following in the linker path when compiling tests: # C API ### Starting -To start Stabber on port 5230 for example: +To start Stabber: ```c -stbbr_start(stbbr_log_t loglevel, 5230, 0); +stbbr_start(stbbr_log_t loglevel, int port, int httpport); ``` -The second argument is the port to use for the HTTP interface, a value of 0 will not start the HTTP daemon. `loglevel` must be one of `STBBR_LOGDEBUG`, `STBBR_LOGINFO`, `STBBR_LOGWARN, `STBBR_LOGERROR`. +`port` The port on which to run the stubbed XMPP server. +`httpport` The port on which to run the HTTP API, a value of `0` will not run the HTTP Daemon. ### Stopping To stop Stabber: