还是描述的很不详细喔......
你是说... 想写「直译器」将 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/ 就有范本啰~~