Objective Systems, Inc.  

ooports.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2004-2009 by Objective Systems, Inc.
00003  *
00004  * This software is furnished under an open source license and may be
00005  * used and copied only in accordance with the terms of this license.
00006  * The text of the license may generally be found in the root
00007  * directory of this installation in the COPYING file.  It
00008  * can also be viewed online at the following URL:
00009  *
00010  *   http://www.obj-sys.com/open/license.html
00011  *
00012  * Any redistributions of this file including modified versions must
00013  * maintain this copyright notice.
00014  *
00015  *****************************************************************************/
00016 
00022 #ifndef _OOPORTS_H_
00023 #define _OOPORTS_H_
00024 
00025 #include "ootypes.h"
00026 
00027 typedef enum OOH323PortType {
00028    OOTCP, OOUDP, OORTP
00029 } OOH323PortType;
00030 
00031 
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035 
00036 #ifndef EXTERN
00037 #ifdef MAKE_DLL
00038 #define EXTERN __declspec(dllexport)
00039 #else
00040 #define EXTERN
00041 #endif /* MAKE_DLL */
00042 #endif /* EXTERN */
00043 
00053 EXTERN int ooGetNextPort (OOH323PortType type);
00054 
00067 EXTERN int ooBindPort (OOH323PortType type, OOSOCKET socket, char *ip);
00068 
00081 #ifdef _WIN32
00082 EXTERN int ooBindOSAllocatedPort(OOSOCKET socket, char *ip);
00083 #endif
00084 
00085 #ifdef __cplusplus
00086 }
00087 #endif
00088 
00089 #endif

This file was last modified on 28 May 2010.
Objective Open H.323 Stack, 0.9.1