sockets

Flash as a socket gateway for javascript

hi everyone, i just completed a web based chat application based on ajax/php. But the problem with this app is that it has to continuously poll server to check for new messages, which in turn overloads the server if many people are using this app simultaneously. now i want to implement a socket based chat app in JavaScript. I know ...

USS C++ socket programming and _OE_SOCKETS

Hi there, I'm currently porting an app on MVS using the USS interface. I'm facing an issue compiling (using c++ compiler) the following program: #define _XOPEN_SOURCE_EXTENDED 1 #define _OE_SOCKETS #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> int main() { struct in_addr add; int sd ...

c++ send data to multiple UDP sockets

Hi all! I got a c++ non-blocking server socket, with all the clients stored in a std::map structure. I can call the send() method for each clientObject to send something to the connected client and that works pretty good already. But for sending a message to all (broadcast?) i wanna know: there is something better than do a for/loop w...

See socket options on existing sockets created by other apps?

I'd like to test whether particular socket options have been set on an existing socket. Ie, pretty much everything you can see in: #!/usr/bin/env python '''See possible TCP socket options''' import socket sockettypelist = [x for x in dir(socket) if x.startswith('SO_')] sockettypelist.sort() for sockettype in sockettypelist: print...

Push Call to STL Queue<std::string> causes Segfault when String is read off socket

I'm using an STL Queue as an input queue, it's containing std::strings, which I have aliased as String using a typedef. I'm reading the input string off a socket - using Berkeley sockets. It is read into a char buffer array and then used to set a string which is passed to the queue. It only happens for the input queue - the output que...

Reading from socket using SmallSockets makes my app crash

Hi, I'm creating an app using the SmallSockets library ( http://smallsockets.sourceforge.net/ ). I have this code: #import "MAController.h" #import "Socket.h" @implementation MAController - (IBAction)doRequest:(id)sender { //Initialize NSURL *uUrl = [[NSURL alloc] initWithString:[tfHost stringValue]]; int ...

Networking in C/C++?

I am a begginer C++ programmer. In C#, I used the System.Net.Sockets.Socket class, which represents a networking socket, to create/connect a server. How can I do the same thing in C/C++? Are there any classes like this? ...

Receiving order of socket

Hi, I am using socket to send data from local machine to remote in TCP, stream mode. The code in the local side is : // ----------- Local send(sd, pData, iSize, 0); // send data The size of the data is about 1Mb, so socket might divide it to several packets. While I am recieving the data on remote side, I have to recieve the data se...

sendto fails with a non administrator user with errorcode 10013

Hi! I found more source codes which are working like ping. My only problem with them is, that if i run the program with a non administrative user, then i get back errorcode 10013 which means : "An attempt was made to access a socket in a way forbidden by its access permissions." If i run the program with a user which is member of the ad...

What is weblogic.socket.Muxer?

Does any of you understand what weblogic.socket.Muxer is used for in WebLogic 8.1? Often in thread dumps I see stack traces similar to this: "ExecuteThread: '0' for queue: 'weblogic.socket.Muxer'" id=20 idx=0x68 tid=26709 prio=5 alive, in native, blocked, daemon -- Blocked trying to get lock: java/lang/String@0x2b673d373c50[fat loc...

Client server application

Hi, Can any one please provide me the sample client and server application in win32, i just want to make my machine as server and client.. if i send a data from client i should be able to see at server, vice versa.. Thanks GrabIt ...

.Net Sockets -> throw System.InvalidOperationException

Hi, I've been having this issue for a while now and was never really able to resolve it. This issue only appears when I'm using the SendAsync/ReceiveAsync methods rather than the Begin/EndSend socket methods for asynchronous operations. If have a fairly sophisticated tcp socket library and been meaning to replace the BeginSend methods ...

TCP Socket Sending Delays and Retransmission

I have a .NET 3.5 C# application that sends 2000-6000 byte packets to a linux machine running sles 10. The machines are on the same subnet. About 90% of the time, everything works fine. The linux machine processes my request and responds in 5-15ms. But about 10% of the time, there is an approx 200ms-800ms delay. Looking at the logs ...

Bizarre System.Net.WebException

I have a program that makes repeated calls to a web service that works fine during the day, but during nightly builds and testing the program repeatedly throws the following exception: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target m...

Would it be a good idea or bad idea to connect a VB.NET frontend with a Python backend using sockets?

I have some really nice Python code to do what I need to do. I don't particularly like any of the Python GUI choices though. wxPython is nice, but for what I need, the speed on resizing, refreshing and dynamically adding controls just isn't there. I would like to create the GUI in VB.NET. I imagine I could use IronPython to link the two,...

C++ multiplayer UDP socket API

Hi all! Can anyone recommend an easy to use, fast and reliable C++ API for sending and receiving data over a UDP socket? Maybe something that is specifcally intended for multiplayer games? ...

Continuously sending data through Java socket

Hi all What is the best way to send a series of data (float array) from a server to a client continuously through Java socket? For example, I have a server that produces float data every 1ms, and I would like to send this data to a client. My plan is to put this process in a thread (server side) and send it to the client continuously. I...

.Net Apple Push Notification service Provider?

I started to write a provider for APNs in .Net today, and it seems I've hit a brick wall... Everything I'm finding about securing sockets says that a System.Net.Sockets.Socket cannot implement SSL. I'm fairly new to raw sockets programming...does anyone know of a way to connect a raw socket to a server over SSL? ...

Writing memory to socket in chunks in C

Hi, I'm attempting to write memory contents to a socket in chunks. I can write files that are smaller than my buffer, but anything else and I'm in deep water. /* allocate memory for file contents */ char fileContents = malloc(sizeof(char)*filesize); /* read a file into memory */ read(fileDescriptor, fileContents , filesize); int chunk...

Not Receiving All Packets - Visual Basic Sockets - Async

Here's the code on the sending side of my sockets: Private Sub Send(ByRef Buffer() As Byte) Dim obj_StateObject As New StateObject obj_StateObject.WorkSocket = m_tmpSocket m_tmpSocket.BeginSend(Buffer, 0, Buffer.Length, SocketFlags.None, New AsyncCallback(AddressOf OnClientSendComplete), obj_StateObject) ...