Changeset b1ae26


Ignore:
Timestamp:
10/05/08 13:49:56 (4 years ago)
Author:
Tomash Brechko <tomash.brechko@…>
Branches:
master
Children:
8ba7ce
Parents:
e61b4e
git-author:
Tomash Brechko <tomash.brechko@…> (10/04/08 18:02:27)
git-committer:
Tomash Brechko <tomash.brechko@…> (10/05/08 13:49:56)
Message:

Remove dead code. There are no plans to use UDP for now.

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/client.c

    re61b4e rb1ae26  
    15781578        { 
    15791579          state->fd = client_connect_inet(s->host, s->port, 
    1580                                           1, c->connect_timeout); 
     1580                                          c->connect_timeout); 
    15811581          /* This is to trigger actual reset.  */ 
    15821582          state->socket_mode = TCP_THROUGHPUT; 
  • src/connect.c

    rc346b2 rb1ae26  
    3333 
    3434int 
    35 client_connect_inet(const char *host, const char *port, int stream, 
    36                     int timeout) 
     35client_connect_inet(const char *host, const char *port, int timeout) 
    3736{ 
    3837  struct addrinfo hint, *addr, *a; 
     
    4342  hint.ai_flags = AI_ADDRCONFIG; 
    4443#endif /* AI_ADDRCONFIG */ 
    45   hint.ai_socktype = stream ? SOCK_STREAM : SOCK_DGRAM; 
     44  hint.ai_socktype = SOCK_STREAM; 
    4645  res = getaddrinfo(host, port, &hint, &addr); 
    4746  if (res != 0) 
  • src/connect.h

    rcd76f9 rb1ae26  
    3030extern 
    3131int 
    32 client_connect_inet(const char *host, const char *port, int stream, 
    33                     int timeout); 
     32client_connect_inet(const char *host, const char *port, int timeout); 
    3433 
    3534extern 
Note: See TracChangeset for help on using the changeset viewer.