reply for this question
I am using socket connecting server and client. My problem is how to keep the server always run to accept the connection from client, which can be closed and reconnect to the server later on.Thank youMessage was edited by: Rachel2006
826 byte By
vani_ha at 2007-11-26 14:03:32
I have an applet that's making HTTP requests to server by means of a HttpURLConnection object. I need to authenticate to the server, so I've subclassed Authenticator to do this, and made that class active by calling Authenticator.setDefault(). My class overrides getPasswordAuthentication, it ...
hey i m a student and i want to know how will i get information about capturing data from modem's buffer using java...plz send me reply at deep.ashar@hotmail.com
570 byte By
AnDYa at 2007-11-26 14:13:45
Im working on a Project for my MScIT on Distributed Computing...which involves socket programming(UDP)....im working on some algorithms like Token Ring, Message Passing interface, Byzantine, Clock Syncronisation...i hav almost finished working on these algorithms...but now i wanna give a good ...
604 byte By
Ksushaa at 2007-11-26 14:14:27
Hello everyone!!! I am trying to connect to aim thru TOC2. I am using Jeff Heatons program avalable on the web http://www.devx.com/Java/Article/30105the thing is when i sent a sign on command i am not getting a response (the weird thing is that yesterday i was getting some kind of answer, but ...
2903 byte By
schaeflia at 2007-11-26 14:14:33
Here is my server-code: for (int i=0; i<countGamesToDownload; i++){out.write(gamesToDownload.get(i) + ".zip\n");out.flush();filename=System.getProperty("user.dir")+"\\"+ gamesToDownload.get(i)+".zip";System.out.println("Filename: " + filename);bin = new BufferedInputStream(new ...
I think this may be trivial, but lets say for the sake of simplicity that I want to have a client & server in java. And it isn't going to do a task until the server says it can, lets say give a "Hello World" every 5 seconds. I want the client to connect and wait for the go ahead to start ...
458 byte By
ideaboya at 2007-11-26 14:25:07
Hi Friends,Can any one send me the Sun's Materials or any other's Good Materials for SCJP 1.5 (if u send links also no problem i will download )?And tell me the path, how we need 2 study 2 get good score, iam thinking 2 get more than 80%, So plz gide me 2 get that score(I have basic Idea, ...
Hi,M logging on ftp server. And can list all file on home directory.But my application requires that i need to save files on other directory.To elaborate the problem:My HOME Directory is : E:\EISi can upload files on the above location.but i m not able to upload files on D:\EIS.method ...
Hello All,We use many vendor and inhouse addins in Excel. When two of these add-ins are loaded, we get the following error message: "Several Java Virtual Machines running in the same process caused an error".What are the best debuging tools to use to help resolve this error?Thanks and ...
Hello!I have a problem with Socket - ServerSocket connection.When using Socket - ServerSocket connection within same network program works perfectly, however problems start when I want to connect to ServerSocket located in private address space from the Internet.I have redirected a port which ...
I am using: Sun JDK 1.4.0_01 Windows XP JBoss 3.2.7I deployed statelessSession EJB to JBoss 3.2.7I wrote a simple client application that performs a JNDI lookup for the bean's home interface The JNDI lookup (and subsequent cast) results in a "timed out" error message. The JNDI server is ...
Hey all. I have a multithreaded program that reads some data over the net, and I have been profiling it with hprof to get the performance up.Basically, my data format is an ASCII number followed by a newline, then that many bytes of data following. The data itself is XML.my input function is ...
Hi group, I have an application that it uses sockets, I have ten (10) devices opening connection with socket serving and am using the option always to open one thread for each solicitation. Doubt! He would not be more interesting if I always left open the connections with the devices?
I am trying to write a method that connects to a server retrieves some information and returns a Socket object, while at the same time showing a GUI, which displays information about the networking process. This method needs to be called when a button is pressed in a seperate GUI. The Socket ...
when i use jpcap in the JpcapCaptor.java classin this method NetworkInterface[] getDeviceList();my project stop and that is an error that wpcap.dll not foundplease help me
hie...i made a program for file transfer.But i need to check the CPU usage and its advantage over normal file sharing and transfer on windows XP.Plz.. help me if someone wrk on this and better if i have some another algo to do the same(file transfer)
I have a couple of questions.1. For one of my applications I am unable to detect when the socketi s closed from the other end Socket.isConnected returns true, isClosed is false and isBound returns true. What can be the reason for this ?2. In order to solve the first issue I set the setKeepAlive ...
547 byte By
AtlePa at 2007-11-26 15:08:41
Hi,i am writing an application that is communicating with a (legacy) server. I use sockets to communicate with the server, which mostly works fine, but at random intervals i get a "SocketException: Software caused connection abort: socket write error"Since this this happens at random i suspect ...
734 byte By
uagardxa at 2007-11-26 15:19:51
I have multiple clients connected to my server socket and I need to copy more than 200mb documents from server to all clients over socket. Can we design the issue considering scalability and performance factor? What I am thinking of we should use thread for transferring file from server to ...
Hi Java Gurus,I'm using JMX to get MBean details. When i'm getting details, i'm getting an exception.error unmarshalling return; nested exception is: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.jboss.web.tomcat.tc5.WebAppLoader error unmarshalling ...
1197 byte By
QTQa at 2007-11-26 15:43:45
Hi, I am trying to create Messenger similar to msn but very simple.I have managed to create some parts of it after nonstop day night reading up on sockets, and threading etc.. so so far i have a Server + ServerThread and Client class, which is capable of:* Server that can accept multiple client ...
378 byte By
Mustaria at 2007-11-26 15:44:15
I have three message stating my problems in pc.They are1. A break point has been reached (0x80000003) occurred in the application atlocation 0x100038a62.A Microsoft Jscript runtime error: 'parant.get(...)' is null or not an object3. Visual c++ documentation on assertsI dont know how to handle ...
5211 byte By
singalga at 2007-11-26 16:01:07
Hi,I have a socket server which listens to the incoming messages. The problem is that the socket server terminates the socket connection once it receives a message.I want this Socket server to keep on running and process all the requests it receives.Can you please advise which stream shall be ...
1493 byte By
boba5555a at 2007-11-26 16:03:54
Hi,I use this codeimport java.io.*;import java.net.*;... public void run() {try {ServerSocket ss = new ServerSocket(TCP_PORT);while (true) {Socket sock = ss.accept();in = new BufferedReader( new InputStreamReader(sock.getInputStream()));out = new PrintWriter( new BufferedWriter(new ...
Hi ,I need the help,Socket incoming=null;while(true){ incoming = s.accept(); if(incoming.isClosed()) {System.out.println("Disconnected"); }}I have to do if client program is terminated then i want to display it on server that this client is not responding.i.e. I want the updated information of ...
I have established a connection with the server (a terminal attached to my local network) from the client machine but when I try to send some message I get the exception stating "Session not found",,,which machine do I need to start the session and how to start it?hope somebody helps me ...
hi, I want to make small instant messenger,like yahoo.I have made a server which accept connection from different client & send online user list to each and every client connected to the server.But now i have to send messages between the clients(chatting).This can be do either through ...
Anyone got one? Anyone know where I can get one?
I have a bit of a strange situation in a team-working environment where many developers copy code to a production server. None of this code is in a Version Control System and I have been given the task of getting it into one (I've chosen Subversion, but that isnt important)The problem is, its ...
hello,How can we detect the system drives and virtual drives? How can we distinguish between them? Using File.listRoots() method, we can get all the roots, but out of them how can we know which one is connected externally or through USB? Is there any other way? Please If you have knowledge ...
I'm trying to learn Java at the moment but am having so problems running code I created. I'm following a book call Java: How to Program and none of the programs work. They compile ok but i get the following error:[root@localhost Java]# java Welcome1.classException in thread "main" ...
764 byte By
BB81a at 2007-11-26 16:36:28
Hello,I am writing a WebServer Class and would like browser to be my client...I am wander how I pass in the " http://xxx.xxx:80/~hello" to the server ...?Just don't really understand ...This is what I am writting now ...int port = 80;ServerSocket listener = new ServerSocket(port,1);Socket ...
How do I execute method on server from client?For example, when I start Client it gets message from server to choose option 1- send file, 2-disconect.When I choose 1, server sends the file?
1283 byte By
richJTSa at 2007-11-26 16:39:13
Hi,I have an issue with a client/server app where the Server is running under 1.4.2_04 on Solaris 9 using NIO and in this case the Client is connecting in from a Windows XP machine using standard Sockets.If I bring up a selection of clients, I can see the connections in the ESTABLISHED state ...
hi there, i have a problem with regards to socket programming.. im done with the client server thing in which the client communicates with the server and ther server response with a hard coded message in my program. now my problem is, how can i make a program like this:Client:Enter file to ...
11936 byte By
sadhakima at 2007-11-26 16:46:46
Hi guys, I have a pretty simple webserver, just 3 classes, very simple, but now I need to add HTTP 1.1 keep alive feature. I have two problems, 1) I'm not completely sure I understand the keep alive feature 2) I have no idea how to impliment it with my current code.From my understanding HTTP ...
334 byte By
BB81a at 2007-11-26 16:47:08
My server class is completed. When I run it...It gives me an error message java.net.BindException: Address already in use: JVM_BindI am having a localhost:81 ...I haven't assign any port 81 ...neither in router nor the IIS ...May I know what should I do to remove this message ...
In server side programing like a Chat server whats the role played by the socket programming can any one tell me or give me the link where i can get the material
Hi all.I downloaded and ran Netbeans 5.5 using a copy of JDK 5 update 11 I had also just downloaded. I've rebooted my PC since installing these two applications.However, when I run Netbeans 5.5 using JDK 5 update 11, I get the following error from Netbeans:Warning - could not install module ...
Hi. I'm an engineering student and i'm working on my project titled 'Internet Access Control' for our college. Our college has a server connected to our network lab where internet is accessed. I'm using sockets programming and i would be glad if you tell me which classes i have to use ...
208 byte By
hiwaa at 2007-11-26 17:02:51
Do we have a way to configure windowing parameters for TCP from a Java program?I mean it is not for a specific Java networking application but for local low-level TCP client behavior in general.
We are using Talarian Smart Socket. We are also using JDk 1.4 for our application. Since we migrated to JDK 1.6 there is change in the message format.. I guess it has to do with the binary conversion or bytes conversion. Do I need to upgrade Talarian Smart Socket verison for JDk 1.6
Hi,I am getting a problem in rescheduling the job using quartz.thhis is my sample code.Date newtime=new Date(date.getTime()+(10000L*6L*cim));JobDetail job = new JobDetail("job1", "group1",SimpleJob.class);SimpleTrigger trigger = new SimpleTrigger ("trigger","group", ...
1509 byte By
Adeesha at 2007-11-26 17:12:02
Hi, I am using the following code to make connection with the server. The speciality of this server is that it has the code of peer.java.net.socket sock = new Socket(ip1,port1) ; Then i use this socket to make streams and do the following.1) Created a class which will handle all the operations ...
1472 byte By
_sfla at 2007-11-26 17:18:33
Hello,Scenario:I have one PLC (Programmable Logic Controller) that is a client.I wrote the server code, it works.PLCClient <->PLCServer( 1 to 1 )Now I have to implements my clients on PCs.The PCClient sends commands to PLCServer and it answers back.How can I do this kind of connection?I ...
350 byte By
Raji_PMa at 2007-11-26 17:21:24
Hi All,I am new to JDK5. So could you please let me know what are all the new keywords introduced in JDK5 other than enum?. What are all the over all advantages/new features of JDK5 in all the areas over J2SDK 1.4.2?. It would be much helpful if you people could help me in getting this details. ...
I've created a web page which contains drop down menus. These drop down menus were created using the "Show Pop-Up Menu" behavior in Dreamweaver. I then saved the page as a Dreamweaver template and will be creating all the website pages from this template (rather, the client will be in ...
Ok so I am writing this small FTP applet so I can upload files to my website. All is going well except when I upload a large file, it uploads then as soon as its done uploading it disappears. I have no idea why. If the file is above about 3/4 a meg then it just disappears when its done ...