I am trying to create a muti player game for android that requires a server which uses socket based communication method.
We are developing a network application based on C/S, in this application the server needs to transfer files to clients and sometimes receive files from clients. So in the server application, for every client it needs to create a control socket and many transfer sockets.
My question is how we can create and define a socket as role of control socket or transfer socket?
I'm trying to install MySQL on OS X.
First I tried MacPorts. I followed the instructions in step 3 of https://trac.macports.org/wiki/howto/MAMP, but when I ran mysqladmin5 or mysql5 I get:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock' (61)
The file mysqld.sock existed.
Then I tried installing using a .dmg from mysql.com.
I'll start off by saying that I have next to no experience working in terminal or with node.js.
Coworker left for vacation and I'm trying to follow instructions he left for setting up his app on our demo server. I can get everything running locally, but am running into issues on the server installing socket.io module.
Installed python, installed nodejs, both successful.
I'm struggling here...
I'm trying to determine if data was successfully sent to the server through a TCP socket using the OutputStream object. For testing on emulator socket communications is loss after 30 sec. For write data OutputStream.write(); its doesn't throw an exception , and local server continuously running its not crashing, only tcp socket connection is loss after some time.
I have searched for a neat explanation of how to use sockets to receive and send files in linux, but i can't find a solution that even works a little bit.
I have a c++ server on linux, and a client which runs in java.
I need it to do the following:
Client needs to be able to send text-commands towards the server.
Client needs to be able to send/receive files towards the server.
Server gets the
I'm trying to create a Web Socket Server for a small project I am working on.
I have set up the server (located at home) and have port forwarded 80 and 22.
The IP address on my server recently was changed, and after the change, i performed a restart and when it came back online MySQL stopped working. I am running Debian 6.
I type mysql -u username -p and I get this message:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
any idea what happened? How to fix it?
I've written a PHP websockets server based on this library: https://github.com/Flynsarmy/PHPWebSocket-Chat
This library operates as a server, and handles all incoming requests. The client can connect when I'm running locally (connecting to address 127.0.0.1:9300), but I'm unable to connect if my client is not on the machine running the server.