20 lines
516 B
C
20 lines
516 B
C
|
/* */
|
||
|
/* MiniUPnP project
|
||
|
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
||
|
* (c) 2006-2011 Thomas Bernard
|
||
|
* This software is subject to the conditions detailed
|
||
|
* in the LICENCE file provided within the distribution */
|
||
|
|
||
|
#ifndef __PORTINUSE_H__
|
||
|
#define __PORTINUSE_H__
|
||
|
|
||
|
/* portinuse()
|
||
|
* determine wither a port is already in use
|
||
|
* on a given interface.
|
||
|
* returns: 0 not in use, 1 in use */
|
||
|
int
|
||
|
port_in_use(const char *if_name, unsigned port, int proto, const char *iaddr, unsigned iport);
|
||
|
|
||
|
#endif
|
||
|
|