diff options
author | phintuka <phintuka> | 2007-01-20 17:24:40 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2007-01-20 17:24:40 +0000 |
commit | 0667155a408735fef09af71b4e098531ad2a4eab (patch) | |
tree | 777824d50f7af64dfa92487ae38a6d212b653ec7 /tools/cxsocket.h | |
parent | 5cbee975c01f90383d91875a79e6a5e00ba6ed81 (diff) | |
download | xineliboutput-0667155a408735fef09af71b4e098531ad2a4eab.tar.gz xineliboutput-0667155a408735fef09af71b4e098531ad2a4eab.tar.bz2 |
getsockname, getpeername
Diffstat (limited to 'tools/cxsocket.h')
-rw-r--r-- | tools/cxsocket.h | 5 |
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); |