throw new IllegalStateException("could not get socket for endpoint: "
+ endpoint.getEndpointURI().getAddress());
}
try
{
return new CallbackOutputStream(
new DataOutputStream(new BufferedOutputStream(socket.getOutputStream())),
new CallbackOutputStream.Callback()
{
public void onClose() throws Exception
{