NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Socket.SendTo (Array, Int32, Int32, EndPoint)

Sends data to a specific end point, starting at the indicated location in the data.

[Visual Basic]
Overloads Public Function SendTo( _
   ByVal buffer As Array, _
   ByVal size As Integer, _
   ByVal flags As Integer, _
   ByVal remoteEP As EndPoint _
) As Integer
[C#]
public int SendTo(
   Array buffer,
   int size,
   int flags,
   EndPoint remoteEP
);
[C++]
public: int SendTo(
   Array* buffer,
   int size,
   int flags,
   EndPoint* remoteEP
);
[JScript]
public function SendTo(
   buffer : Array,
   size : int,
   flags : int,
   remoteEP : EndPoint
) : int;

Parameters

buffer
The data to be sent.
size
The size of the data buffer.
flags
Message send flags.
remoteEP
The destination location for the data.

Return Value

If successful, the number of bytes sent; otherwise, an invalid socket error is returned.

Exceptions

Exception Type Condition
InvalidOperationException [To be supplied.]

See Also

Socket Class | Socket Members | System.Net.Sockets Namespace | Socket.SendTo Overload List