mirror of
https://repo.or.cz/socat.git
synced 2025-07-14 15:23:24 +00:00
socat V1.6.0.0 (initial GIT commit)
This commit is contained in:
commit
b819572f5e
170 changed files with 59193 additions and 0 deletions
37
xio-socks.h
Normal file
37
xio-socks.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
/* $Id: xio-socks.h,v 1.6 2004/06/06 19:03:28 gerhard Exp $ */
|
||||
/* Copyright Gerhard Rieger 2001-2004 */
|
||||
/* Published under the GNU General Public License V.2, see file COPYING */
|
||||
|
||||
#ifndef __xio_socks_h_included
|
||||
#define __xio_socks_h_included 1
|
||||
|
||||
struct socks4 {
|
||||
uint8_t version;
|
||||
uint8_t action;
|
||||
uint16_t port;
|
||||
uint32_t dest;
|
||||
char userid[1]; /* just to have access via this struct */
|
||||
} ;
|
||||
#define SIZEOF_STRUCT_SOCKS4 8
|
||||
|
||||
extern const struct optdesc opt_socksport;
|
||||
extern const struct optdesc opt_socksuser;
|
||||
|
||||
extern const struct addrdesc addr_socks4_connect;
|
||||
extern const struct addrdesc addr_socks4a_connect;
|
||||
|
||||
extern int _xioopen_socks4_prepare(const char *targetport, struct opt *opts, char **socksport, struct socks4 *sockhead, size_t *headlen);
|
||||
extern int
|
||||
_xioopen_socks4_connect0(struct single *xfd,
|
||||
const char *hostname, /* socks target host */
|
||||
int socks4a,
|
||||
struct socks4 *sockhead,
|
||||
ssize_t *headlen, /* get available space,
|
||||
return used length*/
|
||||
int level);
|
||||
extern int _xioopen_socks4_connect(struct single *xfd,
|
||||
struct socks4 *sockhead,
|
||||
size_t headlen,
|
||||
int level);
|
||||
|
||||
#endif /* !defined(__xio_socks_h_included) */
|
Loading…
Add table
Add a link
Reference in a new issue