#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.
|
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) |
|
#define SOCKET_PROTOCOL IPPROTO_TCP |
int do_server |
( |
int |
port, |
|
|
int |
type, |
|
|
int * |
ret, |
|
|
int(*)(char *hostname, int s, unsigned char *context) |
cb, |
|
|
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 |
|
) |
| |
int init_client |
( |
int * |
sock, |
|
|
char * |
host, |
|
|
int |
port, |
|
|
int |
type |
|
) |
| |