1 4 package com.tc.net.protocol; 5 6 import com.tc.async.api.EventContext; 7 import com.tc.bytes.TCByteBuffer; 8 9 import java.net.Socket ; 10 11 public class HttpConnectionContext implements EventContext { 12 13 private final TCByteBuffer buffer; 14 private final Socket socket; 15 16 public HttpConnectionContext(Socket socket, TCByteBuffer buffer) { 17 this.socket = socket; 18 this.buffer = buffer; 19 } 20 21 public TCByteBuffer getBuffer() { 22 return buffer; 23 } 24 25 public Socket getSocket() { 26 return socket; 27 } 28 29 } 30 | Popular Tags |