|
qCNC 0.82-alpha
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <arpa/inet.h>#include <sys/types.h>#include <netinet/in.h>#include <sys/socket.h>#include <QtGui>#include "NetWork.h"
Go to the source code of this file.
Functions | |
| int | connectSocket (char *host, int port) |
| protocol * | read_socket (int *socket, protocol *temp) |
| int | closeSocket (int *sock) |
| int | write_socket (int *sock, protocol *buffer) |
qCNC
----------------------------------------------------------------------
Description: This File contains the functions for Socket/TCP communication
----------------------------------------------------------------------
LICENSE: Copyright (C) 2011 by Ron Ablinger trilog_studios@nerdshack.com
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
----------------------------------------------------------------------
Last Modified: 2010/06/26
Definition in file NetWork.cpp.
| int closeSocket | ( | int * | sock | ) |
| int connectSocket | ( | char * | host, |
| int | port | ||
| ) |
| int write_socket | ( | int * | sock, |
| protocol * | buffer | ||
| ) |