Commit f61bc3e7 authored by Dafydd Harries's avatar Dafydd Harries
Browse files

nice_agent_recv_sock

darcs-hash:20070213185958-c9803-6e10b6706377ed58d5475f7d0f1efac386116481.gz
parent ea8b62f9
......@@ -918,6 +918,27 @@ nice_agent_recv (
}
guint
nice_agent_recv_sock (
NiceAgent *agent,
guint stream_id,
guint component_id,
guint sock,
guint buf_len,
gchar *buf)
{
NiceCandidate *candidate;
Stream *stream;
candidate = _local_candidate_lookup_by_fd (agent, sock);
g_assert (candidate);
stream = _stream_lookup (agent, candidate->stream_id);
g_assert (stream);
return _nice_agent_recv (agent, stream, stream->component,
candidate, buf_len, buf);
}
/**
* nice_agent_poll_read:
* @agent: A NiceAgent
......
......@@ -104,6 +104,15 @@ nice_agent_recv (
guint buf_len,
gchar *buf);
guint
nice_agent_recv_sock (
NiceAgent *agent,
guint stream_id,
guint component_id,
guint sock,
guint buf_len,
gchar *buf);
GSList *
nice_agent_poll_read (
NiceAgent *agent,
......
......@@ -17,6 +17,7 @@ T nice_agent_main_context_attach
T nice_agent_new
T nice_agent_poll_read
T nice_agent_recv
T nice_agent_recv_sock
T nice_agent_remove_stream
T nice_agent_send
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment