receive

Text message receiving API - UK and USA

Looking for a cheap way of receiving text messages by HTTP POST or other easy way. I want it to be standard rate dedicated number (no keyword). I've looked at http://totext.net/ and it looks good for a UK number. Any other recommendations? Also, any recommendations for a US number? ...

Problems receiving data over a TCP client socket in 'C'

I'm trying to make a TCP Client program in C where the client will start up, connect to a server. Then it will send a little information and then just listen to what it receives and react accordingly. The part that I'm having trouble with is the continuous listening. Here is what I have ... while (1) { numbytes = recv(sockfd, buf, ...

Raw Socket Receive Buffer

Hi All, We are currently testing a Telecom application over IP. We open a Raw Socket and receives messages from the remote side (msgrate@750+msgs/second approx size of 180 bytes excluding IP). On top of the Raw socket sits a layer called SCTP (just like TCP) which is indicating every now and then that it is missing some packets. Now, w...

Socket : can an asynchronous Receive returns without reading all the bytes I asked for?

Hi; I was reading an article on Vadym Stetsiak's blog about how to transfer variable length messages with async sockets (url: http://vadmyst.blogspot.com/2008/03/part-2-how-to-transfer-fixed-sized-data.html). He says : What to expect when multiple messages arrive at the server? While dealing with multiple messages one has to reme...

Is it possible to know if a process(Java app.) is waiting in Blocked state on a Receive() call on Linux?

My main purpose is to execute processes one by one in a round-robin fashion until one calls receive() and is blocked, so that the execution switches to the next process in the queue. There is a controller application which is coded in Java and it executes these processes(which are also Java applications) using Runtime.getRuntime().exec()...

Why do I receive twice the data sent over UDP broadcast?

Hello, I have a problem with the code below. What it does is send the current date/time using UDP broadcast and listens to this message. My current use of this code is local, I use the Send and Receive in the same application, on the same computer. I didn't try it between 2 computers yet. public class Agent { public static int Port...

Scala: What is the difference between while(true) and loop?

I don't get the actual (semantic) difference between the two "expressions". It is said "loop" fits to "react" and "while(true)" to "receive", because "react" does not return and "loop" is a function which calls the body again all over again (it least this is what I deduct from the sources - I am not really familiar with the used "andThen...

WCF Web Service Fails on Receive with Large Data

I am calling a WCF Web Service locally (or remotely) that is working fine with small amounts of data (about 25 lines of < 1K of data ea). But when the data gets larger (about 300 lines) the web service fails. Below is the Exception, Inner Exception, and Stack Trace from the Inner Exception. The service also seems to be taking unusually...

Winsocks Send and Receive

I'm using the WSAEventSelect I/O model in Windows Sockets and now I want to know that how may I know that my send and receive operations have sent and received all of the data? After I know that, how should I design a way so that it sends the data fully? Any examples would be really appreciated. Here is my code (not mine actually samp...

C# .Net MSMQ Receive() method timeout problem

My original question from a while ago is MSMQ Slow Queue Reading, however I have advanced from that and now think I know the problem a bit more clearer. My code (well actually part of an open source library I am using) looks like this: queue.Receive(TimeSpan.FromSeconds(10), MessageQueueTransactionType.Automatic); Which is using the ...

MMS2R and Multiple Images Rails

Here's my code: require 'mms2r' class IncomingMailHandler < ActionMailer::Base ## # Receives email(s) from MMS-Email or regular email and # uploads that content the user's photos. # TODO: Use beanstalkd for background queueing and processing. def receive(email) begin mms = MMS2R::Media.new(email) ## # Ok to fi...

C# asynchronous socket BeginSend EndReceive

i am new to programming and i am confused about asynchronous socket programming. for example lets say i have 2 BeginSend, one right after another. the first sends a million chars and the secnd sends only 64 chars. due to the asynchronous nature won't the second BeginSend complete before the first one? if so how can i tell the recieve...

Set up mail to receive emails on Google App Engine

The documentation is rather incomplete. I could not set up the inbound email. Please kindly advise. Here are some details: app.yaml: handlers: - url: /_ah/mail/owner@oladic\.appspotmail\.com script: handle_owner.py login: admin - url: /_ah/mail/support@oladic\.appspotmail\.com script: handle_support.py login: admin - url...

Receive index with jquery

while selecting the desired element is simple in jquery i haven't found one way to receive an elements index here's an example of what i want. $('#minia .holder a').click(function () { }) this function is used obviously to catch any clicks on one of thoose elements to catch that specific element I use $(this) now my question is how w...

BizTalk 2006 - receive file through FTP - timeout issues

Hi all, When trying to receive a (large, approx. 100MB) file using an FTP adapter in BizTalk 2006, we run into the following problem, which causes the file to be processed over and over again. Retrieving the file succeeds; it is placed into the MessageBox and processed properly When the FTP adapter issues the DELE statement, it never ...

Socket programming VB.NET - Read blocks indefinitely

Following is the code that I'm using for reading data over a .NET socket. This piece of code is run by a single separate thread. It works OK the first time, on the second iteration it stops at "client.Receive(buffer)" and never recovers from it. Initially I was using recursion to read data but changed it to iteration thinking that recurs...

How to dynamically allocate buffer for receiving UDP socket (VB.Net)

A friend and I are working on a project where we're required to build a reliable UDPclient/server using VB.Net. We have things working well, but one thing that still eludes us is how to dynamically allocate a (byte) buffer for the incoming data. Right now we have to hard code a maximum value/MTU (or use a really large buffer size and r...

Why I can't get all UDP packets?

My program use UdpClient to try to receive 27 responses from 27 hosts. The size of the response is 10KB. My broadband incoming bandwidth is 150KB/s. The 27 responses are sent from the hosts almost at the same time and for every 10 secs. However, I can only receive 8 - 17 responses each time. The number of responses that I can receive ...

Why doesn't SSIS ftp task receive file?

I'm running an FTP task inside of SSIS to receive a file and the task executes successfully yet no file is returned to the local folder that I specified. Where did the file go? How can I make the FTP task download a file to the location that I need it at? ...

How can I receive mail using .NET?

I need an open source C# program that can receive SMTP messages and save them in a class (and sends mail, but this is optional since I found a lot of those) Does this program use SMTP or POP3 to receive mail? ...