From 4c9ba2ffa13ebfe7e8a289ad3d27864fef7917d6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 10 Nov 2005 05:26:53 +0000 Subject: r11632: removed 2 unused functions (This used to be commit fa904afed93a350dd0dcd3cddc1521a4a1ad6711) --- source4/libcli/raw/clisocket.c | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'source4/libcli/raw') diff --git a/source4/libcli/raw/clisocket.c b/source4/libcli/raw/clisocket.c index 8b8a0b0faf..be25b36007 100644 --- a/source4/libcli/raw/clisocket.c +++ b/source4/libcli/raw/clisocket.c @@ -193,39 +193,6 @@ void smbcli_sock_set_options(struct smbcli_socket *sock, const char *options) socket_set_option(sock->sock, options, NULL); } -/**************************************************************************** - Write to socket. Return amount written. -****************************************************************************/ -NTSTATUS smbcli_sock_write(struct smbcli_socket *sock, const uint8_t *data, - size_t len, size_t *nsent) -{ - DATA_BLOB blob; - - if (sock->sock == NULL) { - return NT_STATUS_CONNECTION_DISCONNECTED; - } - - blob.data = discard_const(data); - blob.length = len; - - return socket_send(sock->sock, &blob, nsent, 0); -} - - -/**************************************************************************** - Read from socket. return amount read -****************************************************************************/ -NTSTATUS smbcli_sock_read(struct smbcli_socket *sock, uint8_t *data, - size_t len, size_t *nread) -{ - if (sock->sock == NULL) { - return NT_STATUS_CONNECTION_DISCONNECTED; - } - - return socket_recv(sock->sock, data, len, nread, 0); -} - - /**************************************************************************** resolve a hostname and connect ****************************************************************************/ -- cgit