"Fossies" - the Fresh Open Source Software Archive

Member "tlswrap-1.04/network.h" (25 Nov 2006, 639 Bytes) of package /linux/privat/old/tlswrap-1.04.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "network.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef _NETWORK_H_
    2 #define _NETWORK_H_
    3 #include <sys/types.h>
    4 #ifndef WIN32
    5 #include <sys/socket.h>
    6 #include <netdb.h>
    7 #endif
    8 
    9 #include "tlswrap.h"
   10 
   11 void setup_connect_1(struct user_data *, int, char *, char *, int);
   12 void setup_connect_2(struct user_data *, struct dns_msg *, int);
   13 #ifdef WIN32
   14 SOCKET
   15 #else
   16 int
   17 #endif
   18 setup_connect(const char *, const char *, unsigned int *, int *);
   19 #ifdef WIN32
   20 void dns_helper(void *); // __cdecl 
   21 #else
   22 void dns_helper(int, int);
   23 #endif
   24 #ifdef WIN32
   25 SOCKET
   26 #else
   27 int
   28 #endif
   29 setup_listen(int, const char *, char *, int);
   30 int get_local_ip(int, char *, int);
   31 int get_remote_ip(int, char *, int);
   32 #endif