OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Functions
s_socket.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <signal.h>
#include "../e_os2.h"
#include "apps.h"
#include "s_apps.h"
#include <openssl/ssl.h>
#include "../e_os.h"

Go to the source code of this file.

Classes

struct  ghbn_cache_st
 

Macros

#define USE_SOCKETS
 
#define NON_MAIN
 
#define SOCKET_PROTOCOL   IPPROTO_TCP
 
#define GHBN_NUM   4
 

Functions

int init_client (int *sock, char *host, int port, int type)
 
int do_server (int port, int type, int *ret, int(*cb)(char *hostname, int s, unsigned char *context), unsigned char *context)
 
int extract_host_port (char *str, char **host_ptr, unsigned char *ip, short *port_ptr)
 
int extract_port (char *str, short *port_ptr)
 

Macro Definition Documentation

#define GHBN_NUM   4

Definition at line 566 of file s_socket.c.

#define NON_MAIN

Definition at line 81 of file s_socket.c.

#define SOCKET_PROTOCOL   IPPROTO_TCP

Definition at line 114 of file s_socket.c.

#define USE_SOCKETS

Definition at line 80 of file s_socket.c.

Function Documentation

int do_server ( int  port,
int  type,
int *  ret,
int(*)(char *hostname, int s, unsigned char *context)  cb,
unsigned char *  context 
)

Definition at line 287 of file s_socket.c.

int extract_host_port ( char *  str,
char **  host_ptr,
unsigned char *  ip,
short *  port_ptr 
)

Definition at line 474 of file s_socket.c.

int extract_port ( char *  str,
short *  port_ptr 
)

Definition at line 545 of file s_socket.c.

int init_client ( int *  sock,
char *  host,
int  port,
int  type 
)

Definition at line 237 of file s_socket.c.