⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 httpconnection.java

📁 RFC 1945 Http1.0协议实现。对协议进行了完整面向对象设计
💻 JAVA
字号:
/**
 * 
 */
package edu.sysu.http.intf;

import java.io.IOException;
import java.net.SocketException;



/**
 * @author Administrator
 * 
 */
public interface HttpConnection {
	/*
	 * 套接字绑定到某地址和端口
	 */
	public void bind(String host, int port) throws IOException;
	/*
	 * 关闭套接字
	 */
	public void close() throws IOException;
	/*
	 * 返回主机地址
	 */
	public String getHost();
	/*
	 * 返回端口
	 */
	public int getPort();
	/*
	 * 判断链接是否关闭
	 */
	public boolean isClosed();

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -