如何让emacs支持datagram?

环境: Emacs-modified-windows (25.2.1 x86_64-w64-mingw32)

要在emacs里操作其他程序,想通过UDP发包来实现。但是遇到了这个情况:

(make-network-process
  :name "test-udp-client"
  :type 'datagram
  :host "127.0.0.1"
  :port 12345
  )

报错:

eval: Unsupported connection type

有什么办法开启这功能呢?

make-network-process 沒有 :port 参数,port number 用 :service 指定。

确实没有:port …
这个错误倒纯粹是因为某宏没定义,难道要自己编译了

1 个赞

官网包也不支持datagram,很可能我也编不出来。TCP能用,换上脱坑~