00001 /* 00002 * Warning: this version is only a demonstration for LZHL algorithm usage; 00003 * non-blocking sockets and OOB aren't supported 00004 */ 00005 00006 #ifdef __cplusplus 00007 extern "C" { 00008 #endif 00009 00010 SOCKET lzhl_socket( int af, int type, int protocol ); 00011 SOCKET lzhl_accept( SOCKET s, struct sockaddr* addr, int* addrlen ); 00012 int lzhl_send( SOCKET s, const char* buf, int len, int flags ); 00013 int lzhl_recv( SOCKET s, char* buf, int len, int flags ); 00014 int lzhl_closesocket( SOCKET sock ); 00015 00016 #ifdef __cplusplus 00017 } 00018 #endif