I would like to create a server using .NET and Java client (Android application).
The client will be connected to the server through mobile network so it's impossible to use tcp socket ... |
High I am new to java NIO. I have to write a simple server client communication program using java NIO. So is there any sample programs or any link where can ... |
I recently tested a socket based communication between a J2ME app and a local computer, the J2ME app was running on a emulator in NetBeans 6.7 and the server socket was ... |
I have a situation where I want a Java client to have a two-way data channel with a servlet (I have control over both), so that either can begin data transferring ... |
I have a typical client server communication - Client sends data to the server, server processes that, and returns data to the client. The problem is that the process operation can ... |
i am developing a project that exchanges data between client and server.I have coded it in j2se but i dont know how to make it work in j2me. please anyone help ... |
I have a simple socket server client communication in java where the clinet introduce a string and the server return the number of spaces from that string. I want to finish ... |
|
I am currently playing with java to create an authentication server for a desktop app and so far I have been able to make both the client and server communicate like ... |
I am currently programming a Texas Hold'em LAN game in Java. My problem is how to do the client/server-communication.
Each time something happens at the table, the clients need to be informed ... |
I have this client, the server information is not important. The output of this code is very random.
class Client {
public static void main(String args[]) throws Exception
...
|
I try to establish a client / server connection for a mastermind game.
I though of using enumerations to represent the different pegs and made them serializable.
Then I have to implement the ... |
Basically I need a bidirectional client-server communication (Java) where the client calls methods on the server, but also needs to get "callbacks" if certain events in the server occur.
The methods theirselves ... |
First, I am quite new with the use of Socket communication, so there still some things that I don’t know. I understand the basics of Socket communication in Java, so I ... |
I want to write a Java application to send a data file output by a C program running on the server to a client connecting to our web site. Once the file is downloaded to the client machine I want to invoke a local program on the client machine and pass the data file in as input. The connection has to ... |
|
Does anyone knows how the following problem is solved in application like YahooMessneger etc: When client starts it connects to server via TCPIP and maintains permanent connection to it. THe server starts new thread and this new thread receives incoming messages, process them and sends back result. So far, so simply. But ! How, then, server communicates to client an "independent" ... |
1)I have written a SocketServer on one machine which a.Waits for a connection from a client b.Sends a message to the client using a PrintWriter c.Receives a message from the client using a BufferedReader 2)On another machine I have a client program which a.Creates a connection with the server b.Receives the message from the server using a BufferedReader c.Sends a message ... |
Hi All! I have a client-server application in which I send packets from the server to the client in compressed form. From the server, I first send the size of the compressed bytes (the data size), followed by the actual compressed bytes (the data). At the client end, I first read the size of the compressed bytes and then read in ... |
Hi all, The vb client is successfull in connecting to the server and also sending the data.. I am not getting any error/exception there.the server is not able to receive any data .Only after I close the vb client Application the message sent by the client is seen on the server side.. Please help me in this regards.. thanks in advance ... |
The server is coded in C and client is coded in Java. I have a struct in C with a few primitive data-types like int,char[].The message structure is sent via socket. Say,i sent an int value of 4 from the C-side. I use a DataInputStream on the Java-end and read the contents of the message into a byte[].When i try to ... |
What kind of traportation mean shall i use for two-way communication between client and server assuming both of them behind firewall? Currently my work around is: 1. Client->Server: usual http reuqest using HttpURLConnection 2. Server->Client: I have a DatagramSocket listen on port 80 or 443 running on client and the server just send DatagramPacket to client on 80 or 443. Here ... |
|
hi i need to create a little client/server (multithread) i read http://java.sun.com/docs/books/tutorial/networking/sockets/clientServer.html i don't need the protocol class (just need to return what the client type and the number of request...) the connection is ok but when the client type... nothing happen on the server client class import java.io.*; import java.net.*; public class Client { public static void main(String[] args) throws ... |
|
hi all, i'm a newbie in socket programming. i'm trying to implement client n server which could send and receive messages continously, unless one of them closes the socket. this is the construct that i'v been able to come up with for server n client- Server: try { //Set System Properties System.setProperty("javax.net.ssl.keyStore",keystore_path); System.setProperty("javax.net.ssl.keyStorePassword",passwd); //Configure SSL Socket SSLServerSocketFactory sslserversocketfactory = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault(); ... |
Hi all, My web server could have 500 clients.Each client sends its information to my server after every 2 mins.Server stores the information in the database. The information sent by client after every 2 mins ,may or may not change.So in my opinion,it is not a very good design,to update the database after a message from the client comes.Instead server can ... |
Hello all, I am working on a project using java server side technologies. In the application, currently the client program polls the server every 30 seconds to get the latest messages. However due to the large number of browser clients and also due to the fact the each client on a average gets about 10 new messages a day, the current ... |
Hi Thank you for reading my post How I can cut the communication between client and server using a filter? for example if user request header has no coockie, i do not allow the request to go to its endpoint and instead i generate some html and send it as response to the client without allowing the request to go in. ... |
|
Hi, I need to make a messenger where a client can communicate with another client directly.. (not via the server) i.e any client can communicate with any other client privately just like yahoo messenger there are lots of example of server/client pair socket communication & this is not what i am looking for so i am puzzled how to do that.. ... |
|
I need to run a server side program such that it will run in background and wait for the client message. and at client side i need to send a message to server. and at server depending on the message i got from the client i need to run a piece of code. I don't know much of socket programming i ... |
Hi, I am new to socket programming, and i want to write one program for client server socket communication. I want to establish connection between two Machine lets say Computer A and Computer B both are in LAN. Computer A Opens server socket, and wait for a particular port for client to send request. Now computer B(Client) sends request to A, ... |
Hi, the story: Clients sends a request, server reads that request, and sends a response, lastly client reads the response. There will be multiple clients so I tried to implement it using threads in the server code to be able to continue listening for new requests. But in the last step the client freezes when I say read the response from ... |
|
Maecol wrote: ... although it sort of works, I'm pretty sure that I'm doing something wrong as the way it's working right now will just completely devour all my cpu. For all three classes I would implement Runnable instead of extending Thread. Apart from that your SetupServer looks reasonable. Your SetupClient logic is a mess. Decide if you want to use ... |
i can update the server when ever i want to because it can have a continous accept input stream and it doesn't affect the applet. // so when ever the client moves, the applet will update the server because the server has input.readLine() in it's run loop. But when i have the applet as a continous accept input stream it slows ... |
|
this is regarding my networking project which at present i am doing it in java... the project is abt establishing a server in my lab that controls all the other systems in that lab... now the problem is i have to shut down all the systems in the lab from the server on a click of a button.... this i need ... |
this is regarding my networking project which at present i am doing it in java... the project is abt establishing a server in my lab that controls all the other systems in that lab... now the problem is i have to shut down all the systems in the lab from the server on a click of a button.... this i need ... |
Help? Communication of clients on different networks using ARP-type servers Posted: Mar 17, 2007 11:40 PM Reply I thought I posted this about a week ago, but I can't locate it in the forums anywhere so here it is again. ********************************************************************* Hey to all you great and powerful wizards of Java! I am not a Java beginner, but far ... |
I am working on a client/server app, and I am running into a design dilemma. I am pretty sure people have come to this issue as well so I'd like to get some advice. This is the thing, I'd like to communicate between the client and the app in a dynamic way, that is, I'd like to send over many types ... |
Hi, i have a server that works correctly and i have a client. All i need to know is how to make these 2 communicate without having my applet slow down or, not even work at all. My problem is like this. I can have my server have input.readline() in its run method, (on the whole time )and it dosn't mess ... |