Savarese.Org
B C E G I M N O P R S W

B

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

C

close() - Method in class example.Ping
Closes the raw socket opened by the constructor.
close() - Method in class org.savarese.rocksaw.net.RawSocket
Closes the socket.

E

example - package example
 

G

getIPHeaderInclude() - Method in class org.savarese.rocksaw.net.RawSocket
Retrieves the current setting of the IP_HDRINCL option.
getProtocolByName(String) - Static method in class org.savarese.rocksaw.net.RawSocket
Returns the protocol number corresponding to the given protocol name.
getReceiveBufferSize() - Method in class org.savarese.rocksaw.net.RawSocket
Retrieves the receive buffer size (SO_RCVBUF).
getReceiveTimeout() - Method in class org.savarese.rocksaw.net.RawSocket
Retrieves the receive timeout (SO_RCVTIMEO).
getRequestDataLength() - Method in class example.Ping
 
getRequestPacketLength() - Method in class example.Ping
 
getSendBufferSize() - Method in class org.savarese.rocksaw.net.RawSocket
Retrieves the send buffer size (SO_SNDBUF).
getSendTimeout() - Method in class org.savarese.rocksaw.net.RawSocket
Retrieves the send timeout (SO_SNDTIMEO).
getUseSelectTimeout() - Method in class org.savarese.rocksaw.net.RawSocket
Determines whether or not socket send/receive timeouts are emulated by using the POSIX select system function.

I

isOpen() - Method in class org.savarese.rocksaw.net.RawSocket
Tests if the socket has been opened.

M

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

N

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

O

open(int, int) - Method in class org.savarese.rocksaw.net.RawSocket
Opens a raw socket.
org.savarese.rocksaw.net - package org.savarese.rocksaw.net
 

P

PF_INET - Static variable in class org.savarese.rocksaw.net.RawSocket
A protocol family constant for open(int, int) indicating IPv4.
PF_INET6 - Static variable in class org.savarese.rocksaw.net.RawSocket
A protocol family constant for 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(int) - Constructor for class example.Ping
 
ping(InetAddress) - Method in class example.Ping
Issues a synchronous ping.
Ping.EchoReplyListener - Interface in example
 

R

RawSocket - Class in org.savarese.rocksaw.net
The RawSocket class provides a strictly utilitarian API for performing I/O with raw sockets.
RawSocket() - Constructor for class org.savarese.rocksaw.net.RawSocket
Creates an uninitialized socket.
read(InetAddress, byte[], int, int) - Method in class org.savarese.rocksaw.net.RawSocket
Reads packet data from the socket.
read(InetAddress, byte[]) - Method in class org.savarese.rocksaw.net.RawSocket
Same as read(address, data, 0, data.length);
receive(InetAddress) - Method in class example.Ping
 
receiveEchoReply(InetAddress) - Method in class example.Ping
 

S

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

W

write(InetAddress, byte[], int, int) - Method in class org.savarese.rocksaw.net.RawSocket
Writes packet data to the socket.
write(InetAddress, byte[]) - Method in class org.savarese.rocksaw.net.RawSocket
Same as write(address, data, 0, data.length);

B C E G I M N O P R S W
Savarese.Org

Copyright © 2004-2007 Daniel F. Savarese. All Rights Reserved.