Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nxrighthere authored Dec 24, 2019
1 parent e929782 commit 0df8a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Contains a blittable structure with anonymous host data and port number.

`UDP.Receive(Socket socket, ref Address address, byte[] buffer, int bufferLength)` receives a message and obtains the address of a sender. The address parameter can be set to `IntPtr.Zero` to skip the address obtainment. A pointer `IntPtr` to a native buffer can be used instead of a reference to a byte array. Returns the total number of bytes received. Otherwise, it will return < 0 if an error occurred.

`UDP.GetAddress(Socket socket, ref Address address)` gets an address from a bound or connected socket. This call is especially useful to determine the local association that has been assigned by the operating system.
`UDP.GetAddress(Socket socket, ref Address address)` gets an address from a bound or connected socket. This function is especially useful to determine the local association that has been assigned by the operating system.

`UDP.IsEqual(ref Address left, ref Address right)` compares two addresses for equality. Returns status with a result.

Expand Down

0 comments on commit 0df8a59

Please sign in to comment.