Creates a socket for a newly created connection.

Namespace: GHIElectronics.NETMF.Net.Sockets
Assembly: GHIElectronics.NETMF.W5100 (in GHIElectronics.NETMF.W5100.dll) Version: 4.1.9.0 (4.1.9.0)

Syntax

C#
public Socket Accept()

Return Value

A new Socket object that specifies the socket for the newly created connection.

Remarks

The Accept method synchronously extracts the first pending connection request from the connection request queue of the listening socket, and then it creates and returns a new Socket object. You cannot use this returned Socket object to accept any additional connections from the connection queue. However, you can use the RemoteEndPoint property of the returned Socket object to identify the remote host's network address and port number.
Before calling the Accept method, you must first call the Listen method to listen for and queue incoming connection requests.

See Also