Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 26, 2020. It is now read-only.
/JxnetPublic archive

Commitf34190a

Browse files
committed
1.5.3.RELEASE
1 parent0577d7a commitf34190a

File tree

2 files changed

+12
-34
lines changed

2 files changed

+12
-34
lines changed

‎README.md

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Jxnet wraps a native packet capture library (libpcap/npcap) via JNI (Java Native
88
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/4d6ca7f3d9214098b1436990ac76a6cd)](https://www.codacy.com/project/jxnet/Jxnet/dashboard?utm_source=github.com&utm_medium=referral&utm_content=jxnet/Jxnet&utm_campaign=Badge_Grade_Dashboard)
99
[![Build status](https://ci.appveyor.com/api/projects/status/ev4t6t1ssacwj18j?svg=true)](https://ci.appveyor.com/project/jxnet/jxnet)
1010

11-
[![Download](https://api.bintray.com/packages/ardikars/maven/com.ardikars.jxnet/images/download.svg?version=1.4.9.Final)](https://bintray.com/ardikars/maven/com.ardikars.jxnet/1.4.9.Final/link)
11+
[![Download](https://api.bintray.com/packages/ardikars/maven/com.ardikars.jxnet/images/download.svg?version=1.5.3.RELEASE)](https://bintray.com/ardikars/maven/com.ardikars.jxnet/1.5.3.RELEASE/link)
1212

1313

1414
Features
@@ -63,7 +63,7 @@ List of supported protocol available at [Jxpacket](https://github.com/jxnet/Jxpa
6363
>>> <dependency>
6464
>>> <groupId>com.ardikars.jxnet</groupId>
6565
>>> <artifactId>jxnet</artifactId>
66-
>>> <version>1.4.9.Final</version>
66+
>>> <version>1.5.3.RELEASE</version>
6767
>>> <type>pom</type>
6868
>>> <scope>import</scope>
6969
>>> </dependency>
@@ -82,45 +82,23 @@ List of supported protocol available at [Jxpacket](https://github.com/jxnet/Jxpa
8282
>>> }
8383
>>>
8484
>>> dependencyManagement {
85-
>>> imports { mavenBom("com.ardikars.jxnet:jxnet:1.4.9.Final") }
85+
>>> imports { mavenBom("com.ardikars.jxnet:jxnet:1.5.3.RELEASE") }
8686
>>> }
8787
>>> ```
8888
8989
- ##### Example Application
9090
9191
```java
9292
@SpringBootApplication
93-
public class Applicationimplements CommandLineRunner {
94-
93+
public class Applicationextends AbstractJxnetApplicationRunner<String> {
94+
9595
public static final int MAX_PACKET = -1; // infinite loop
96-
97-
private static final Logger LOGGER = LoggerFactory.getLogger(Application.class.getName());
98-
99-
private Context context;
100-
private PcapIf pcapIf;
101-
private MacAddress macAddress;
102-
103-
@Autowired
104-
private PcapHandler<String> pcapHandler;
105-
106-
public Application(Context context, PcapIf pcapIf, MacAddress macAddress) {
107-
this.context = context;
108-
this.pcapIf = pcapIf;
109-
this.macAddress = macAddress;
110-
}
111-
96+
11297
@Override
11398
public void run(String... args) throws Exception {
114-
LOGGER.info("Network Interface : {}", pcapIf.getName());
115-
LOGGER.info("MAC Address : {}", macAddress);
116-
LOGGER.info("Addresses : ");
117-
for (PcapAddr addr : pcapIf.getAddresses()) {
118-
if (addr.getAddr().getSaFamily() == SockAddr.Family.AF_INET) {
119-
LOGGER.info("\tAddress : {}", Inet4Address.valueOf(addr.getAddr().getData()));
120-
LOGGER.info("\tNetwork : {}", Inet4Address.valueOf(addr.getNetmask().getData()));
121-
}
122-
}
123-
context.pcapLoop(MAX_PACKET, pcapHandler, "Jxnet!");
99+
showSystemInfo();
100+
showNetworkInfo();
101+
loop(MAX_PACKET, "Jxnet!");
124102
}
125103
126104
public static void main(String[] args) {

‎gradle/configure.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ext {
77

88
NAME='Jxnet'
99
GROUP='com.ardikars.jxnet'
10-
VERSION='1.5.3.RC7'
10+
VERSION='1.5.3.RELEASE'
1111
DESCRIPTION='Jxnet is a java library for capturing and sending network packet.'
1212

1313
NDK_HOME="${System.env.NDK_HOME}"
@@ -31,8 +31,8 @@ ext {
3131
PMD_VERION='6.10.0'
3232
JACOCO_VERSION='0.8.2'
3333

34-
COMMON_VERSION='1.2.6.RC7'
35-
JXPACKET_VERSION='1.2.1.RELEASE'
34+
COMMON_VERSION='1.2.6.RELEASE'
35+
JXPACKET_VERSION='1.2.2.RELEASE'
3636
NETTY_VERSION='4.1.31.Final'
3737
REACTOR_VERSION='Californium-RELEASE'
3838
JNR_VERSION='2.1.9'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp