1 Apr 2005 01:26
Re: Extraneous CRs in transfer of draft-crocker-email-arch-04.txt
Hector Santos <hsantos <at> santronics.com>
2005-03-31 23:26:21 GMT
2005-03-31 23:26:21 GMT
And just for final completness and the interested "Can't we all just get
along" Windows crowd..
/* f.c -- fetch via HTTP and dump the entire session to stdout
very stupidly.
- ported to Windows to illustrate need to change the stdout device
default _O_TEXT cooked mode setting to _O_BINARY raw mode.
*/
#ifdef _WIN32
#include <windows.h>
#include <stdio.h>
#include <string.h>
#include <winsock.h>
#include <fcntl.h>
#include <io.h>
#pragma comment(lib,"wsock32.lib")
#define close(a) closesocket(a)
#define read(a,b,c) recv(a,b,c,0)
#define write(a,b,c) send(a,b,c,0)
#else
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
(Continue reading)
RSS Feed