⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dcc.c

📁 Linux下的多协议即时通讯程序源代码
💻 C
字号:
/* $Id: dcc.c 16856 2006-08-19 01:13:25Z evands $ *//* *  (C) Copyright 2001-2002 Wojtek Kaniewski <wojtekka@irc.pl> *                          Tomasz Chili駍ki <chilek@chilan.com> * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU Lesser General Public License Version *  2.1 as published by the Free Software Foundation. * *  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 Lesser General Public License for more details. * *  You should have received a copy of the GNU Lesser 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. */#include <sys/types.h>#include <sys/stat.h>#ifndef _WIN32#include <sys/ioctl.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#ifdef sun#  include <sys/filio.h>#endif#endif#include <ctype.h>#include <errno.h>#include <fcntl.h>#include <stdarg.h>#include <string.h>#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include "compat.h"#include "libgadu.h"#ifndef GG_DEBUG_DISABLE/* * gg_dcc_debug_data() // funkcja wewn阾rzna * * wy秝ietla zrzut pakietu w hexie. *  *  - prefix - prefiks zrzutu pakietu *  - fd - deskryptor gniazda *  - buf - bufor z danymi *  - size - rozmiar danych */static void gg_dcc_debug_data(const char *prefix, int fd, const void *buf, unsigned int size){	unsigned int i;		gg_debug(GG_DEBUG_MISC, "++ gg_dcc %s (fd=%d,len=%d)", prefix, fd, size);		for (i = 0; i < size; i++)		gg_debug(GG_DEBUG_MISC, " %.2x", ((unsigned char*) buf)[i]);		gg_debug(GG_DEBUG_MISC, "\n");}#else#define gg_dcc_debug_data(a,b,c,d) do { } while (0)#endif/* * gg_dcc_request() * * wysy砤 informacj

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -