From b21832e8d922351169ab4d06e7993ed401fe0924 Mon Sep 17 00:00:00 2001 From: Dusan Durech Date: Sun, 1 Mar 2009 18:09:11 +0100 Subject: API to UDP and TCP has been modified so that they can be used independet from protocols IPv4 and IPv6 --- src/client/client.c | 8 ++++---- src/client/client.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/client') 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; diff --git a/src/client/client.h b/src/client/client.h index 6795c92..8ff0d3d 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -11,7 +11,7 @@ # define CLIENT_BUFFER_LIMIT 4096 -extern int initClient(char *ip, int port, int proto); +extern int initClient(char *ip, int port); extern void sendServer(char *msg); extern void eventClient(); extern void quitClient(); -- cgit v1.2.3