Logo Search packages:      
Sourcecode: nbsmtp version File versions  Download package

fdutil.c File Reference

Detailed Description

This file has support for writing and readding to and from the socket.

Fernando J. Pereda <ferdy@ferdyx.org>

Ricardo Cervera Navarro <ricardo@zonasiete.org>

This is part of nbsmtp. nbsmtp is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

nbsmtp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with nbsmtp; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

See COPYING for details.

Definition in file fdutil.c.

#include <string.h>
#include "fdutil.h"
#include "servinfo.h"
#include "util.h"

Go to the source code of this file.


ssize_t fd_getc (servinfo_t *serverinfo, char *c)
 Gets a character from a socket.
char * fd_gets (char *buf, int size, servinfo_t *serverinfo)
 Gets a number of chars from a socket.
ssize_t fd_putc (servinfo_t *serverinfo, char *c)
 Write a character to the socket.
ssize_t fd_puts (servinfo_t *serverinfo, const char *buf, size_t count)
 Puts a number of chars to a socket.

Generated by  Doxygen 1.6.0   Back to index