title: Can I use C# to write a Bluetooth PC client with Socket?
body: <p>I'm trying to write a Bluetooth PC client that can do some simple interactive behavior with a Android device over Bluetooth. Then I learned that it is possible to use Windows Socket programming to achieve, however, when I'm trying to create a new socket, this <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa362910(v=vs.85).aspx" rel="noreferrer">link</a> tells me to use AF_BTH as the address parameter, which is in a C++ struct as clarified in this <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa362897(v=vs.85).aspx" rel="noreferrer">link</a>.</p>
  
  <p>Here are my codes with errors:</p>
  
  <pre><code>Socket tempSocket = new Socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM);
  </code></pre>
  
  <p>So here is my question: Does it mean that I have to use C++ to achieve this? If not, how do I create a new Bluetooth-typed socket under C#?</p>