sockets

sending file to another active directory user using c#

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 ...

Handling of extra '=' characters in an SMTP session when appended to \r\n line terminator

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'...

sending a file from one IP address to another IP address using c#

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?

Are there any tutorials on using sockets for client/server connection with Google App Engine for Java services? ...

Winsock: Accept on global socket, start new thread and copy there, free previous global

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...

Message too long error in Socket communication in C#

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? ...

C++ Socket Connection Error

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...

Looking for an overview: Java Socket Server Operational Code

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...

Using Wireshark With Local Test Application

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...

Determine user connecting a local socket with Python

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...

Different behaviour of sockets in Java program running in Ubuntu or Windows

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 ...

Symbian: How to cancel socket operation in a correct way

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? ...

Problem with Socket and Serialization C#

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...

Making Python sockets visible for outside world?

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...

Calling shutdown and closesocket twice on same socket

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...

Socket Error 10055 64 bit Windows 2008 Server

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)....

AsyncSocket Delay

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. ...

Using Reactive Extensions (Rx) for socket programming practical?

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...

Chat Program in Flash - Need help with Server (Java?)

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 ...

Socket not closing properly

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...