Changeset b1ae26
- Timestamp:
- 10/05/08 13:49:56 (4 years ago)
- 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)
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/client.c
re61b4e rb1ae26 1578 1578 { 1579 1579 state->fd = client_connect_inet(s->host, s->port, 1580 1,c->connect_timeout);1580 c->connect_timeout); 1581 1581 /* This is to trigger actual reset. */ 1582 1582 state->socket_mode = TCP_THROUGHPUT; -
src/connect.c
rc346b2 rb1ae26 33 33 34 34 int 35 client_connect_inet(const char *host, const char *port, int stream, 36 int timeout) 35 client_connect_inet(const char *host, const char *port, int timeout) 37 36 { 38 37 struct addrinfo hint, *addr, *a; … … 43 42 hint.ai_flags = AI_ADDRCONFIG; 44 43 #endif /* AI_ADDRCONFIG */ 45 hint.ai_socktype = stream ? SOCK_STREAM : SOCK_DGRAM;44 hint.ai_socktype = SOCK_STREAM; 46 45 res = getaddrinfo(host, port, &hint, &addr); 47 46 if (res != 0) -
src/connect.h
rcd76f9 rb1ae26 30 30 extern 31 31 int 32 client_connect_inet(const char *host, const char *port, int stream, 33 int timeout); 32 client_connect_inet(const char *host, const char *port, int timeout); 34 33 35 34 extern
Note: See TracChangeset
for help on using the changeset viewer.
