Changeset 2286 for trunk/gsdl/src/w32server/netio.h
- Timestamp:
- 2001-04-05T17:08:52+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/w32server/netio.h
r1203 r2286 1 /* 2 Copyright (C) 1996 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2 of the License, or 7 (at your option) any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License 15 along with this program; if not, write to the Free Software 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 17 18 The author can be contacted via Email at [email protected] 19 */ 1 /********************************************************************** 2 * 3 * netio.h 4 * Copyright (C) 1996 5 * 6 * A component of the fnord webserver written by [email protected]. 7 * 8 * Altered for use with the Greenstone digital library software by the 9 * New Zealand Digital Library Project at the University of Waikato, 10 * New Zealand. 11 * 12 * This program is free software; you can redistribute it and/or modify 13 * it under the terms of the GNU General Public License as published by 14 * the Free Software Foundation; either version 2 of the License, or 15 * (at your option) any later version. 16 * 17 * This program is distributed in the hope that it will be useful, 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 * GNU General Public License for more details. 21 * 22 * You should have received a copy of the GNU General Public License 23 * along with this program; if not, write to the Free Software 24 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 25 * 26 *********************************************************************/ 20 27 21 28 /* … … 51 58 Function Name: Init Net IO 52 59 Purpose: Initializes the module so calls can be made querying network 53 60 information for the local macnine. 54 61 Notes: MUST be called before GetLocalIP and GetLocalName 55 62 */ … … 91 98 // WSAENOBUFS, WSAEPROTONOSUPPORT, WSAEPROTOTYPE, WSAESOCKTNOSUPPORT, 92 99 // WSAEADDRINUSE, WSAEINVAL, WSAEISCONN, WSAENOTSOCK, WSAEOPNOTSUPP 93 int CreateListeningSocket(int &PortNum, HWND MsgWindow, WORD SocketMsg, SOCKET &ServerSocket); 100 int CreateListeningSocket(int &PortNum, HWND MsgWindow, 101 WORD SocketMsg, SOCKET &ServerSocket); 94 102 95 int AnswerListeningSocket(SOCKET ServerSocket, SOCKET &ClientSocket, SOCKADDR_IN &ClientSockAddr, int AddrLen); 103 int AnswerListeningSocket(SOCKET ServerSocket, SOCKET &ClientSocket, 104 SOCKADDR_IN &ClientSockAddr, int AddrLen); 96 105 97 106 void DestroyListeningSocket(SOCKET &ServerSocket, HWND MsgWindow); … … 132 141 Returns: -1 on disconnect or error (abort connection), 0 on success 133 142 */ 134 int GetLine(char *OutStr, SOCKET ClientSocket, BYTE *IOBuffer, int IOBufferSize, int &BufferIndex, int &DataInBuffer, int ThreadNum); 143 int GetLine(char *OutStr, SOCKET ClientSocket, BYTE *IOBuffer, int IOBufferSize, 144 int &BufferIndex, int &DataInBuffer, int ThreadNum); 135 145 136 146 /* … … 149 159 errors I was getting when getting a "rude" disconnect 150 160 */ 151 int SendData(SOCKET ClientSocket, BYTE *SendBuffer, int NumToSend, int ThreadNum); 161 int SendData(SOCKET ClientSocket, BYTE *SendBuffer, 162 int NumToSend, int ThreadNum);
Note:
See TracChangeset
for help on using the changeset viewer.