MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / send_pr_buffer

Function send_pr_buffer

modules/tm/t_funcs.c:61–79  ·  view source on GitHub ↗

----------------------------------------------------- */

Source from the content-addressed store, hash-verified

59
60/* ----------------------------------------------------- */
61int send_pr_buffer( struct retr_buf *rb, void *buf, int len,
62#ifdef EXTRA_DEBUG
63 char* file, const char *function, int line,
64#endif
65 void* ctx)
66{
67 if (buf && len && rb )
68 return msg_send( rb->dst.send_sock, rb->dst.proto, &rb->dst.to,
69 rb->dst.proto_reserved1, buf, len, ctx);
70 else {
71#ifdef EXTRA_DEBUG
72 LM_CRIT("sending an empty buffer from %s: %s (%d)\n",file,
73 function, line);
74#else
75 LM_CRIT("attempt to send an empty buffer\n");
76#endif
77 return -1;
78 }
79}
80
81
82

Callers

nothing calls this directly

Calls 1

msg_sendFunction · 0.85

Tested by

no test coverage detected