static string Main(string[] args)
{
//IPAddress ipAddress = System.Net.IPAddress.Loopback;
IPAddress ipAddress = IPAddress.Parse("192.168.0.100");
IPEndPoint localEndPoint = new IPEndPoint(ipAddress, 1515);
Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
Connect(localEndPoint, sock);
string packet;
packet = Console.ReadLine();
packet += "<EOF>";
Send(sock, packet);
Receive(sock);
return packet;
//connectDone.WaitOne();
}
这是我的客户端邮件部分,当我尝试从服务器响应(数据包变量)返回我的字符串时,编译器错误是Program '...\clie.exe' does not contain a static 'Main' method suitable for an entry point