常見例句Use the SendTo method to send datagrams to a remote host. 使用SendTo方法可將數據報發(fā)送到遠程主機。You can also establish a default remote host for a connectionless protocol prior to calling the SendTo method. 您也可以在調用SendTo方法之前,為無連接協議建立默認遠程主機。Although intended for connectionless protocols, SendTo also works with connection-oriented protocols. 雖然SendTo用于無連接協議,但它同樣適用于面向連接的協議。If you are using a connectionless protocol, you do not need to establish a default remote host with the Connect method prior to calling SendTo. 如果您使用的是無連接協議,則在調用SendTo之前,不需要使用Connect方法建立默認遠程主機。A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied. 由于套接字沒有連接并且(當使用一個sendto調用發(fā)送數據報套接字時)沒有提供地址,發(fā)送或接收數據的請求沒有被接受。 返回 sendto