summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-11-10 05:26:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:02 -0500
commit4c9ba2ffa13ebfe7e8a289ad3d27864fef7917d6 (patch)
treea7f57c06211571d1b23f6c71dfc6dd6c69d90c63 /source4/libcli
parent64525309e3a430d0f801cfad5ae347d4242ff259 (diff)
downloadsamba-4c9ba2ffa13ebfe7e8a289ad3d27864fef7917d6.tar.gz
samba-4c9ba2ffa13ebfe7e8a289ad3d27864fef7917d6.tar.bz2
samba-4c9ba2ffa13ebfe7e8a289ad3d27864fef7917d6.zip
r11632: removed 2 unused functions
(This used to be commit fa904afed93a350dd0dcd3cddc1521a4a1ad6711)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/raw/clisocket.c33
1 files changed, 0 insertions, 33 deletions
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
@@ -194,39 +194,6 @@ void smbcli_sock_set_options(struct smbcli_socket *sock, const char *options)
}
/****************************************************************************
- 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
****************************************************************************/
struct smbcli_socket *smbcli_sock_connect_byname(const char *host, int port,