All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class SE.kth.speech.broker.MemorySender

SE.kth.speech.broker.SocketSender
   |
   +----SE.kth.speech.broker.MemorySender

public class MemorySender
extends SocketSender

Constructor Index

 o MemorySender(byte[])
Send the entire contents of a byte array.
 o MemorySender(byte[], int)
 o MemorySender(byte[], int, String, int)
Create a memorySender which sends the contents of a byte array to the given serversocket.

Constructors

 o MemorySender
 public MemorySender(byte buf[]) throws IOException
Send the entire contents of a byte array.

Parameters:
buf - The buffer to send.
 o MemorySender
 public MemorySender(byte buf[],
                     int size) throws IOException
 o MemorySender
 public MemorySender(byte buf[],
                     int size,
                     String host,
                     int port) throws IOException
Create a memorySender which sends the contents of a byte array to the given serversocket.

Parameters:
buf - The byte buffer to send
size - the number of bytes to send from the buffer
host - the host to send it to
port - the port number on the given host to send it to

All Packages  Class Hierarchy  This Package  Previous  Next  Index