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

📄 tosocket.hh

📁 Click is a modular router toolkit. To use it you ll need to know how to compile and install the sof
💻 HH
字号:
// -*- mode: c++; c-basic-offset: 2 -*-#ifndef CLICK_TOSOCKET_HH#define CLICK_TOSOCKET_HH#include <click/element.hh>#include "socket.hh"CLICK_DECLS/*=cToSocket("TCP", IP, PORTNUMBER [, I<KEYWORDS>])ToSocket("UDP", IP, PORTNUMBER [, I<KEYWORDS>])ToSocket("UNIX", FILENAME [, I<KEYWORDS>])ToSocket("UNIX_DGRAM", FILENAME [, I<KEYWORDS>])=s commsends data to socket (user-level)=dSends data to the specified socket. Input packets are sent to theremote host or process.This element exists only for backward compatibility. See the moregeneral Socket implementation for details, and for supported keywordarguments. A ToSocket is equivalent to a Socket with the CLIENTkeyword set to TRUE or a Socket with no outputs.=e  ... -> ToSocket(1.2.3.4, UDP, 47)=a FromSocket, Socket */class ToSocket : public Socket { public:  ToSocket();  ~ToSocket();  const char *class_name() const	{ return "ToSocket"; }  const char *processing() const	{ return PULL; }  const char *flow_code() const		{ return "x/y"; }};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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