懂C#/.NET的请进!!高手更要来教教!!

来源:百度知道 编辑:UC知道 时间:2024/05/24 05:21:47
DIY主题用这个程序AniEditor.exe,我在www.ONDSBBS.CN上面看到的,别人都可以打开,而我却打不开。
后来有人叫我安装一个.net3.5就可以,
安装完以后,提示重启。
重启了以后还是不行!
到底怎么一回事?
AniEditor.exe是C#语言编写。
双击打开提示:
A security monitoring product is interfering with the proper operation of this application.Please contact the security product vendor for assistance,or disable the security monitoring software and try again.

c#实现最基本的Socket编程(客户端)

客户端:

第一步:用指定的端口号和服务器的ip建立一个EndPoint对像;

第二步:建立一个Socket对像;

第三步:用socket对像的Connect()方法以上面建立的EndPoint对像做为参数,向服务器发出连接请求;

第四步:如果连接成功,就用socket对像的Send()方法向服务器发送信息;

第五步:用socket对像的Receive()方法接受服务器发来的信息 ;

第六步:通信结束后一定记得关闭socket;

代码:
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Net.Sockets;

namespace Client
{
class Program
{
static void Main(string[] args)
{
try
{
int port = 2000;
string host = "127.0.0.1";

/**////创建终结点EndPoint
IPAddress ip = IPAddress.Parse(host);
//IPAddress ipp = new IPAddress("127.0.0.1");
IPEndPoint ipe = new IPEndPoint(ip, port);//把ip和端口转化为IPEnd