send

Winsock WSAAsyncSelect sending without an infinite buffer

Hi, This is more of a design question than a specific code question, I'm sure I am missing the obvious, I just need another set of eyes. I am writing a multi-client server based on WSAAsyncSelect, each connection is made into an object of a connection class I have written which contains associated settings and buffers etc. My question...

Will EAGAIN return on send for anything other than buffer full?

If I use send() on a non-blocking tcp socket in Linux will it return EAGAIN for anything other than a send buffer full condition? I basically need to decide if I want to use the socket send buffer as the only buffer for my app or if I need my own user space buffer to feed the socket buffer. ...

Sending recorded packets

Hello, is there a library or a class that would allow me to record on going packets from my computer (which is done on tools such as ETHEREAL[WIRESHARK] & WPE PRO(if you happen to be a gamer). To then resend it on a loop. I'm trying to make a service that would interact with my router on a timely basis. Thanks ;). ...

With C TCP sockets, can 'send' return zero?

Is it ever possible for the C send function to return zero when using TCP sockets? The man page just says that it will return the number of bytes sent, but I am not sure if it will just return -1 when it can't send any data. ...

Ruby send with no symbol

Is it possible to send nothing to an object? Let me elaborate. For instance I could have something like this: val = some_stack.include?(some_val) ? some_val : nil obj1.obj2.send(val).obj3.obj4 The above call wont't work because nil is not a symbol. So the solution is: if val.nil? obj1.obj2.obj3.obj4 else obj1.obj2.send(val).ob...

Perl expect - how to control timeout on target machine

Hello, I am a newbie to perl. I am using perl expect module to spawn to a remote system. Execute a set of commands there one after another using the send module(like $exp->send("my command as string goes here\n"). The problem is the commands that I execute take some time for processing . And before all the command finish the remote mach...

Scapy SYN send on our own IP address

Hello, I tried to send SYN packets on my local network and monitoring them with Wireshark and everything works just fine, except when i try to send a packet to my own ip address it "seems" to work because it says Sent 1 packet, but it is not really sent, i can't see the packet in Wireshark nor any answers to the packet. My setup is a co...

C++ Sockets Send() Thread-Safety

I am coding sockets server for 1000 clients maxmimum, the server is about my game, i'm using non-blocking sockets and about 10 threads that receive data simultaneously from different sockets (first thread receives from 0-100,second from 101-200 and so on..) but if thread 1 wants to send data to all 1000 clients and thread 2 also wants t...

How to send an email with this IMAP library

I am using this library IMAPX to get emails. I also need to send emails but cannot figure out how. I tried using the example code: client.Folders["INBOX"].AppendMessage(msg) but receive an error that AppendMessage requires two arguments and I cannot figure out what the second argument should be. Is it possible to send an email with...

Send Facebook message from application

Hello! How can I send a message to the currently logged in user from inside a Flex application contained in a Facebook iFrame and using the official AS3 Library for Facebook please? ...

How to do nothing after using SMSManager.sendTextMessage

In my program I have a dialogue-themed activity that pops up with an edittext and submit button that sends an sms message. After the message is sent I want the phone to go back to whatever activity it was doing before (the dialogue is started by a broadcast receiver) however SMSManager's sendTextMessage(...) method takes a pending inte...

is it safe to recv() and send() on one socket concurrently?

I remember having read somewhere that a socket can be regarded as two independent half-duplex channels. Does it mean that recv() and send() of the same socket are actually irrelevant? if so, is it by definition or implementation-specific? if not, how the two interfere with each other? thanks. ...

Sending Email in C# WinForms VS ASP.NET C#

Hey All, I was just wondering if anybody else has had the same problem as me. I am trying to send emails from a simple form using ASP.NET (VB/C# I don't really care), and what does my head in severely is the fact that it seems so much harder to send an email using ASP.NET than it is in WinForms! In WinForms, I can write some code to s...

Google App Engine Java Send Mail from alternate email Address

Is there a way to change the From email address to another email address in google app engine. Right now I want to send from addresses in my domain that is linked to google app engine, not the email address or the main address. ie: my account address is [email protected] but I want the email to come from [email protected]. thanks, ...

using facebook connect to send message to other users

i am creating a website that will intially have an invitation-only functionality. i.e. a user gets an invitation with a special url that they can use to sign up. to login on the website i use facebook connect. to send beta invitations, the user can see his facebook friends, and select which users he wants to send the special urls to (e...

MFMailComposeViewController does not send mail

Hi there, I am trying to send mail using MFMailComposeViewController. Everything works, except that mails do not get sent, and I always get MFMailComposeResultFailed. Any pointers? I am NOT using the simulator, and sending mail does work from my device. I do have a connection (testing via Reachability), and [MFMailComposeViewController...

com0com RS232 terminal Java program

i made a JAVA program that runs on a computer with 2 RS232 ports it works pretty good i connected 2 devices that comunicate with eachother trough RS232 i put the computer between the cable you can see everything getting send on a terminal window but after a random amount of time 1 device stops responding on queries normally device 1 ...

How to control a C# Program from the web? Using AJAX maybe?

Hello. Can anyone explain how to send variables from the web (PHP, Javascript, etc.) to a C# program? I want to allow the web to tell the program what to do. Maybe I could use AJAX to send data to an auto-updating page, which the C# program can then read? That would also allow users to be logged-in to the page and therefore different dat...

send ping after post something (for blogs)

Hello. I want to send some pings after post something to my blog. As you know wordpress use this method. I coded my own blog system and I want to send pings some web address. For example I want to request this link. www.google.com/webmasters/tools/ping?sitemap=http://www.domain.com/sitemap.ashx http://pingomatic.com/ping/?title=y&b...

How To Send Free SMS Programatically?

Here in Brazil we have a program called CoolSMS, that send free SMS to all the big operators that have here on our teritory, but even for VIVO(that we need to pay R$0.26 for every email-to-sms) it goes for free. Then I want to know how to do this programatically. Don't matter the language, but I prefer Java. ...