Ask a Question related to UNIX Programming, Design and Development.
-
Jack Klein #1
Re: this very simple UDP client/server.. doesn't work?
On Mon, 04 Aug 2003 04:37:26 GMT, "Adam M." <adamm@san.rr.com> wrote
in comp.lang.c:
In the future please leave comp.lang.c out of crossposts like this.> Hi, I'm trying to get a simple UDP client/server working.
The standard C language has no support for sockets or any sort of
networking.
The two headers above are not part of the C language and are off-topic> #include <sys/socket.h>
> #include <netinet/in.h>
here.
--
Jack Klein
Home: [url]http://JK-Technology.Com[/url]
FAQs for
comp.lang.c [url]http://www.eskimo.com/~scs/C-faq/top.html[/url]
comp.lang.c++ [url]http://www.parashift.com/c++-faq-lite/[/url]
alt.comp.lang.learn.c-c++ [url]ftp://snurse-l.org/pub/acllc-c++/faq[/url]
Jack Klein Guest
-
Flash Webcam client <-> client (not client <-> server<-> client)
Dear Flash Team, supporter and regular mortals (Like myself) I am currently running a IRC chat with mostly webclients connected. We currently offer... -
simple client-server program ??
Hi, how do I develop the following 'simple' program using ASP.NET webforms : a client has a text-file (aaa.txt) that has to be manipulated by... -
Why Doesn't This Simple SWF Work?
http://www.uci.net/redesign/flash2.html 1) using loadVariables, I call a cgi (server-side) script that prints a content-type header, then stores... -
[PHP] Why wouldn't a simple script work on my server that works on other servers?
* Thus wrote Dan Anderson (dan@mathjunkies.com): That is a sign that php isn't parsing them, so I would first make sure that my file extenstions... -
Simple App As A Smart Client
Hello, "cksj" <cksanjose@hotmail.com> schrieb: Post your application in the microsoft.public.dotnet.framework.compactframework ng. Regards,... -
Adam M. #2
Re: this very simple UDP client/server.. doesn't work?
On Mon, 04 Aug 2003 04:37:26 GMT, Adam M. <adamm@san.rr.com> wrote:
Sorry, I'm an idiot.> Hi, I'm trying to get a simple UDP client/server working.
> [snip]
It wasn't working due to 'iptables' blocking the packets. I can't believe
I forgot about that.
Wellp, nothing to see here, move along. Just another useless usenet post.
:-)
Adam M. Guest
-
Monisha Barooah #3
Re: this very simple UDP client/server.. doesn't work?
"Adam M." <adamm@san.rr.com> wrote in message news:<oprtc8i7drr2zrv2@news-server.san.rr.com>...
> On Mon, 04 Aug 2003 04:37:26 GMT, Adam M. <adamm@san.rr.com> wrote:
>> Sorry, I'm an idiot.> > Hi, I'm trying to get a simple UDP client/server working.
> > [snip]
>
> It wasn't working due to 'iptables' blocking the packets. I can't believe
> I forgot about that.
>
> Wellp, nothing to see here, move along. Just another useless usenet post.
> :-)
Hi Adam,
e = recvfrom(s, buf, sizeof(buf), 0, NULL, NULL);
You are using recvfrom and not even specified the IP address from
which to receive the packet?
I think that is the problem.
Monisha
Monisha Barooah Guest
-
Rainer Temme #4
Re: this very simple UDP client/server.. doesn't work?
"Monisha Barooah" <monishabarooah@yahoo.com> schrieb im Newsbeitrag
news:68ef19de.0308040309.2116a269@posting.google.c om...news:<oprtc8i7drr2zrv2@news-server.san.rr.com>...> "Adam M." <adamm@san.rr.com> wrote in messagebelieve> > On Mon, 04 Aug 2003 04:37:26 GMT, Adam M. <adamm@san.rr.com> wrote:
> >> > Sorry, I'm an idiot.> > > Hi, I'm trying to get a simple UDP client/server working.
> > > [snip]
> >
> > It wasn't working due to 'iptables' blocking the packets. I can'tpost.> > I forgot about that.
> >
> > Wellp, nothing to see here, move along. Just another useless usenetIf he only wants to receive packets, then it's ok the specify NULL-pointers.>> > :-)
>
> Hi Adam,
>
> e = recvfrom(s, buf, sizeof(buf), 0, NULL, NULL);
>
> You are using recvfrom and not even specified the IP address from
> which to receive the packet?
>
> I think that is the problem.
>
> Monisha
However, if his server would ever like to answer the params are required,
otherwise he would indeed have no information about the sender.
Anyway, to my knowledge, the from- and fromlen- parameters
in the recvfrom() call are not intended to be used as a filter to
specify a certain address from which you want to receive packets
now. (If you want a datagram-socket to become part of a
one to one association you might want to call connect()
on the serverside (!!) )
regards ... rainer
Rainer Temme Guest



Reply With Quote

