2 Copyright 2004-2005 Chris Tallon
3 Copyright 2003-2004 University Of Bradford
5 This file is part of VOMP.
7 VOMP is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 VOMP is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with VOMP; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
33 #include <sys/socket.h>
34 #include <netinet/in.h>
36 #include <arpa/inet.h>
37 #include <sys/ioctl.h>
53 int connectTo(char *host, unsigned short port);
54 void assignSocket(int tsocket);
57 void disableTimeout();
59 int sendPacket(void *, size_t size);
60 UCHAR* receivePacket();
63 int readData(UCHAR* buffer, int totalBytes);
65 static void dump(unsigned char* data, ULONG size);
67 void getMAC(char* dest); // copies 6 MAC bytes to dest
68 void setReceiveWindow(size_t rxBufferSize);
76 static UCHAR dcc(UCHAR c);