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

📄 tx_ip.h

📁 xprobe package sources code
💻 H
字号:
/*** This Programs/Libraries are (C)opyright by Sebastian Krahmer. *** You may use it under the terms of the GPL. You should have *** already received the file COPYING that shows you your rights. *** Please look at COPYING for further license-details. ***   *** THERE IS ABSOLUTELY NO WARRANTY. SO YOU USE IT AT YOUR OWN RISK. *** IT WAS WRITTEN IN THE HOPE THAT IT WILL BE USEFULL. I AM NOT RESPONSIBLE *** FOR ANY DAMAGE YOU MAYBE GET DUE TO USING MY PROGRAMS. ***/#ifndef _TX_IP_H_#define _TX_IP_H_#include "config.h"#include "usi++/usi-structs.h"#include "TX.h"#include <stdio.h>namespace usipp {/*! \class TX_IP *	This sends IP datagrams over *  a raw socket */class TX_IP : public TX {private:	int rawfd;	struct timeval tx_tv;    bool tx_timeout;public:	TX_IP() : rawfd(-1) { tx_timeout = false; }	virtual ~TX_IP() {}	/*! Send a packet on raw socket (starting with IP-hdr) */	virtual int sendpack(void *, size_t, struct sockaddr*);	/*! Enable broadcast option on socket */	virtual int broadcast();	/*! Set a timeout. Implements TX::timeout() = 0. */	int timeout(struct timeval);	/*! Returns true when sendto() timed out */	bool timeout();	};}	// namespace#endif

⌨️ 快捷键说明

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