// // TServerTransport.cs // // Begin: Dec 3, 2007 // Authors: // Will Palmeri // // Copyright (C) 2007 imeem, inc. // All rights reserved. using System; using System.Collections.Generic; using System.Text; namespace Thrift.Transport { public abstract class TServerTransport { public abstract void Listen(); public abstract void Close(); protected abstract TTransport AcceptImpl(); public TTransport Accept() { TTransport transport = AcceptImpl(); if (transport == null) { throw new TTransportException("accept() may not return NULL"); } return transport; } } }