manual??????????????

5 views
Skip to first unread message

wangyao

unread,
Oct 15, 2006, 9:11:46 AM10/15/06
to nisf
Nisf:

Winpcap?Manual??????????,??FAQ???????

Q-23: If I try to compile my application using the new pcap APIs
provided in WinPcap 3.1beta, the compiler fails with "warning C4013:
'pcap_???' undefined" or "error C2065: 'PCAP_OPENFLAG_????' : undeclared
identifier". What's the problem?

A: The following new pcap APIs provided in WinPcap 3.1beta work only if
"HAVE_REMOTE" is defined:

* pcap_open()
* pcap_findalldevs_ex()
* pcap_createsrcstr()
* pcap_parsesrcstr()
* pcap_setsampling()
* pcap_remoteact_accept()
* pcap_remoteact_list()
* pcap_remoteact_close()
* pcap_remoteact_cleanup()

You can define HAVE_REMOTE

* in your source/header files, with #define HAVE_REMOTE, before
including pcap.h
* through a compiler/project option

-----------------------------
wangyao,wan...@cs.hit.edu.cn
2006?10?15?

yu fan

unread,
Oct 15, 2006, 10:24:37 AM10/15/06
to ni...@googlegroups.com
建议你用4.0版的。另外,除了头文件中包含winpcap.h外。链接中需要wpcap.lib,有时还需要ws2_32.lib

2006/10/15, wangyao <wan...@cs.hit.edu.cn>:

Abbas Zaman

unread,
Apr 26, 2016, 12:12:11 PM4/26/16
to nisf
Hi,

I need an example code for "pcap_remoteact_list" and "pcap_remoteact_accept" functions.
I have been trying to get the my sniffer to connect with a server program using either of the above functions without much success.
The problem is that I do not know how to set the "address" and "port" parameters of "pcap_remoteact_accept".

Can someone email me a sample code that implements"pcap_remoteact_accept" please?
My email address is "abbas1...@gmail.com".

Please help as soon as possible.
Many thanks in advance.

Kind regards
Abbas
Reply all
Reply to author
Forward
0 new messages