Revision 92a361ca src/pstreamer.c

View differences:

src/pstreamer.c
321 321

  
322 322
	return res;
323 323
}
324

  
325
const char * pstreamer_source_ipaddr(const struct pstreamer *ps)
326
{
327
	if (ps)
328
		return ps->source_ip;
329
	return NULL;
330
}
331

  
332
const char * pstreamer_source_port(const struct pstreamer *ps)
333
{
334
	static char buff[6];
335

  
336
	if (ps)
337
	{
338
		sprintf(buff, "%"PRId16"", ps->source_port);
339
		return buff;
340
	}
341
	return NULL;
342
}

Also available in: Unified diff