Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-03-2008, 07:38 AM   #1
Registered: Oct 2007
Posts: 66

Rep: Reputation: 15
Thumbs up Socket Program in Linux Driver

Hai All
I want to establish a socket connection between two Linux machines.I need to write a c program in driver level.i know little bit programming in driver level.

can anyone help me in this regard?

thanks in advance.
Old 01-04-2008, 12:16 AM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
AFAIK, the socket API is only available to userspace applications. Why does your program need to be a driver? Perhaps a userspace daemon with root privileges will suffice?

--- rod.
Old 01-04-2008, 02:44 AM   #3
Registered: Oct 2007
Posts: 66

Original Poster
Rep: Reputation: 15
Socket communication in linux driver

thanks 4 ur reply.
we are trying to send some URB's from 1 machine 2 another.actually that should be done in driver level.for that we need in driver level.i searched in net.i have got some code for server but not for client.that server is working fine with user space client.but i need a driver level client also.
i changed server code to client by doing some modifications.but server is in listen mode & client is not connecting with client.

waiting for ur reply.if possible i'l send my code.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
string concatenation in c/c++ for a socket program mohtasham1983 Programming 3 02-14-2007 05:42 PM
socket program:why server cann't receive ljqu_happy Programming 7 10-30-2004 08:26 AM
Linux Socket Bind Program Won't show with netstat rnice Programming 2 09-18-2004 09:59 AM
Help me with this socket address bind program. rnice Linux - Networking 0 09-17-2004 07:33 PM
New to linux how do i install a program or driver? brilliantchef2 Linux - Software 7 06-20-2004 11:40 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration