mirror of
https://github.com/tribes2/engine.git
synced 2026-01-20 03:34:48 +00:00
35 lines
839 B
C
35 lines
839 B
C
|
|
//-----------------------------------------------------------------------------
|
||
|
|
// V12 Engine
|
||
|
|
//
|
||
|
|
// Copyright (c) 2001 GarageGames.Com
|
||
|
|
// Portions Copyright (c) 2001 by Sierra Online, Inc.
|
||
|
|
//-----------------------------------------------------------------------------
|
||
|
|
|
||
|
|
#ifndef _ASYNC_H_
|
||
|
|
#define _ASYNC_H_
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#define FD_READ 0x0001
|
||
|
|
#define FD_WRITE 0x0002
|
||
|
|
#define FD_OOB 0x0004
|
||
|
|
#define FD_ACCEPT 0x0008
|
||
|
|
#define FD_CONNECT 0x0010
|
||
|
|
#define FD_CLOSE 0x0020
|
||
|
|
|
||
|
|
typedef int (*AsyncCallback)( int fd, int event, int status );
|
||
|
|
|
||
|
|
|
||
|
|
extern int AsyncInit( void );
|
||
|
|
extern int AsyncShutdown( void );
|
||
|
|
extern int AsyncCancel( int fd );
|
||
|
|
extern int AsyncSelect( int fd, AsyncCallback callback, int mask );
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif
|