Skip to content

Commit

Permalink
Merge pull request #99 from bjia56/buffer-sizes
Browse files Browse the repository at this point in the history
signaling: configurable buffer sizes via macros
  • Loading branch information
sepfy authored Aug 25, 2024
2 parents 385abdf + d483890 commit a7f6052
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/agent.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,17 @@
#include "ice.h"
#include "base64.h"

#ifndef AGENT_MAX_DESCRIPTION
#define AGENT_MAX_DESCRIPTION 40960
#endif

#ifndef AGENT_MAX_CANDIDATES
#define AGENT_MAX_CANDIDATES 10
#endif

#ifndef AGENT_MAX_CANDIDATE_PAIRS
#define AGENT_MAX_CANDIDATE_PAIRS 100
#endif

typedef enum AgentState {

Expand Down
4 changes: 4 additions & 0 deletions src/peer_signaling.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@

#define KEEP_ALIVE_TIMEOUT_SECONDS 60
#define CONNACK_RECV_TIMEOUT_MS 1000

#ifndef BUF_SIZE
#define BUF_SIZE 4096
#endif

#define TOPIC_SIZE 128

#define HOST_LEN 64
Expand Down

0 comments on commit a7f6052

Please sign in to comment.