gpt4 book ai didi

sockets - dart中的readClosed是什么意思

转载 作者:行者123 更新时间:2023-12-03 03:05:28 25 4
gpt4 key购买 nike

dart中readclosed的含义是什么,read和close的含义很明显,那么readclosed是什么意思,什么时候使用?
enter image description here

最佳答案

当在RawSocketEvent类上调用'shutdown'方法时,您可以获取该RawSocket

Shutdown the socket in the direction. Calling shutdown will never throw an exception and calling it several times is supported. Calling shutdown with either SocketDirection.both or SocketDirection.receive can result in a RawSocketEvent.readClosed event.



或者只是在与Socket的连接关闭时。

关于sockets - dart中的readClosed是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55192701/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com