Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F63724039
netutil.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, May 22, 02:29
Size
517 B
Mime Type
text/x-c
Expires
Fri, May 24, 02:29 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17810879
Attached To
R10093 CamTrk client
netutil.h
View Options
#ifndef __NETUTIL_H
#define __NETUTIL_H
/**
* \file netutil.h
* \author Alessandro Crespi
* \date April 2009
* \brief Simple network utilities header file
*/
#include <cstdio>
#include <cstring>
#include <stdint.h>
#ifdef _WIN32
#include <windows.h>
#else
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
#include <unistd.h>
#endif
uint32_t gethostaddress(const char* hn);
int block_recv(const int sk, uint8_t* data, unsigned int len);
#endif
Event Timeline
Log In to Comment