博文

关于异步Socket接收模式下的Socket缓冲区(2006-01-04 11:27:00)

摘要:在使用Socket的 异步接收时,需要定义一个对象: /// <summary> /// 传输对象 /// </summary> public class TranslateObj {  /// <summary>  /// 缓冲区  /// </summary>  public byte[] bytes;  /// <summary>  /// 缓冲区大小  /// </summary>  public const int BUFFER_SIZE = 512;  /// <summary>  /// 存放重复接收数据的列表  /// </summary>  public ArrayList tmpAl;  /// <summary>  /// 接收/发送数据的Socket  /// </summary>  public Socket csock;  public TranslateObj()  {   this.csock = null;   this.bytes = new byte[BUFFER_SIZE];   this.csock = null;  }  ~TranslateObj()  {   this.tmpAl = null;   this.csock = null;  } } 使用时,调用下述方法: private void ReceiveStart(Socket thisSocket)......

阅读全文(8198) | 评论:1

WebService服务中修改接口说明(2005-12-31 11:55:00)

摘要:默认的WebService接口始终是没有任何提示的,但是如果在接口前添加 [WebMethod(Description="http://www.scstjw.net ",    EnableSession=false)] 就可以在访问该接口时,在接口下方显示"http://www.scstjw.net"; 可以利用此方式,为Web服务添加接口说明  ......

阅读全文(4029) | 评论:0

BLOG开张(2005-12-31 11:44:00)

摘要:2005-12-31 今年的最后一天,终于决定搞一个自己的BLOG空间, 希望来年的学习路上,留下一些脚印......

阅读全文(3645) | 评论:0