axure快速原型设计
axure快速原型设计 学习如何用rp快速进行原型设计
sing System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Net; using System.Net.Sockets; namespace ChatNDraw { public partial class MainForm : Form { private IPEndPoint ServerInfo; private Socket ClientSocket; //信息接收缓存 private Byte[] MsgBuffer; //信息发送存储 private Byte[] MsgSend; public MainForm() { InitializeComponent(); } private void MainForm_Load(object sender, EventArgs e) { initSocket(); } /** * socket连接初始化 */ private void initSocket() { //定义一个IPV4,TCP模式的Socket ClientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); MsgBuffer = new Byte[65535]; MsgSend = new Byte[65535]; //允许子线程刷新数据 CheckForIllegalCrossThreadCalls = false; this.loginUsers_label.Text = Environment.MachineName; //服务端IP和端口信息设定,这里的IP可以是127.0.0.1,可以是本机局域网IP,也可以是本机网络IP ServerInfo = new IPEndPoint(IPAddress.Parse("192.168.1.102"), Convert.ToInt32("6600"));