tosocket.hh

来自「Click is a modular router toolkit. To us」· HH 代码 · 共 49 行

HH
49
字号
// -*- 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 + =
减小字号Ctrl + -
显示快捷键?