communication « Socket « Java Network Q&A

Home
Java Network Q&A
1.API
2.bluetooth
3.Client
4.connection
5.Cookie
6.Development
7.Email
8.File
9.ftp
10.http
11.HttpClient
12.https
13.ip
14.Network
15.OS
16.RMI
17.Security
18.Server
19.Socket
20.tcp
21.UDP
22.url
Java Network Q&A » Socket » communication 

1. Exposing a function to other processes    stackoverflow.com

I'm using this piece of code that exposes a simple function using a socket:

while (true) {
  try {
    ServerSocket serverSocket = new ServerSocket(7070);
    Socket ...

2. read and write method for large data in socket communication does not work reliably    stackoverflow.com

I have created a socket programming for server client communication. I am reading data using read(byte[]) of DataInputStream Also writing data using write(byte[]) of DataOutputStream. Whenver I am sending small amount of data my ...

3. in a JAVA client/server application, in which portion of the communication interface should i store the instance variables?    stackoverflow.com

i am designing a card game.. multiple clients will connect to a single server object. should i store the instance variables in the protocol or the server object?

4. FIX communication model - messaging or socket    stackoverflow.com

My situation is: A c++ program needs to talk with a Java program using FIX protocol. My solution: - Messaging: C++ program publishes a text in FIX format which Java progrma ...

5. What are the good alternatives for communication between local C++ and Java programs?    stackoverflow.com

By "local" I mean both run in the same subnet, in most cases the same host/VM, therefore some standard cross-network cross-platform RPC mechanisms like SOAP, XML-RPC, CORBA, etc. seem unnecessary. The payload ...

6. Java socket communication using NIO    stackoverflow.com

Currently, our application uses socket input and output streams for communication. In the concrete example, it reads from a console input stream and writes to a socket output stream. If the ...

7. Client-Server Communication (without port forwarding) when both are behind routers    stackoverflow.com

hi I have a client and server both of which are behind routers. They need to communicate over sockets. Enabling port-forwarding is not an option. The client-server will maintain a live socket ...

8. what communication technology should i use to create my app?    stackoverflow.com

hello As a project I've been asked to write using java my own dropbox. My program will have, like the original dropbox a listener (using nio2-already wrote) to a specific folder and ...

9. Communication between Flex and Java Socket    stackoverflow.com

I have a Flex AIR app, and i am trying to get data from a Java Server. Can some one tell me if this approach will work? Start a ServerSocket in Java ...

10. Bidirectional Java clients/servers communication    stackoverflow.com

I am trying to design a distributed application in Java with a few servers and a few managers (applications monitoring and configuring the servers). Most of the traffic between the servers ...

11. Socket communication between C and java    stackoverflow.com

I have a client and a server both running in C. My task is to introduce java program in which I create a server to the C client and a client ...

12. com port communication    coderanch.com

hi all I am new to this forum.Can any one guide me how to configure com port for communication with external devices. Iam doing one project and I want to connect at com port 1. An instrument for RF measurements 2. A Digital RF modem to configure for digital rf carrier and alarm display I want to give command to above ...

13. communication with modems    coderanch.com

14. TCP/IP Communication    coderanch.com

hi Guys, - I have a TCP/IP application. There is a server running on a machine. There are couple of class files located on the same machine. - I have a client running on another computer. - My requirement is to make the client call the server and the server in turn invokes different methods from local (to the server) classes ...

15. Communication behind Proxy    coderanch.com

16. Serial communication    coderanch.com

17. Java VB communication    coderanch.com

The naming policy is very confusing. It asked my username but also said something like ", name" after it. I wasn't sure if it wanted my username or my real name. Why not just povide another field for Real name? ALso why not modify the system so that we can edit profiles? [This message has been edited by anam (edited November ...

18. Java VB communication    coderanch.com

hi Russell, i've read your msg a few times and am still quite confused... are you worried that if many connections are made to the port you are listening on, that the incoming data will become interleaved and corrupted? if that is your fear, i think it is unfounded - although multiple (in your case, VB) clients share the same (java) ...

19. Modem Communication    coderanch.com

Hi, In out project we need to send data between two modems. We are planning to use javax.comm APIs write data to the modem port. A couple of questions that cropped up: 1. What are the chances of data loss or corruption. 2. Where does PPP come into picture? Do we need to use the PPP protocol? 3. Are there any ...

20. x.400 Communication and Java    coderanch.com

Hello, I need to be able to speak x.400 from a Java gateway I am writing. Are there any tools that will allow me to do this? I need to communicate using this protocol over TCP so it should not be immpossible. The protocol that I need to speak on that side of my gateway requires using x.400 so I unfortunately ...

21. Unix and Windows Communication    coderanch.com

Hi All, I have an interesting problem (at least to me). I am experimenting with ObjectInputStream, ObjectOutputStream and sockets. I have written 2 very simple programs; a server and a client. I am constructing a JFrame on the server and when I hit enter, it will send the JFrame to the client. The Client then creates a new JFrame with the ...

22. Socket communication using Socks protocol    coderanch.com

I am facing a problem with an application which uses socks protocol to communicate. My application communicates to server using socks when I am running the application using jre 1.3.1. I have set the system properties socksProxyHost and socksProxyPort which is working fine with jre 1.3.1. Now the problem arises in jre 1.4.1. I get an exception: java.net.SocketException: Socks authentication failed ...

23. C/S communication over FW&VPNease help    coderanch.com

Hi, I have a server and multiple clients. The server generates messages and sends them to the subscribers. each client has multiple subscribers. The system was simple at the begining. I was generating sub requests on the client side and forward them to the server. The server would group the requests by hostname and create distribution thread for each host. The ...

25. Layer 3 communication    coderanch.com

26. The best approch on applet to server communication    coderanch.com

Hi! My task is to get an applet to send and recieve data from a server on a specific port. What is the best approch on recieving and sending data? 1. Open a socket to server send or recive data and close the socket? 2. Open a socket to server. Let the connection be open until the applet closes/ terminates? What ...

27. Java Multiplayer Game communication    coderanch.com

28. Problem with Communication API    coderanch.com

Hello , i have been working with communications API.. recently i had to work on windows 2003 server and all the classes that worked with other OS in windows family like 2000 and XP have been giving me problems in 2003 the communication API i have set as i have been doing all the time at approriate places in jdk. but ...

29. communication between 2 PC    coderanch.com

Yes, Java is well suited to network applications like that. You can use RMI, sockets, JMS messaging, web protocols and others. Do you have experience with any of those? Describe your usage scenarios a bit. What do users do? Will it feel more like peer-to-peer chat or more like a web application? Somewhere between your usage needs and your experience we ...

30. Serial port communication    coderanch.com

Hi all, I have an int array in my program, which i need to send through serial port.. right now, i am sending the data element by element, while listening for the DATA_AVAILABLE event. I send the first element, wait for the DATA_AVAILABLE event and then send the next element. Is this the way it is supposed to be done? Is ...

31. How to approach a very simple P2P communication program.    coderanch.com

I learned how to program a client/server by using Socket and ServerSocket. But what if neither machine is really a server or a client? Does the code running on both require having a ServerSocket, or is there another approach? Here's a little explanation to make things a bit more clear: I'm writing a voice chat application, starting out simple, I capture ...

32. Client-Server Communication    coderanch.com

33. Client-Server Communication    coderanch.com

34. Serial Port Communication    coderanch.com

35. client-server communication    coderanch.com

hi everyone, LAN: in my lan my servlet is sending response to client & forwarding response .In my lan my server ipaddress is 192.168.5.90 clientaddress=request.getRemoteAddress(); response.sendRedirect("http://"+clinetaddress+":8080/readfile); but went we webhosted the program is not working its giving a false ipaddress for client. when webhosted my server ip changed 192.168.5.90 to 53.192.168.99 or so .when i started to see from out side ...

37. Communication of java and flash through a socket    coderanch.com

I am developing an application which is a socket based communication implementation for java and flash. I have implemented it like this article. http://www.dagblastit.com/java/sockets.html I have a question regarding the character encoding of the passed xml data chunks. Some of the characters sent from flash side is not compatible or recognized by the java side. Flash side encodes that using UTF-8 ...

38. Socket communication external web server (Apache)    coderanch.com

Hi! Sorry for my bad english! I have got a big problem... I develop struts web application java 6 with apache tomcat. This web application one most important function is read RSS sites. One RSS site (www.ft.com/rss/world) redirected (statusCode = 302), so I connect this site with Socket and send GET /rss/world HTTP/1.0 User-Agent: Wget/1.9.1 message, respose I give RSS site ...

39. how to establish communication    coderanch.com

hi, I have One hardware device (HID controller). to which I have to establish communication. As per its document we have to listen on port no. 4070 at our server program. and the controller whose address is 192.168.0.103 will listen on port number 4050. I want to know that how I can meet this requirement. that listening at one port number ...

40. Using VOIP for PC to PC communication on Linux platform    coderanch.com

Hello All, I am writing a program to implement a "caller" and a "listener" program in java using VOIP on the UNIX/LINUX platform. These programs will help in communicating between a PC and Mobile Phone and vice versa over VOIP. The Caller java program- makes a call to a particuar number. and Listener java program accepts incomming calls. I have been ...

41. Communication between different protocols    coderanch.com

By process I mean the piece of code that is listening on the server port. Do you have control over that? If so, you could implement a simple HTTP server. But having a mobile device as a listener seems a somewhat strange thing to do; what exactly are you trying to do?

42. socket communication with AS400...    coderanch.com

Hi, I am supposed to code an application to talk to AS400... before i send the data i will convert it to "Cp1047" but when it reaches AS400 its appears to in HEX. Any one can spare me some clue what am i doing wrong here? Desire result: f0f2f9f9f44040404040f0f0f1f6f6f8f1f6f0f9c3c3f... Current result: 30323139 30202020 20203032 35313037... Thanks

43. Client/Server Communication Problem    coderanch.com

Hi, I am new to java and completely new to this networking. I tried to run this program in order to have a communication between client/server. when I tried it in the same network its working.Then, I have kept both programs in different networks and tried to communicate. This is where its throwing an error java.net.ConnectException: Connection timed out: connect at ...

44. A curiosity: tool to watch the SMTP communication    coderanch.com

Hi, 1. Tcpmon help us to watch the HTTP communication. Is there a similar tool to watch the SMTP communication when we send an email? (A curiosity.) 2. I used Apache Common Email to send an email. I noticed when I used a given specific public wifi. It failed. Is this a network issue (security, permission, etc...) For other public wifi. ...

45. Can I Have Two-Way Communication with Sockets with just one Port?    coderanch.com

I've had some success working with sockets. I can start a Java program on one machine that I'll call the server, and can then start another Java program on another machine that I'll call the client, and I can have the first program on the server use a socket to send information to second program on the client. In this situation ...

46. Socket and ObjectStream communication    forums.oracle.com

I am trying to do something very simple. I have a server and multiple clients. Each of those clients connect to the server on a particular port. Every client talks to the server based on the current state of the client. For eg, the client first connects to the server and provides its identity. Once the server authenticates this client, it ...

47. Question about socket communication.    forums.oracle.com

Hi. I have question about socket. I have a serwer socket on port 4444. To this socket I connect two or more clients socket. On server after accept() I have two or more object instans of Socket class. Now - every "accept" socket has a local port 4444 !!! Now is my question. How OS or JVM know where to send ...

48. socket communication    forums.oracle.com

49. Socket communication and SWT Images    forums.oracle.com

Hi everyone, i'm new in the forum and i'm sure that i have post my question in the wrong position. Sorry also for my english but i'm italian and i don't speak well english, i hope that someone understand me and answers at my question. I have a problem with a java program (a program with SWT user interface) that is ...

50. Communication between applets using socket    forums.oracle.com

Hi, we have an application in which based on certain criteria a video is bieng played in the applet on same machine.Now we have to separate the video component from the application part so that video can be played separately. they will be communicated using socket.Can any body tell me how to go about for the solution.

51. Socket communication    forums.oracle.com

hi, i have never used socket programming but was assigned a task to design a socket connection classes using TCP/IP. The requirement is as follows: 1. I have a servlet running on a server. 2. The request received by this servlet is forwarded to an external program by opening a TCI/IP socket connection. The same port is used for sending and ...

52. Socket two way communication    forums.oracle.com

Hello guys I need your help, I have a one way communication using sockets. The client (in java) sends information to the server (in C++); the communication takes place via TCPIP. I need to make this a two way communication so that they send information back and forth. Do I need to open another socket to that the server sends info ...

53. A question about the communication between Java and C by socket    forums.oracle.com

I defined a C structure and sent this structure to a Java application by socket. Stop right there. Don't ever do that. Even if you are staying in 'C' you are assuming that the following things are the same at both ends and will remain so for the life of the application: (a) the hardware, specifically its byte-ordering within words and ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.