Parent Directory | Revision Log | Patch
revision 1.3 by hauk, Tue Jun 17 17:54:15 2003 UTC | revision 1.4 by hauk, Wed Jul 2 19:30:01 2003 UTC | |
---|---|---|
# | Line 77 struct Socket_T { | Line 77 struct Socket_T { |
77 | Socket_T socket_new(char *host, int port, int protocol, int use_ssl) { | Socket_T socket_new(char *host, int port, int protocol, int use_ssl) { |
78 | ||
79 | int s; | int s; |
80 | Socket_T S; | |
81 | ||
82 | ASSERT(host); | ASSERT(host); |
83 | ||
84 | if((s= create_socket(host, port, protocol)) != -1) { | if((s= create_socket(host, port, protocol)) != -1) { |
85 | ||
86 | Socket_T S= NEW(S); | NEW(S); |
87 | S->fd= s; | S->fd= s; |
88 | S->port= port; | S->port= port; |
89 | S->protocol= protocol; | S->protocol= protocol; |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |