1 17 package org.alfresco.filesys.smb; 18 19 import java.io.IOException ; 20 import java.net.UnknownHostException ; 21 22 27 public interface NetworkSession 28 { 29 30 35 public String getProtocolName(); 36 37 46 public void Open(String toName, String fromName, String toAddr) throws IOException , UnknownHostException ; 47 48 53 public boolean isConnected(); 54 55 61 public boolean hasData() throws IOException ; 62 63 71 public int Receive(byte[] buf, int tmo) throws IOException ; 72 73 81 public boolean Send(byte[] data, int siz) throws IOException ; 82 83 88 public void Close() throws IOException ; 89 } 90 | Popular Tags |