qCNC 0.82-alpha
/home/trilog/Desktop/project/gui/Final/src/NetWork.cpp File Reference
#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"
Include dependency graph for NetWork.cpp:

Go to the source code of this file.

Functions

int connectSocket (char *host, int port)
protocolread_socket (int *socket, protocol *temp)
int closeSocket (int *sock)
int write_socket (int *sock, protocol *buffer)

Detailed Description

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.

----------------------------------------------------------------------

Author:
Ron Ablinger <trilog_studios@nerdshack.com>
Date:
2011/06/26
Version:
Version:
0.82-alpha
Todo:
-

Last Modified: 2010/06/26

Author:
Trilog Studios<Ron Ablinger>

Definition in file NetWork.cpp.


Function Documentation

int closeSocket ( int *  sock)

Definition at line 84 of file NetWork.cpp.

Here is the caller graph for this function:

int connectSocket ( char *  host,
int  port 
)

Definition at line 54 of file NetWork.cpp.

Here is the caller graph for this function:

protocol* read_socket ( int *  socket,
protocol temp 
)

Definition at line 71 of file NetWork.cpp.

Here is the caller graph for this function:

int write_socket ( int *  sock,
protocol buffer 
)

Definition at line 93 of file NetWork.cpp.

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines