Os.Socket(Int32, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
See socket(2).
[Android.Runtime.Register("socket", "(III)Ljava/io/FileDescriptor;", "")]
public static Java.IO.FileDescriptor? Socket(int domain, int type, int protocol);
[<Android.Runtime.Register("socket", "(III)Ljava/io/FileDescriptor;", "")>]
static member Socket : int * int * int -> Java.IO.FileDescriptor
Parameters
- domain
- Int32
The address family for the socket.
- type
- Int32
The socket type and any supported socket-creation flags.
- protocol
- Int32
The protocol within the selected family, or 0 for its default protocol.
Returns
A file descriptor for the new socket.
- Attributes
Exceptions
Remarks
See socket(2).
Java documentation for android.system.Os.socket(int, int, int).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.