current version
[opsoft_test.git] / gclib2 / modules / Net / INET / gc_network.h
blobb79a2527aabbc70a75d98c3854a1f63f10014568
1 /*
2 * (c) Oleg Puchinin 2008
3 * graycardinalster@gmail.com
5 */
7 #ifndef DEFINE_NETWORK_H
8 #define DEFINE_NETWORK_H
10 #include <stdint.h>
11 #include <netinet/in.h>
12 #include <arpa/inet.h>
14 __export int sendToPath(void * lp_data,int int_size,char * lpsz_path) ;
15 __export int sendToSocket (int sock, void * lp_data, int int_size, const char * address, uint16_t port) ;
16 __export int sendTo (void * lp_data, int int_size, const char * address, uint16_t port);
17 __export int dBind (int sock, char * addr, int port) ;
18 __export int dReuseAddr (int sock) ;
20 __export int dSocket () ;
21 __export int dUdpSocket () ;
22 __export int dConnect (int sock, const char * addr, uint16_t port) ;
23 __export int getHostByName(const char * hostName,struct in_addr * address) ;
24 __export char * getNameByHost(struct in_addr * addr) ;
25 __export int recvFrom (int sd, char * buf, int size, char * peer_ip, uint16_t * peer_port) ;
26 __export int setBroadcast (int fd) ;
27 __export int pollScan (struct pollfd *p, int count, int pos) ;
29 __export char * url_protocol (char * url) ;
30 __export char * url_host (char * url) ;
31 __export char * url_file (char * url) ;
33 bool isIP (char * S);
35 #endif