60 Topics
|
|
Looking for conceptual help... I am writing a program in C++ to handle socket connections, eventually to be a websocket server. However, the rest of my stack uses PHP for serving up page. Is there a way to use PHP as an intermediary between the client (JS) and the application … |
|
0 down vote favorite I have created a network scanner, that looks for a specific port on a range of IP's. I would like to thread the application but I am getting and error message ERROR: for worker in range(network.hosts): TypeError: 'method' object cannot be interpreted as an integer Now … |
|
I'm trying to develop an app that realises the communication between a gameserver and an applcation. My code so far is: #include <cstdlib> #include <iostream> #include <boost/bind.hpp> #include <boost/asio.hpp> #include <boost/asio/ssl.hpp> using namespace std; enum { max_length = 1024 }; class client { public: boost::asio::streambuf receive_buffer; client(boost::asio::io_service& io_service, boost::asio::ssl::context& context, … |
|
I made a client server program to send an image from the server to the client. The image is being sent being but its not showing up in client window immediately. If i click send on the server then i minimize (or maximize) the client window then open again the … |
|
Hi Dw. Has anyone worked with TCP/IP socket in Windows Phone? I'm using Windows Phone 7 and I would like my app to communicate with my server which my client will send some data to the server and the server will also send some data to the client, It's more … |
|
Hi everyone, I seem to be having a bit of a weird problem with sockaddr / sockaddr_in structs... I want to manually assign the value of an IP address to the sockaddr_in struct, and I've been using memcpy memcpy (&(mIp4sa->sin_addr.s_addr), "127.0.0.1", INET_ADDRSTRLEN); But when I go to print out the … |
|
I creating an application in visual studio where I have a client to request specific information to multiple servers. Someone Knows i can make this communication? For one server i know to create that, for many servers i dont have idea. Code example!!! One client for many servers! For one … |
|
I am writing simple server client programs using socket, in which a client would request a video file and the server should send it that file. After recieving the file the client would play that video file. I know how to open ordinary text files and binary files but can … |
|
Okay so i'm trying to make a chat application using sockets, and i want them both to be able to write and read simultaneously. So i did some research and found that I/O multiplexing like select() will fix this problem. But I still have one problem. After I compile it … |
|
I am having trouble as I am trying to run my clientsocket.connect until a connection has been established. However it is not running my connect method and I cannot seem to be able to diagnose why that is private static ClientSocket clientSocket = new ClientSocket(); private delegate void connection(); public … |
|
Hi, I need to monitor the ip addresses in a server. whenever there is a fluctuation, i need to do some clean up (like restart the server/ reboot the machine) I was able to get a sample cpp program & was able to enhance it to suit my needs. But … |
|
Hi there, I am trying to create a simple client/server application. Very basic - Client connects to server, client sends message to server - server receives message and broadcasts to any other connected clients. As I say - it is supposed to be simple and for the purpose of self … |
|
I'm making a messenger app and I need to know how to set up connections so that somebody could send messages to other via WI-FI.I googled a little and I find something at this page [Click Here](https://code.google.com/p/simple-android-instant-messaging-application/source/browse/trunk/src/com/mekya/communication/SocketOperator.java)but I don't understand it.Here is my main class/StartingPoint (all my code is just … |
|
I am making a programe based on socket programing in which client can download one of the listed books from server. I have come up with this code but the problems with it are: 1) It doesnt downloads pdf file greater than 1MB. 2) It allows client to download 1 … |
|
If you were to build a fairly complicated website, and you wanted to add features like instant messaging (one to one and multi-chat like a chat room, and possibly if the site becomes profitable enough, voice/video chatting) and you wanted to be able to store these chat sessions, would it … |
|
Hello all i have asked a question related to this and i have solved the previous problem but now i am looking something more advance and i want to know a scenerio , i have implemented the SOCKETASYNCEVENTARGS class for a chat server in c# and it is working fine … |
|
I wanna build a program that allows you to send a mail and advices you when you have new mail. I know that for this I have to kee it running in the background. Would you recommend using C++ for such a purpose? (It's pretty much a mail client for … |
|
I am trying to write a server-client application for file transfer: the client written in Java and the server written in C++. Unfortunately I have the following error: "java.net.SocketException: Connection reset by peer: socket write error". Here is my code for client: import java.io.*; import java.net.Socket; public class Proba_binar public … |
|
Hello, *We are very much begginers at programming in general, and it would be great if you could keep that in mind when helping us!* Could someone please explain just what a **socket** is? We are working on a program which will solve a 3D puzzle, handed to us by … |
|
I want to send string and save in different computer's database using c# using Asynchronous Any body Plz Help me finding a Solution |
|
Hello! I'm just going to repost my question here from stackoverflow. I am currently developing a file sharing application using asynchronous communication in VB.Net. I successfully coded a simple connection between the client and the server. But, I am currently having a bad time doing the disconnection sub routine for … |
|
Hello Community, I was wondering if there is a way to make a program that will send messages from one computer to the other. **NOT** using LAN connection and **NOT** using winsock. EG. I (at my house) would like to chat with my friend (his at his house). Please help. |
|
> this is my udp server code #include<iostream> #include<arpa/inet.h> #include<unistd.h> #include<sys/socket.h> #include<sys/types.h> #include<stdio.h> #include<string.h> #include<stdlib.h> using namespace std; void error( char *msg) { perror(msg); exit(EXIT_FAILURE); } int main() { int sockfd; sockfd = socket(AF_INET,SOCK_DGRAM,0); struct sockaddr_in serv,client; serv.sin_family = AF_INET; serv.sin_port = htons(53000); serv.sin_addr.s_addr = INADDR_ANY; char buffer[256]; socklen_t l … |
|
I am trying to understand how sockets work with winsock, but I just don't get it. I basically want to be able to create these functions: SomeDataType ConnectToComputer(const char *ConnectionName);//connect to the connection named ConnectionName SomeDataType CreateConnection(const char *ConnectionName);//create a connection called ConnectionName bool ReadData(SomeDataType, unsigned char *outdata, int outsize);//read … |
|
im doing remote desktop project. i need to connect two sockets (each from single client) through the hashtable in the separate application server, so that client1 can see the desktop of the client2. can u suggest me solution for this? how can i achieve this? so far i can connect … |
|
I've been working with python's SocketServer.ThreadingTCPServer a bit and I'm having some difficulty making a publicly available server. Everything works fine when I set the server address as 'localhost' [CODE=python]self.server = SocketServer.ThreadingTCPServer(('localhost', constants.cmdport), Handler)[/CODE] As long as the both the server and client are on the same computer and both … |
|
I am making a networking application using sockets for a local area network. How can i make the client side of the application search the network for the server socket? Right now i am getting the input from the user itself about the IP address and Port of the server. |
|
hey. can i transfer pictures through sockets using c++? how can i do it if its posible. |
|
Here is a simple code of chat between two peers. According to me, the code does what it should have but I am facing difficulty solving this SocketException error. This code worked fine till i made the last modifications. And now I am finding it difficult to trace the error. … |
|
I'm trying to understand socket programming in python by experimenting a little. I'm trying to create a server that you can connect to by telnet and that echoes what you type in the telnet prompt. I don't want to start using threads just yet. This is my code. [CODE]import socket … |
The End.