internal int socketFd;
private bool disposed = false;
- internal BluetoothServerSocket()
+ internal BluetoothServerSocket(int socketFd)
{
+ Log.Info (Globals.LogTag, "Constructing server socket");
+
StaticAcceptStateChanged += OnAcceptStateChanged;
StaticConnectionRequested += OnConnectionRequested;
+
+ this.socketFd = socketFd;
}
private void OnConnectionRequested(Object s, SocketConnectionRequestedEventArgs e)
}
}
- internal BluetoothServerSocket(int socketFd)
- {
- Log.Info (Globals.LogTag, "Constructing server socket");
- this.socketFd = socketFd;
- }
-
/// <summary>
/// Starts listening on the passed RFCOMM socket and accepts connection requests.
/// </summary>