/***************************************************************************
                            qt_QServerSocket.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "qt_QServerSocket.h"
}

#include <qserversocket.h>

void qt_del_QServerSocket( qt_QServerSocket* p ){
	delete (QServerSocket*) p;
}
int qt_QServerSocket_ok( qt_QServerSocket* instPointer){
	return (int) ((QServerSocket*)instPointer)->ok();
}
unsigned short qt_QServerSocket_port( qt_QServerSocket* instPointer){
	return (unsigned short) ((QServerSocket*)instPointer)->port();
}
int qt_QServerSocket_socket( qt_QServerSocket* instPointer){
	return (int) ((QServerSocket*)instPointer)->socket();
}
void qt_QServerSocket_setSocket( qt_QServerSocket* instPointer,int socket){
	((QServerSocket*)instPointer)->setSocket((int)socket);
	return;
}
qt_QHostAddress* qt_QServerSocket_address( qt_QServerSocket* instPointer){
	return (qt_QHostAddress*)new QHostAddress(((QServerSocket*)instPointer)->address());
}
void qt_QServerSocket_newConnection( qt_QServerSocket* instPointer,int socket){
	((QServerSocket*)instPointer)->newConnection((int)socket);
	return;
}
