summaryrefslogtreecommitdiff
path: root/tools/cxsocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/cxsocket.h')
-rw-r--r--tools/cxsocket.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/cxsocket.h b/tools/cxsocket.h
index 796b94bc..92954f3c 100644
--- a/tools/cxsocket.h
+++ b/tools/cxsocket.h
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: cxsocket.h,v 1.19 2007-01-20 16:50:47 phintuka Exp $
+ * $Id: cxsocket.h,v 1.20 2007-01-20 17:24:40 phintuka Exp $
*
*/
@@ -80,6 +80,9 @@ class cxSocket {
bool set_nodelay(bool state);
ssize_t tx_buffer_size(void);
ssize_t tx_buffer_free(void);
+ int getsockname(struct sockaddr *name, socklen_t *namelen);
+ int getpeername(struct sockaddr *name, socklen_t *namelen);
+
bool connect(struct sockaddr *addr, socklen_t len);
bool connect(const char *ip, int port);