Return-Path: Subject: Re: [Bluez-users] not able to create socket using any of the protocols ? From: Marcel Holtmann To: bluez-users@lists.sourceforge.net In-Reply-To: <20051206072019.81758.qmail@web36102.mail.mud.yahoo.com> References: <20051206072019.81758.qmail@web36102.mail.mud.yahoo.com> Content-Type: text/plain Message-Id: <1133946413.11247.8.camel@blade> Mime-Version: 1.0 Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed, 07 Dec 2005 10:06:53 +0100 Hi Swathi, > I tried creating sockets using all the three protocols > but i get the error saying "no such file or directory" > > My code is as below > ------------------------------------------------ > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > > #include > #include > #include > #include > #include > > #include > #include /* we need va_list */ > #include > > int main(int argc, char **argv) > { > > int s; > > if ((s = socket(PF_BLUETOOTH, SOCK_STREAM, > BTPROTO_RFCOMM)) < 0) { > perror("What is wrong: \n"); > } > return 0; > } > > ------------------------------------------------------ > > even if i replace the above with the below > if ((s = socket(PF_BLUETOOTH, SOCK_SEQPACKET, > BTPROTO_SCO)) < 0) { > perror("What is wrong: \n"); > } > > ------------------------------------------------ > > Struck with the socket creation. Can somebody identify > the pblm ? make sure the correct kernel modules are loaded. Regards Marcel ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users