how to access mouse pointer of remote computer using socket programming? [closed] - c

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm doing a project on client - server activity monitoring system using tcp/ip protocol, in which i have to access active time details of all client machine from server and server admin could also access mouse pointer and display of any active client machine from server.
i have been done till accessing active time details of all client computer. but i have no idea how to access mouse pointer and display of client machine from server side.
I've been using socket programming on ubuntu and for GUI GTK+3.0 programming. so, please anyone help me how to implement those things and how to program to access mouse pointer and display using socket programming using c?

you can use frame buffering concept, concept used in VNC which allows us to see display of remote machine (generally used in Linux)
Instead of mouse pointer you can store all your system display of client machine into a frame and send it to server and render it on server similar to VNC that will allow you to get display of client.

Related

C - detect when an external circuit is closed (button push) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I am trying to find out if there is a way for a C console program to detect when an external circuit is closed (e.g. a button is pushed). I have searched for code examples or insight but with no luck.
I know this is easy in arduino/raspberry pi etc. but this will be part of a C console program running on windows.
Ideally the button/switch will be connected by USB or serial.
My current thoughts are to make the switch part of a HID and have it act as a keystroke but this is not my preference.
My preference would be to just close the circuit (short the usb) and have some code that registers when a usb or serial port has a voltage applied but I am not sure if that is possible.
Thank you for your help.
There are several ways of doing this, although you still need external hardware (for example, Arduino).
Via UART - With every Arduino you can communicate via UART/Serial. You will need send data from Arduino to PC when button state changes, and then listen for this data in your C app on computer.
Via HID - For example, Arduino Leonardo (and all other Arduinos with ATmega32U4) have USB Host feature, so you can create your own HID and send data this way, or directly via USB (without HID usage).
15pol game port and 25pol parallel port are able to detect/switch signals, inputs and outputs.
The 15pol game port would be most easy to use, if you still have some.

How to set up a database/server on my local machine for testing and learning web development [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
This question may be broad, my end goal is to be able to set up a website with some arbitrary database service. But right now I am trying to learn how that process works on my own computer and setup a development environment that can work for that goal. Web development seems hard to learn by myself as it involves so many parts, right now my understanding of the process is this:
I have client program C getting an input from the user, say username and password. Then it feeds that password to my server program S, who then communicates with a Database to retrieve user profile data D, and feeds that data back to the client program C.
I have done a lot of research, but the process still seems rather foggy to me. And my biggest doubt is in regards to the server part. It seems that there are two seperate functionality groups:
The server S1 which contains concise user data D mapped to its username and password
The Server S2 which deploys the client C onto a user computer, accepts user input, and queries S1 to retrieve, and process the user data D and feeds it back to the user.
Is my understanding correct with regards to the server(s)? Currently, I want to set up these servers on my local computer as a developing environment and connect to it as a client to test my program. I want to set up the server-side of my website (S1) with GoLang, and the database (S2) with Microsoft SQL Server Express, all in Ubuntu 20.10. Does that sound like a viable way to go about this?
Side note: at this point I realize this question is rather broad and messy, but that's just my experience trying to learn this long process by myself for the past few days. Even just a little bits and pieces of help would be deeply appreciated, thanks!

Is socket programming what I need? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
So I'm developing a 2d game using sdl1.2 on linux as a part of a college project and I need the player to be able to submit his score to know his ranking against other players who played the game aswell and I was wondering what am I going to need in order to achieve this with C, is socket programming the answer?
Thank you.
Yes, if your concern is about the communication, then socket is the only way, of course there are easy to use wrappers around socket, like zeromq etc.
The server would create a server socket and listens on it, and each client will connect to this server and then send the scores and any other data necessary to the server.
For data persistent, you can use embedded database like SQLite or leveldb etc.

Save data in memory on LPC1768 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm trying save data in memory on LPC1768. I want to load data when I put on the microcontroller. I expect data don't erase when I put off the machine.
I'm programming in C. I would need a example code in C but I fount a example code in C++ only: http://developer.mbed.org/users/okano/code/IAP/
Thanks everybody. Bye.
You can write data to the flash on the LPC1768 using the IAP commands documented in the user manual in Chapter 32 "Flash memory interface and programming". Specifically, section 32.8 documents the IAP (In Application Programming) commands that let the program running on the device write to flash. Or you can write to the flash using the ISP (In-System Programming) serial port protocol documented starting in section 32.3.
You can use a tool like Flash Magic or lpc21isp to program using the ISP protocol if you don't want to roll your own.

Can cellphone app send/receive data like old dialup phone modem? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I remember that
old modems used phone lines to transfer internet data.
I'm aware that it would be expensive (see edit notes below) and most mobile phones have cellular internet.
But here's my question:
How Can i transfer internet data over mobile phone "call line" without additional hardware?
EDIT:
I'd like to transfer data via voice channel.
I made some calculations and the results are that transfer at 56Kbits per second would be 20 times more expensive then using internet provided by cell company.
The answer if its possible is:
-probably yes for android and
-no for iOS
Here is a video for acoustic modem using speaker and mic http://www.youtube.com/watch?v=bLRK51_1L2k
I guess it would be possible to make Android app that would receive call and demodulate incoming data.
As for the iOS - the problem is in their Terms Of Service.
Because Apple don't want anybody to record phone calls (to obey the anti wire-tapping laws),
it dosn't allow to forward call to app.

Resources