This is a discussion on socket programming within the VB.NET Programming forums, part of the Software Development category; hi, I have already some experience with socket programming. But now I would like to use socket programming for a ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| hi, I have already some experience with socket programming. But now I would like to use socket programming for a Bluetooth connection. Does anybody know how to do this? I’ve done it before for a wired network, and then you just had to use a tcpClient and a tcpListener, and in the client program you just had to give in the ip address of the computer where you had your server program and it worked. But how is this for Bluetooth and pocket devices? Do you also have to use a tcpClient and tcpListener? Or is it totally different? And what do you have to use in stead of the IP address? My program language is VB.NET, but it doesn’t matter if it’s a C# example. Thanks Last edited by amansundar : 09-05-2007 at 11:09 PM. |
|
#2
| |||
| |||
| Hi aman, WInsock is pretty much the same because it represents an abstraction layer that is beyond the physical properties of the data transfer. There are several good tutorials on Winsock-based BTH programming. This one contains a C/C++ sample which is pretty strightforward. Notice for example a server socket is created: SOCKET s = socket (AF_BT, SOCK_STREAM, BTHPROTO_RFCOMM); |
|
#3
| |||
| |||
| Hi, Thanks for you quick answer, but do you also have a VB.NET example? Is it possible with VB.NET? I'm not a VB expert exactly so I don't know if it's feasible in VB. However, I'll ask some of the VB experts if they have any samples. Thank you very much!!!!! |
|
#4
| |||
| |||
| Hi, Nice to know you too are working in something that i need...i m java developer.....My project includes the development of a GUI in VC++ environment that will connect two Bluetooth enabled computers and allow them to communicate..im currently learning VC++ and Winsock...but i dont know how to proceed next....how to incorporate the Bluetooth functionaliy...im really in a fix cuz i have to finish the project at avery short notice...could you plz guide me on how to proceed further..like what should be the necessary steps....
__________________ Krishnakumar.S Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily |
|
#5
| |||
| |||
| What I would do is look for an existing, simple but working project and try to learn from the code how the BT functionality is used.
__________________ cheers Aman |
|
#6
| |||
| |||
| great ..but where do i get that???
__________________ Krishnakumar.S Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily |
|
#7
| |||
| |||
| Hello everybody! I'm trying to develop a Bluetooth application using winsocks, but my problem is that i cannot create the socket. When I execute "socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM)" the application falls with the next error : 10047 (WSAEAFNOSUPPORT => An address incompatible with the requested protocol was used.) I have the next include's: #include <winsock2.h> #include <Ws2bth.h> #include <BluetoothAPIs.h> Should I need to add something else to my project?, or maybe should I need change some configuration properties on my operating system? Thanks.
__________________ cheers Aman |
|
#8
| |||
| |||
| anyone plz help me out with following ques..it's needed for my interview process What is Socket Programming- What are its functions- What exactly it does- Where exactly its used- Kindly give the day to day basis example in short- |
|
#9
| |||
| |||
| These are not simple questions I'm afraid. You need to learn socket programming thoroughly from a book, an online tutorial etc. Furthermore, you need to gain some experience in this area, not just the theory. A quick "socket programminng" search on Google will certainly direct you to some tutorials.
__________________ cheers Aman |
|
#10
| |||
| |||
|
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ERROR 2002 (HY000): Can't connect to local MySQL server through socket | Gopisoft | Database Support | 1 | 10-29-2007 02:07 AM |
| Socket programming in windows mobile 5.0 its support CAsyncSocket class? | theone | Windows Mobile | 1 | 07-25-2007 12:24 AM |
| What is the difference between Windows programming and database programming? | Arun | VB.NET Programming | 0 | 07-18-2007 07:58 AM |
| Socket Programming With PHP | Jeyaseelansarc | PHP Programming | 0 | 05-16-2007 01:33 AM |
| XML Socket Servers programming in Flash | Karpagarajan | Flash Actionscript Programming | 0 | 04-05-2007 03:00 AM |
Our Partners |