Java Code Examples for net.fs.rudp.message.PingMessage2

The following examples show how to use net.fs.rudp.message.PingMessage2. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: NSS   Source File: ClientControl.java    License: Apache License 2.0 5 votes vote down vote up
public void sendPingMessage2(int pingId,InetAddress dstIp,int dstPort){
	PingMessage2 lm=new PingMessage2(0,route.localclientId,pingId);
	lm.setDstAddress(dstIp);
	lm.setDstPort(dstPort);
	try {
		sendPacket(lm.getDatagramPacket());
	} catch (IOException e) {
		e.printStackTrace();
	}
}
 
Example 2
public void sendPingMessage2(int pingId,InetAddress dstIp,int dstPort){
	PingMessage2 lm=new PingMessage2(0,route.localclientId,pingId);
	lm.setDstAddress(dstIp);
	lm.setDstPort(dstPort);
	try {
		sendPacket(lm.getDatagramPacket());
	} catch (IOException e) {
		e.printStackTrace();
	}
}
 
Example 3
Source Project: finalspeed   Source File: ClientControl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void sendPingMessage2(int pingId, InetAddress dstIp, int dstPort) {
    PingMessage2 lm = new PingMessage2(0, route.localclientId, pingId);
    lm.setDstAddress(dstIp);
    lm.setDstPort(dstPort);
    try {
        sendPacket(lm.getDatagramPacket());
    } catch (IOException e) {
        e.printStackTrace();
    }
}