還是描述的很不詳細喔......
你是說... 想寫「直譯器」將 C 的指令轉譯成 Assembly Code 嗎 @@?
還是.... 你是在寫 Compiler 的期末作業啊@@?
這兩者差別很大喔。
至於 C# msn socket:
若只是要連線... 就....
複製程式
private long _transactionID = 0;
private TcpClient _socket;
private NetworkStream _stream;
private StreamReader _reader;
private StreamWriter _writer;
protected void ConnectSocket (string host, int port)
{
_transactionID = 0;
_socket = new TcpClient(host, port);
_stream = _socket.GetStream();
_reader = new StreamReader(_stream, Encoding.ASCII);
_writer = new StreamWriter(_stream, Encoding.ASCII);
_writer.AutoFlush = true;
}
在
http://windowsc....net/ 就有範本囉~~