diff options
| author | Dusan Durech <dusan@debian.debian> | 2009-03-01 18:09:11 +0100 |
|---|---|---|
| committer | Dusan Durech <dusan@debian.debian> | 2009-03-01 18:09:11 +0100 |
| commit | b21832e8d922351169ab4d06e7993ed401fe0924 (patch) | |
| tree | 882f8d3deb61ea8a4586a06c9c5cb5f2e8206054 /src/client/client.c | |
| parent | 0fe84801e04022b1c92de363ec907fa6dd63bfd2 (diff) | |
API to UDP and TCP has been modified so that they can be used independet from protocols IPv4 and IPv6
Diffstat (limited to 'src/client/client.c')
| -rw-r--r-- | src/client/client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/client.c b/src/client/client.c index e92a238..74d6b0a 100644 --- a/src/client/client.c +++ b/src/client/client.c @@ -88,9 +88,9 @@ static proto_cmd_client_t *findCmdProto(char *msg) return NULL; } -static int initUdpClient(char *ip, int port, int proto) +static int initUdpClient(char *ip, int port) { - sock_server_udp = connectUdpSocket(ip, port, proto); + sock_server_udp = connectUdpSocket(ip, port); if (sock_server_udp == NULL) { return -1; @@ -101,7 +101,7 @@ static int initUdpClient(char *ip, int port, int proto) return 0; } -int initClient(char *ip, int port, int proto) +int initClient(char *ip, int port) { char name[STR_NAME_SIZE]; int ret; @@ -119,7 +119,7 @@ int initClient(char *ip, int port, int proto) clientRecvBuffer = newBuffer(CLIENT_BUFFER_LIMIT); clientSendBuffer = newBuffer(CLIENT_BUFFER_LIMIT); - ret = initUdpClient(ip, port, proto); + ret = initUdpClient(ip, port); if (ret < 0) { return -1; |