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

📄 fromsocket.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_FROMSOCKET_HH#define CLICK_FROMSOCKET_HH#include <click/element.hh>#include "socket.hh"CLICK_DECLS/*=cFromSocket("TCP", IP, PORTNUMBER [, I<KEYWORDS>])FromSocket("UDP", IP, PORTNUMBER [, I<KEYWORDS>])FromSocket("UNIX", FILENAME [, I<KEYWORDS>])FromSocket("UNIX_DGRAM", FILENAME [, I<KEYWORDS>])=s commreads data from socket (user-level)=dReads data from the specified socket. Packets received from the remotehost or process are emitted on the output.This element exists only for backward compatibility. See the moregeneral Socket implementation for details, and for supported keywordarguments. A FromSocket is equivalent to a Socket with the CLIENTkeyword set to FALSE or a Socket with no inputs.=e  FromSocket(TCP, 0.0.0.0, 80) -> ...=a ToSocket, Socket */class FromSocket : public Socket { public:  FromSocket();  ~FromSocket();  const char *class_name() const	{ return "FromSocket"; }  const char *processing() const	{ return PUSH; }  const char *flow_code() const		{ return "x/y"; }};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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