diff options
author | Eduardo Chappa <echappa@gmx.com> | 2013-02-03 00:59:38 -0700 |
---|---|---|
committer | Eduardo Chappa <echappa@gmx.com> | 2013-02-03 00:59:38 -0700 |
commit | 094ca96844842928810f14844413109fc6cdd890 (patch) | |
tree | e60efbb980f38ba9308ccb4fb2b77b87bbc115f3 /imap/src/c-client/tcp.h | |
download | alpine-094ca96844842928810f14844413109fc6cdd890.tar.xz |
Initial Alpine Version
Diffstat (limited to 'imap/src/c-client/tcp.h')
-rw-r--r-- | imap/src/c-client/tcp.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/imap/src/c-client/tcp.h b/imap/src/c-client/tcp.h new file mode 100644 index 00000000..b9f095a8 --- /dev/null +++ b/imap/src/c-client/tcp.h @@ -0,0 +1,59 @@ +/* ======================================================================== + * Copyright 1988-2007 University of Washington + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * + * ======================================================================== + */ + +/* + * Program: TCP/IP routines + * + * Author: Mark Crispin + * Networks and Distributed Computing + * Computing & Communications + * University of Washington + * Administration Building, AG-44 + * Seattle, WA 98195 + * Internet: MRC@CAC.Washington.EDU + * + * Date: 1 August 1988 + * Last Edited: 31 January 2007 + */ + + +/* Dummy definition overridden by TCP routines */ + +#ifndef TCPSTREAM +#define TCPSTREAM void +#endif + + +/* Function prototypes */ + +void *tcp_parameters (long function,void *value); +TCPSTREAM *tcp_open (char *host,char *service,unsigned long port); +TCPSTREAM *tcp_aopen (NETMBX *mb,char *service,char *usrbuf); +char *tcp_getline (TCPSTREAM *stream); +long tcp_getbuffer (TCPSTREAM *stream,unsigned long size,char *buffer); +long tcp_getdata (TCPSTREAM *stream); +long tcp_soutr (TCPSTREAM *stream,char *string); +long tcp_sout (TCPSTREAM *stream,char *string,unsigned long size); +void tcp_close (TCPSTREAM *stream); +char *tcp_host (TCPSTREAM *stream); +char *tcp_remotehost (TCPSTREAM *stream); +unsigned long tcp_port (TCPSTREAM *stream); +char *tcp_localhost (TCPSTREAM *stream); +char *tcp_clientaddr (void); +char *tcp_clienthost (void); +long tcp_clientport (void); +char *tcp_serveraddr (void); +char *tcp_serverhost (void); +long tcp_serverport (void); +char *tcp_canonical (char *name); +long tcp_isclienthost (char *host); |