Network device driver [closed] - network-programming

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I want to write Linux device driver for network based device. This network device is just Input output control only and also this device connects through Ethernet port via ethernet cable. How can i write driver? How to transfer data between device and kernel?

If the device just connects to the Linux machine through Ethernet, then you don't need to write a kernel driver at all - a userspace daemon can have full access to Ethernet through the AF_PACKET socket address family. See the packet(7) man page for details.

You can choose for a TCP or UDP connection communication.
for TCP you must opt for a stream based transfer
But UDP is not a reliable communication rather it is faster as compared to TCP.
I would suggest to go with Beginning Linux Programming which has a theoretical as well as a practical reflection.
Cheers !!

Related

Transfer files between a network computers [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to write a program for transferring files and documents between a network computers. Many files may have been transferring at moment. every computer can receive and send files, it means system have to be ready to send files and listening to receive files.
I can configure program on each system as i want (for example give a list of connected computers' ip to program to choose target system for transfer file into)
Do i have to make Server-Client type applications or i can have JUST one program running on computers? I know question is vast but helping me to choose the best way will be appreciated.
>
I want to write this program by Delphi 2010 and network computers os is Windows 7.
You can do it peer-to-peer. The very same program can both listen for requests to transfer or receive files from other computers and issue its own requests to transfer or receive files to other computers.

What's the best way to transfer data between iOS and MacOS via wireless? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to transfer data directly between iOS and Mac(short distance) via bluetooth or Wi-fi.
I read some question and if we use bluetooth, we must add Bluetooth LE adapter and I don't want it.
If we use Wi-fi, that will effect on current Internet network.
What's the best and fastest way? I just want to send small data directly.
Please help!
Look into Apple's Bonjour technology: Bonjour Tutorial
It might take a lot of work off the table, from discovering what other computers / devices are nearby to getting their IP Addy.
You can use NSStream or this third party Library and Tcp protocol. You can use Bonjour to help in network devices discovery. Both of the links above have samples applications. Note: both devices needed to be on the same lcal network.

I want to learn driver developement so how to start in this? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to learn device driver development so how to start ? Any media for beginner or something ?
The canonical reference is Linux Device Drivers 3rd Edition - although it's a few years old now, it's close enough to current kernels.
Quite a lot of stuff is not covered in here - particularly anything that's device or bus specific, or the way the kernel has been developing to support ARM SoC devices over the last few years.
I would suggest to go start learing Linux device driver under PC environment so as you can co-relate most of things you are familier with ,One approach is to go get linux source code and try to understand how kernel is being called and how single user space process is initiated from kernel space .You can also follow this below given page would be helpful for you.
http://en.wikiversity.org/wiki/Reading_the_Linux_Kernel_Sources

Send data over multiple users using one software using delphi [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I hope there is someone that can help me.
I am writing a software that users can fill in information into a database, but I want to install that same software that I created on multiple computers. When a other user is inserting new information into the software and click save then it must show on his/her computer and at the same time on the other PC's in the network.
I think this is a difficult one to crack, but I hope some one can help me.
Greetings
There are many ways to solve this. I recommend to use a server-side application (installed on the database server system for example) which receives a notification from the inserting app. Then, the server side app will send either a UDP broadcast or use a TCP connection to the clients to notify them.
The clients then just need to listen for server messages in a background thread. The messages will be 'pushed' from the server to the client.
An example which can be used as a starting point is the Indy Telnet client component which has a listener thread for server messages. You do not have to open the client firewall for incoming connections to work this way.
There are also complete messaging solutions available, but maybe they would be to heavyweight for your requirements. If you like, I can provide some links.
I would not recommend
database polling (too expensive and unflexible)
database events (run in the server process, could block operation or crash)
A standard which can be used for this messaging system is WebSocket. There are commercial and open source Delphi implementations for the client and server side.

How many kinds of drivers are there? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
Like device driver, I don't know whether there are some other drivers ?
Taken from Windows Internals 4th (XP-based) Edition:
Hardware device drivers - Drivers using the HAL
File System Drivers - File IO for devices
File System Filter Drivers - Intercept IO and do processing on it (like AV and such)
Network Redirectors and Servers - Transmit IO on the network
Protocol Drivers - Implement network protocol like TCP/IP
Kernel Streaming Filter Drivers - Signal processing on data streams like video/audio
What comes to mind straight away is virtual device drivers - usually emulating some kind of device, but not being a device themselves.
Probably worth a mention is class drivers that can talk to an entire class of devices (e.g. USB).
And the Wikipedia article on device drivers may be a good starting point.

Resources