cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: WinCE Support -2

From: Sonia Subramanian <sonia_subramanian_at_symantec.com>
Date: Fri, 7 Jul 2006 11:06:27 -0700

Just commenting it out without adding the ported wince.h causes a lot of
errors in other files that use time and types. I tried removing
timeval.h and parsedate.h to see if they were really required and all
includes etc. A few places that I don't think can be removed are
urldata.c and connect.c

CURLcode Curl_connecthost(struct connectdata *conn, /* context */
                          struct Curl_dns_entry *remotehost, /* use this
one */
                          curl_socket_t *sockconn, /* the connected
socket */
                          Curl_addrinfo **addr, /* the one we used
*/
                          bool *connected) /* really
connected? */
{
  struct SessionHandle *data = conn->data;
  curl_socket_t sockfd = CURL_SOCKET_BAD;
  int aliasindex;
  int num_addr;
  Curl_addrinfo *ai;
  Curl_addrinfo *curr_addr;

  struct timeval after;
  struct timeval before = Curl_tvnow();

  /*************************************************************
   * Figure out what maximum time we have left
   *************************************************************/
  long timeout_ms= DEFAULT_CONNECT_TIMEOUT;
  long timeout_per_addr;

  *connected = FALSE; /* default to not connected */

  if(data->set.timeout || data->set.connecttimeout) {
    long has_passed;

    /* Evaluate in milliseconds how much time that has passed */
    has_passed = Curl_tvdiff(Curl_tvnow(),
data->progress.t_startsingle);

#ifndef min
#define min(a, b) ((a) < (b) ? (a) : (b))
#endif

The struct timeval after - fails to compile.
I think we will have to use the wince ports. In case you do complete
compiling it on WinCE our team would appreciate the update and the
help.
In general I do not like hacking the code by adding other files, but
since this is a wince port of the same I am guessing it is harmless and
plan to test it out. I don't think I can remove connect.c.

Thanks very much for all the help.

Regards,
Sonia.

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Dan Fandrich
Sent: Friday, July 07, 2006 10:36 AM
To: libcurl development
Subject: Re: WinCE Support -2

On Fri, Jul 07, 2006 at 06:53:51AM -0700, Sonia Subramanian wrote:
> That contained all the files, I replaced the win32 config with the
wince
> config. It still gave me the errors. I removed the netware file as
> mentioned in the prev post and it builds, but I still get 70 warnings.

> I still had to use wince versions of time etc from other sources.

That explains the problems someone else reported here a week ago with
MSVC.
That project file obviously needs to be fixed.

> If there is a list of files that wince would not require I would
> appreciate the same or the evc project file, there is a workspace but
no
> projects in it.

The file lib/Makefile.inc is a good starting point for necessary generic
libcurl files. Theoretically, you shouldn't need to get files like
time.h
from strange places to make it compile, although the WinCE code has
probably
bit rotted since it was used last. In particular, config-win32ce.h may
need to be updated.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address
service
          Let webmasters know that your web site has moved
Received on 2006-07-07