/** * Wrapper API for socket communication * * @author sjlee@suprema.co.kr * @see */ /* * Copyright (c) 2006 Suprema Co., Ltd. All Rights Reserved. * * This software is the confidential and proprietary information of * Suprema Co., Ltd. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Suprema. */ #ifndef __BS_SOCKET_H__ #define __BS_SOCKET_H__ #define WIN32_LEAN_AND_MEAN #include #include "BS_Error.h" #ifdef __cplusplus extern "C" { #endif BS_RET_CODE BS_ConnectSocket( int handle ); int BS_ReadSocket( int handle, unsigned char* buf, int size, int timeout ); int BS_WriteSocket( int handle, unsigned char* buf, int size, int timeout ); int BS_CalculateSocketTimeout( int handle, int dataSize ); int BS_ClearSocketReadBuffer( int handle ); int BS_ClearSocketWriteBuffer( int handle ); #ifdef __cplusplus } #endif #endif