Hi,
I have a bluetooth RFCOMM socket waiting in accept, after an incomming connection I send a command to the remote devie and read the answer with recv. This works perfect if I use the debugger or the debug build exe. In the release build I got a connection and send the command after that the select before recv is returning for receive...
For last 48 hours, I have been trying to understand Multithreading and Socket Programming. I tried to implement socket programming and had success when not using multithreading. I am new to both of the topics and have raised 2-3 question on stack itself needing help on the same.
After googling a lot I found an article that explains So...
Hi, I'm looking for a library that will allow me to deliver simple text events from the server to the clients via sockets. Something simple and lightweight. I can write it myself, but decided to check if such thing exists first. The idea is that there's an application that generates events (such as order rejected or an internal error occ...
Hi all,
I'm working on a AIR 2.0 project which uses ServerSocket and Socket classes to communicate between applications. For now, messages are only "ping?" => "pong!", but I'd like to dispatch more complexes messages... Is there a "standard" protocol for that?
Thanks !
Romain
...
We have a simple client server architecture between our mobile device and our server both written in Java. An extremely simple ServerSocket and Socket implementation. However one problem is that when the client terminates abruptly (without closing the socket properly) the server does not know that it is disconnected. Furthermore, the ser...
Hi,
I have in my website a Flash Application. I've written a server as a desktop application and tested all my Web Site over the server. Either I want to put the server in my web page, but I do not know how? Should I write a WCF ? Or should I put a class under App_Code folder with a public static class which opens the port and does ever...
Hi,
I'm wondering if anyone knows how to calculate the upload speed of a Berkeley socket in C++. My send call isn't blocking and takes 0.001 seconds to send 5 megabytes of data, but takes a while to recv the response (so I know it's uploading).
This is a TCP socket to a HTTP server and I need to asynchronously check how many bytes of ...
I am using sockets to create a POST request to a given server. The response comes back mostly ok, and I'm using an InputStream with an encoding of "UTF-8" to read the response from the server. Most of the response makes sense and I'm able to view the HTML correctly, however, seemingly at random, I see codes such as "1ffa", "6e8", "1972",...
Hi
How can i know if a BluetoothSocket is still connected to the endpoint? How can i detect if the socket has been disconnected by the endpoint?
Thanks
...
Hi
I'm building a socket , using
CFStreamCreatePairWithSocketToHost(kCFAllocatorDefault,
(CFStringRef) yourHostAsNSString,
yourPortAsInteger,
&myReadStream,
&myWriteStream);
and I s...
Hello everybody.
I'm looking for something,I don't know if it exists.
I have a Java server, something like
while (true) {
try {
Socket socket = server.accept();
new ConnectionHandler(socket);
System.out.println("Waiting for a new client message...");
} catch (IOEx...
Today I've got an problem with an ObjectStream (Input and also Output).
I used the Input and OutputStream which came directly out of the socket.
While initialising the streams my runs and runs and runs. With no error message.
I got no error message.
It seems that the constructor of the ObjectInputStream runs endless...
Here is the code...
I have a tcpip socket interface to a third party software app. I've implemented this interface for several customer sites with no problem. The latest customer, though... problems. We've turned on logging in the apps on either end, and also installed Wireshark on the PC to log raw tcpip traffic. With that, we've proved that my server ...
I'm sending a very large string from one application to another on localhost using sockets in python. Small strings move instantly, but large strings seem to take a while longer (I say large, but I'm talking maybe a MB or two at the very most). Enough that I have to sit and wait a few seconds after I do something in one app before it sh...
I'm having a strange problem while attempting to transform a blocking socket server into a nonblocking one. Though the message was only received once when being sent with blocking sockets, using nonblocking sockets the message seems to be received an infinite number of times.
Here is the code that was changed:
return ::write(client, mes...
What's wrong with this please?
It throws this error: "Attempting to deserialize an empty stream" at server side in this line when I run the server: "this.tcpListener.Start();"
This is my internet IP, if I use my local IP, it works. But i want the internet IP.
Client side:
TcpClient tcpclnt = new TcpClient();
Console.WriteLine("Connecti...
which protocol would be the best choice for the communication between server and mobile client app??
RESTful? SOAP? XML-RPC? or something else like Native TCP?
mobile clients include iphone, android.
...
I have 1 computer with 1 network card installed. The network card has 10 IP addresses assigned to it. I have a windows desktop application running there. The application is basically a webbrowser making a call to 1 specific website.
What I want to achieve is for the webbrowser to change its source IP address (round-robin through the IP...
Hi,
What’s the best language and IDE to develope socket server?
I want a language I can learn quickly that will work on an
enterprise level. Please set me up with some good resources:)
Thanks
RECOMMENDED LANGUAGES
'I only know Flash and scripting languages'
• JAVA
• C languages and VB++
• PHP
I’m tring to get my Flash animations to co...
Hi,
I've been working on a application for iPad that use sockets to communicate with another application and I'm having a lot of problems figuring out how to implement a timeout when sending data to my server application.
I have like 3 command that I send to the server depending on what type of information I need, one of this commands ...