/** * Wrapper API for UDP 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_UDP_H__ #define __BS_SOCKET_UDP_H__ #define WIN32_LEAN_AND_MEAN #include #ifdef __cplusplus extern "C" { #endif int BS_ReadSocketUDP( int handle, unsigned char* buf, int size, int timeout ); int BS_WriteSocketUDP( int handle, unsigned char* buf, int size, int timeout ); int BS_CalculateSocketTimeoutUDP( int handle, int dataSize ); int BS_ClearSocketReadBufferUDP( int handle ); int BS_ClearSocketWriteBufferUDP( int handle ); void BS_GetUDPFromAddress( struct sockaddr_in* fromAddr ); #ifdef __cplusplus } #endif #endif