Hi,
I have set up a system with a Client-Server architecture.
Problem: Sending daily log data from the client application to server. Both the client and server are on an internal network.
Possible Methods...
1) Using Socket Programming
2) Sending over Active Directory (if possible)
Please suggest some methods (apart from http) and ...
I'm working on a project which requires us developing our own intermediate SMTP relay to handle some outgoing mail so that it abides by certain rules. For the most part, I have everything functioning but I am having an odd issue that does not seem to be addressed by the SMTP spec. I'm not super familiar with sockets, either, so that isn'...
Hi,
I want to set up a system with a Client-Server architecture.
Problem: Sending daily log data from the client application to server. Both the client and server are on an internal network with different IP addresses.
Possible Methods...
1) Using Socket Programming
2) Sending over Active Directory (if possible)
3) Sending file fr...
Are there any tutorials on using sockets for client/server connection with Google App Engine for Java services?
...
Hello there guys
It is pure winsock server question. Just to clear that I already know how threads work.
I have global sockets called Global and Main_Socket.
long __stdcall newthreadfunction(); //prototype of new thread function
SOCKET Global; // To be shared and copied by thread
SOCKET Main_Socket; //main listening socket
WSADATA w...
When I use sendto() to send messages, i get the error "message too long"?
Socket tcpSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
How can I find out the maximum possible size that i can send? Can I change it? What could be possible problem here?
...
EDIT
I've made changes to what I saw below and this is what I have
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/un.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <string>
#include <vector>
#include <iostream>
#include <cstring>
#include <cstdlib>
#include <errno.h>
using namespace std;
string buffer;
vector<s...
I am scaling up a socket server written in JAVA using xSockets to support rooms (multiple serving sessions?), and am wondering how to execute multiple server loops at once. I have a room class, that when full needs to execute the application severing code.
That is myRoomInstance.run() needs to run to synchronize the clients for the ent...
I have written a small client server socket application. It is a proof of concept for some socket programming that I want to apply to a much bigger project.
For the moment I want to user wireshark to analyse the traffic that goes between them. They are both running on my local machine.
I have installed a loopback interface, and have tr...
If Python, if you are developing a system service that communicates with user applications through sockets, and you want to treat sockets connected by different users differently, how would you go about that?
If I know that all connecting sockets will be from localhost, is there a way to lookup through the OS (either on windows or linux...
Hello,
I am working in the communication between two programs, one in C++ and the other in Java, connected using standard sockets. Both programs run under UNIX (Ubuntu) within the same machine and share information for a period of time in regular basis. At some point of the execution and always at the same point it gets stuck since the ...
Hello,
I would like to ask a question about correct way of canceling socket operations on Symbian. Basically, we have two options, as far as I understand:
Call CActive::Cancel() on a ActiveObject that is used for asynchronous requests.
Call RSocket::CancelRead() or RSocket::CancelSend() or RSocket::CancelAll()
Which way is correct? ...
Guys, please help me
I implemented a Client and Server model that uses Socket with thread
When I want to pass only a string from Client to the Server, it works. But I want to pass an object and it throws this error:
"Attempting to deserialize an empty stream"
Here is the code:
Client:
ASCIIEncoding asen = new ASCIIEncoding();
Memo...
Hi,
i already have a post which is quite similiar, but i am getting more and more frustrated because it seems nothing is wrong with my network setup. Other software can be seen from the outside (netcat listen servers etc.) but not my scripts.. How can this be??
Note: It works on LAN but not over the internet.
Server:
import socket
ho...
In my application i am calling shutdown and closesocket function twice on same socket. I know this is not right thing to do and i have to ensure that these functions are called only once but why doesnt the shutdown socket or close socket fail when called second time.
If m_Socket is having a value of 1500 what will its value be when shut...
I am trying to port my application from a 32 bit Windows 2008 Server to 64 bit Windows 2008 Server. My application does a lot of TCP/IP socket operations - connecting and communicating with a lot of processes. Intially few of the connections succeed but afterthat all the connect() calls return the 10055 error (No Buffer space available)....
So I'm writing an application for my iphone that networks to my computer running a java application using AsyncSocket. On the java side, it should print out "Ok" when the iPhone connects to the server. I also added a sleep() command to the iphone side, so after it connects to the server, it sends some data and then sleeps for 5 seconds. ...
What is the most succint way of writing the GetMessages function with Rx:
static void Main()
{
Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
var messages = GetMessages(socket, IPAddress.Loopback, 4000);
messages.Subscribe(x => Console.WriteLine(x));
Console.ReadKey();
}
s...
I have a Flash browser application that is used as the front end for a game I'm working on. I would like the application to be able to communicate with other instances of the application. Currently it works using URLRequests, reading from a remote PHP page that echos the data in XML. For this to work it must send a request on a specific ...
I am trying to create a UDP listener that will listen on a separate thread. It works fine the first time but when I stop the connection and then start it again it gives me errors.
listenerRunnable = new Runnable() {
public void run() {
//This thread will listen keep listening to the UDP traffic and put it to the log...