1 25 26 27 package org.objectweb.jonathan.apis.protocols.ip; 28 29 import org.objectweb.jonathan.apis.resources.Chunk; 30 import java.io.IOException ; 31 32 37 public interface IpConnection { 38 39 43 IpSession getSession(); 44 45 49 void setSession(IpSession session); 50 51 void receive(Chunk chunk,int sz) throws IOException ; 52 53 int available() throws IOException ; 54 55 void emit(Chunk chunk) throws IOException ; 56 57 61 int getPort(); 62 63 67 String getHostName(); 68 69 73 void release(); 74 75 81 void delete(); 82 } 83 | Popular Tags |