Savarese Software Research Corporation
B C D E G I L M N O P R S W 

B

bind(InetAddress) - Method in class com.savarese.rocksaw.net.RawSocket
Binds a local network address to a previously opened raw socket.
bindDevice(String) - Method in class com.savarese.rocksaw.net.RawSocket
Binds a network device (e.g., eth0) to a previously opened raw socket.

C

close() - Method in class com.savarese.rocksaw.net.RawSocket
Closes the socket.
close() - Method in class example.Ping.Pinger
Closes the raw socket opened by the constructor.
com.savarese.rocksaw.net - package com.savarese.rocksaw.net
 
computeSendChecksum(InetAddress) - Method in class example.Ping.Pinger
 
computeSendChecksum(InetAddress) - Method in class example.Ping.PingerIPv6
 

D

dataOffset - Variable in class example.Ping.Pinger
 

E

example - package example
 

G

getIPHeaderInclude() - Method in class com.savarese.rocksaw.net.RawSocket
Retrieves the current setting of the IP_HDRINCL option.
getProtocolByName(String) - Static method in class com.savarese.rocksaw.net.RawSocket
Returns the protocol number corresponding to the given protocol name.
getReceiveBufferSize() - Method in class com.savarese.rocksaw.net.RawSocket
Retrieves the receive buffer size (SO_RCVBUF).
getReceiveTimeout() - Method in class com.savarese.rocksaw.net.RawSocket
Retrieves the receive timeout (SO_RCVTIMEO).
getRequestDataLength() - Method in class example.Ping.Pinger
 
getRequestPacketLength() - Method in class example.Ping.Pinger
 
getRequestPacketLength() - Method in class example.Ping.PingerIPv6
 
getSendBufferSize() - Method in class com.savarese.rocksaw.net.RawSocket
Retrieves the send buffer size (SO_SNDBUF).
getSendTimeout() - Method in class com.savarese.rocksaw.net.RawSocket
Retrieves the send timeout (SO_SNDTIMEO).
getSourceAddressForDestination(InetAddress, byte[]) - Method in class com.savarese.rocksaw.net.RawSocket
Returns by out parameter the address of the network interface that will be used to send a packet to the given destination.
getUseSelectTimeout() - Method in class com.savarese.rocksaw.net.RawSocket
Determines whether or not socket send/receive timeouts are emulated by using the POSIX select system function.

I

identifier - Variable in class example.Ping.Pinger
 
isOpen() - Method in class com.savarese.rocksaw.net.RawSocket
Tests if the socket has been opened.

L

length - Variable in class example.Ping.Pinger
 
listener - Variable in class example.Ping.Pinger
 

M

main(String[]) - Static method in class example.Ping
 

N

notifyEchoReply(ICMPEchoPacket, byte[], int, byte[]) - Method in interface example.Ping.EchoReplyListener
 

O

offset - Variable in class example.Ping.Pinger
 
open(int, int) - Method in class com.savarese.rocksaw.net.RawSocket
Opens a raw socket.

P

PF_INET - Static variable in class com.savarese.rocksaw.net.RawSocket
A protocol family constant for RawSocket.open(int, int) indicating IPv4.
PF_INET6 - Static variable in class com.savarese.rocksaw.net.RawSocket
A protocol family constant for RawSocket.open(int, int) indicating IPv6.
Ping - Class in example
The Ping class is a simple demo showing how you can send ICMP echo requests and receive echo replies using raw sockets.
Ping() - Constructor for class example.Ping
 
ping(InetAddress) - Method in class example.Ping.Pinger
Issues a synchronous ping.
Ping.EchoReplyListener - Interface in example
 
Ping.Pinger - Class in example
 
Ping.Pinger(int, int, int) - Constructor for class example.Ping.Pinger
 
Ping.Pinger(int) - Constructor for class example.Ping.Pinger
 
Ping.PingerIPv6 - Class in example
 
Ping.PingerIPv6(int) - Constructor for class example.Ping.PingerIPv6
 

R

RawSocket - Class in com.savarese.rocksaw.net
The RawSocket class provides a strictly utilitarian API for performing I/O with IPv4 and IPv6 raw sockets.
RawSocket() - Constructor for class com.savarese.rocksaw.net.RawSocket
Creates an uninitialized socket.
read(byte[], int, int, byte[]) - Method in class com.savarese.rocksaw.net.RawSocket
Reads packet data from the socket.
read(byte[], int, int) - Method in class com.savarese.rocksaw.net.RawSocket
Same as read(data, 0, length, null);
read(byte[], byte[]) - Method in class com.savarese.rocksaw.net.RawSocket
Same as read(data, 0, data.length, address);
read(byte[]) - Method in class com.savarese.rocksaw.net.RawSocket
Same as read(address, data, 0, data.length, null);
receive() - Method in class example.Ping.Pinger
 
receive() - Method in class example.Ping.PingerIPv6
 
receiveEchoReply() - Method in class example.Ping.Pinger
 
recvData - Variable in class example.Ping.Pinger
 
recvPacket - Variable in class example.Ping.Pinger
 
replyType - Variable in class example.Ping.Pinger
 
requestType - Variable in class example.Ping.Pinger
 

S

sendData - Variable in class example.Ping.Pinger
 
sendEchoRequest(InetAddress) - Method in class example.Ping.Pinger
 
sendPacket - Variable in class example.Ping.Pinger
 
sequence - Variable in class example.Ping.Pinger
 
setEchoReplyListener(Ping.EchoReplyListener) - Method in class example.Ping.Pinger
 
setIPHeaderInclude(boolean) - Method in class com.savarese.rocksaw.net.RawSocket
Sets or unsets the IP_HDRINCL socket option.
setReceiveBufferSize(int) - Method in class com.savarese.rocksaw.net.RawSocket
Sets the receive buffer size (SO_RCVBUF).
setReceiveTimeout(int) - Method in class com.savarese.rocksaw.net.RawSocket
Sets the receive timeout (SO_RCVTIMEO).
setSendBufferSize(int) - Method in class com.savarese.rocksaw.net.RawSocket
Sets the send buffer size (SO_SNDBUF).
setSendTimeout(int) - Method in class com.savarese.rocksaw.net.RawSocket
Sets the send timeout (SO_SNDTIMEO).
setUseSelectTimeout(boolean) - Method in class com.savarese.rocksaw.net.RawSocket
Sets whether or not socket send/receive timeouts should be emulated by using the POSIX select function.
socket - Variable in class example.Ping.Pinger
 
srcAddress - Variable in class example.Ping.Pinger
 

W

write(InetAddress, byte[], int, int) - Method in class com.savarese.rocksaw.net.RawSocket
Writes packet data to the socket.
write(InetAddress, byte[]) - Method in class com.savarese.rocksaw.net.RawSocket
Same as write(address, data, 0, data.length);
B C D E G I L M N O P R S W 
Savarese Software Research Corporation

Copyright © 2004-2007 Daniel F. Savarese
Copyright © 2009 Savarese Software Research Corporation. All Rights Reserved.