File indexing completed on 2024-04-21 04:58:42

0001 /* This file is part of the KDE project
0002    Copyright (C) 2009 Collabora Ltd <info@collabora.co.uk>
0003     @author George Goldberg <george.goldberg@collabora.co.uk>
0004    Copyright (C) 2007 Alessandro Praduroux <pradu@pradu.it>
0005    Copyright (C) 2001-2003 by Tim Jansen <tim@tjansen.de>
0006 
0007    This program is free software; you can redistribute it and/or
0008    modify it under the terms of the GNU General Public
0009    License as published by the Free Software Foundation; either
0010    version 2 of the License, or (at your option) any later version.
0011 
0012    This program is distributed in the hope that it will be useful,
0013    but WITHOUT ANY WARRANTY; without even the implied warranty of
0014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0015    General Public License for more details.
0016 
0017    You should have received a copy of the GNU General Public License
0018    along with this program; see the file COPYING.  If not, write to
0019    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0020    Boston, MA 02110-1301, USA.
0021 */
0022 
0023 #ifndef SOCKETHELPERS_H
0024 #define SOCKETHELPERS_H
0025 
0026 #include <QString>
0027 
0028 QString peerAddress(int sock);
0029 unsigned short peerPort(int sock);
0030 
0031 QString localAddress(int sock);
0032 unsigned short localPort(int sock);
0033 
0034 #endif