Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » SmtpMail class
Re: SmtpMail class [message #5761 is a reply to message #5704] Fri, 13 October 2006 13:28 Go to previous messageGo to previous message
nicomesas is currently offline  nicomesas
Messages: 104
Registered: September 2006
Location: Barcelona, Spain
Experienced Member
EOH Luigi!

I have looked for information about all this and have found documents (he is Spanish) that say to me that in Windows we need to include the file winsock.h has to use the unique include file.

Take a look to the next code present in Web/socket.h

#if defined(PLATFORM_WIN32)
#define W_P(w, p) w
#if !defined(PLATFORM_CYGWIN)
#include <winsock2.h>
#endif
typedef int socklen_t;
#elif defined(PLATFORM_POSIX)
#define W_P(w, p) p
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
//#include <libiberty.h>
enum
{
	INVALID_SOCKET = -1,
	TCP_NODELAY    = 1,
	SD_RECEIVE     = 0,
	SD_SEND        = 1,
	SD_BOTH        = 2,
};
typedef int SOCKET;
#else
#error Unsupported platform
#endif//PLATFORM switch


May be you can test it in windoz!

The idea comes from this page http://www.arrakis.es/~dmrq/beej/intro.html#windows.
In order to translate it of automatic form (it is not perfect, but enough aid) you could use the following address http://babelfish.altavista.com/tr

Nico
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: method in separate process
Next Topic: Socket: how to check wether new data arrived? timeout = NULL?
Goto Forum:
  


Current Time: Sat Aug 16 17:28:54 CEST 2025

Total time taken to generate the page: 0.05231 seconds