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 4 years ago.
Improve this question
I have no experience with sockets and I need to implement a process that notifies a user interface of inputs from another process that takes his values from stdin.
This is the class' documentation, what should the socket parameter be? It's just an int, is it a handle?
I was told it doesn't play nice with boost.asio.
Can you guys help me write a command prompt program that accepts an int from stdin and sends it to my UI? I just need the sending/receiving code.
It looks like it's expecting to receive the socket handle (int). I suggest you get to know winsock.
Also, googling for the above class + example yields some good results.
Related
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
This is my first question here in StackOverflow, so if this question has already been made or is in the wrong topic, please excuse me.
I'm studying C using Windows and I'm looking for a list/book/manual of usable parameters for the system() function. Stuff like system("pause"), system("cls"), system("color 1f"), etc...
Thanks for the help in advance.
The purpose of system() API is to execute an external command, the parameters are the arguments of the command that you are trying to execute, just like if you were typed in shell prompt, there is not anything special to pass, just put into the string.
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 am beginner to Perl and I have to write a script which could change the IP address after every 1 hour.
I want to change it because I receive some data from a dongle from a website and that website has some time limit to receive that data, so currently we need to unplug that dongle and use another to
change IP address. (I mean I have to request DHCP for another IP.)
But currently I am asked to write a script using Perl. Could someone please help me how to do that?
It's too broad. Have a look at Net::IP module, read the documentation and you're good to go.
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 need to have 3 major things from perl and don't know how to go about it.
Non Blocking websocket implementation like mojo.
The server needs to accept broadcast calls after it has started
The server needs to be able to access data that is on a different thread.
I have tried mojo but didn't find a way to control the port (I can live with that) and didn't figure out how to call events after the server has started. I wasn't able to test if it could handle events after the fact.
I have tried Net::WebSocket::Server but it is blocking. I am tempted to wrap my own code around it so that it can handle non blocking and shared data as it is by far the simplest implementation and easy to modify.
I have also tried pocket.io but it didn't have a very easy way to implement OO design and still remain thread safe. (Mostly because of the Plack framework).
Does anyone have a good example of how to do this with Mojolicious or pocket.io? If not I will just have to implement my own implementation.
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 5 years ago.
Improve this question
I worked with raw sockets in C. I want to do the same in Rust. As far as I know, there is no such low-level functionality in the standard library. How can I make raw socket calls regardless?
If you're ending up here from google, this is now available on rust as a crate called pnet
https://crates.io/crates/pnet
The docs are here:
https://docs.rs/pnet/0.20.0/pnet/
This is something that is in progress.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I need to write a script that writes (appends) data to an internal wiki that isn't public (needs username and password but unencrypted, http not https). The script can be a shell script, a Perl script, or even a Java application (last resort). Any help would be appreciated. Let me know if any additional information is needed.
Right now, I'm only able to read from the wiki using LWP Perl library using the getprint($url) function.
Thanks
If it's truly MediaWiki, then just use MediaWiki::API.