Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
236 user(s) are online (144 user(s) are browsing Forums)

Members: 0
Guests: 236

more...

Headlines

Forum Index


Board index » All Posts (ChrisH)




(solved) Roadshow puzzle - Recv() fails with EAGAIN
Home away from home
Home away from home


I've found that after receiving several hundred MB of data using Recv(), it will eventually fails with the error "EAGAIN".

But according to the autodocs:
"If no messages are available at the socket, the receive call waits for a message to arrive, unless the socket is nonblocking (see IoctlSocket()) in which case the value -1 is returned and the external variable errno set to EAGAIN."
(This is basically repeating what's said at https://linux.die.net/man/2/recvmsg )

And no, I never enable "FIONBIO" (non-blocking mode) !


I thought this was a Roadshow bug, but it seems that once EAGAIN occurs, calling Recv() again doesn't help (as fails again).

Could this be a network driver bug (or network card issue), rather than a bug in my code? (I can't see where I could be at fault.)


Edited by ChrisH on 2018/7/10 7:23:55
Edited by ChrisH on 2018/7/10 7:24:32
Edited by ChrisH on 2018/7/16 18:48:22
Author of the PortablE programming language.
Go to top


Re: E-UAE locking up constantly
Home away from home
Home away from home


@cloverskull
E-UAE's support for mounting the host's filing system is known to be a bit buggy.

I suggest creating & mounting a virtual hard disk partition, which you then format & use from inside E-UAE. Should be faster & much more reliable.

Author of the PortablE programming language.
Go to top


Re: How to get my local IP address? (using program code)
Home away from home
Home away from home


@Elwood
PortablE has had TCP/IP support for years (but only for AmigaOS4)...

Otherwise I wouldn't have been able to write this:
http://cshandley.co.uk/enewsreader/

Author of the PortablE programming language.
Go to top


Re: How to get my local IP address?
Home away from home
Home away from home


@TSK
Your code (probably) answers my next question, which would have been:

Quote:
Is it a good idea to only use the first Network Interface returned by ObtainInterfaceList() ?


Although I suppose if you were being really picky, you'd interate through all the Network Interfaces until you got an IP Address. (I'm assuming QueryInterfaceTagList() will fail if the network interface has no IP address - I guess you'd need to test that as well. edit: Seems that ObtainInterfaceList() returns an empty list in that case.)


Edited by ChrisH on 2018/6/13 20:09:45
Edited by ChrisH on 2018/6/13 20:10:56
Edited by ChrisH on 2018/6/13 20:13:02
Author of the PortablE programming language.
Go to top


Re: How to get my local IP address?
Home away from home
Home away from home


@broadblues
Thanks, that was it :) . I was in a hurry, so didn't see that hidden at the bottom.

I'm not sure why anyone would call a return value "success" when True means failure & False means success. IMHO it would make much more sense to call it "error" or "failure"...

Author of the PortablE programming language.
Go to top


Re: How to get my local IP address?
Home away from home
Home away from home


@all
It looks like I can get the necessary network interface name using ObtainInterfaceList()...

@broadblues
Thanks, that will probably save me a few crashes...
...but QueryInterfaceTagList() is returning False when I try to use it, so I think I must still be missing something.

Do I need to initialise the struct sockaddr? (But I tried a 'live' sockaddr, without luck.)


Edited by ChrisH on 2018/6/12 21:59:58
Edited by ChrisH on 2018/6/12 22:02:25
Author of the PortablE programming language.
Go to top


Re: How to get my local IP address?
Home away from home
Home away from home


@rwo
Thanks! QueryInterfaceTags() seems to be what I need... although it's rather poorly documented, so going to take me some time to work out how I'm supposed to use it. (e.g. "name -- Name of the interface to be queried" What "interface"? And how do I find it's name?!? e.g. "IFQ_Address (struct sockaddr *)" but how do I pass that parameter & get the return value as a tag list - using the same single data value?)

Author of the PortablE programming language.
Go to top


How to get my local IP address? (using program code)
Home away from home
Home away from home


Can anyone give hints on a simple way to find my Amiga's local IP address?

So far I only managed to get 127.0.0.1, which isn't very helpful! Other non-Amiga networking guides suggest getifaddrs() & other things which Roadshow doesn't have :(

NOTE: Since it doesn't seem clear I posted this in the Developer forum,
I am wanting to achieve this with code.


Edited by ChrisH on 2018/6/12 21:26:30
Author of the PortablE programming language.
Go to top


Amiga North Thames (ANT) meeting this Sunday
Home away from home
Home away from home


A reminder that the monthly Amiga North Thames meeting is this Sunday (10th June).

Author of the PortablE programming language.
Go to top


Re: RunInUAE r8 beta 6 (JIT) please test!
Home away from home
Home away from home


@LiveForIt, etc
Please do NOT discuss "whdload-to-uae" in this thread, as it's TOTALLY off-topic

@white Quote:
the SDL version gives me audio problems

OK, this looks like an actual on-topic comment, but provides so little info that I can't actually make use of it.

What kind of audio problems?

Author of the PortablE programming language.
Go to top


Re: RunInUAE r8 beta 6 (JIT) please test!
Home away from home
Home away from home


@all
Please don't post in this thread if you not testing the latest beta version of RunInUAE (I can see that "white" was using a really old version, at least initially).

If it was up to me, I would delete most of the off-topic comments here :( (or better move them to their own thread).

Author of the PortablE programming language.
Go to top


Re: SFTP filesystem
Home away from home
Home away from home


@K-L
That doesn't answer my question :)

Author of the PortablE programming language.
Go to top


Re: SFTP filesystem
Home away from home
Home away from home


@pjs
Where is it possible to download (beta) SFTP from?


Edited by ChrisH on 2018/4/18 20:43:01
Author of the PortablE programming language.
Go to top


Amiga North Thames (ANT) meeting this Sunday
Home away from home
Home away from home


A reminder that the monthly Amiga North Thames meeting is this Sunday (8th April).

Sensible Golf match, round 2

Author of the PortablE programming language.
Go to top


Re: RunInUAE r8 beta 6 (JIT) please test!
Home away from home
Home away from home


@pseudaxos
What resolution do you use for UAE? 640x480 or something lower?
(This is the one thing which might make a big difference for AmiGfx vs SDL.)

You can check from RunInUAE's menu: Shared settings > Set default screen size to.


@outrun1978 Quote:
One other thing which i also strangely found made a difference was my hard disk drive, so with this in mind

Sounds like placebo effect... UAE makes no significant HD access, so HD won't make any difference.


Edited by ChrisH on 2018/4/2 21:59:35
Edited by ChrisH on 2018/4/2 22:00:13
Edited by ChrisH on 2018/4/2 22:01:40
Author of the PortablE programming language.
Go to top


Re: RunInUAE r8 beta 6 (JIT) please test!
Home away from home
Home away from home


@pseudaxos
Thanks. Confusing that is the exact opposite of what someone else reported:
http://www.amigans.net/modules/xforum ... id=110263#forumpost110263

But it is in line with my previous experiences when I used an underpowered Sam440.

I hope a few more people can report their experiences on Sam460 (and slower hardware).

Author of the PortablE programming language.
Go to top


Re: RunInUAE r8 beta 6 (JIT) please test!
Home away from home
Home away from home


@nubechecorre
The AmiGfx version on OS4Depot is definitely NOT the SDL version (I just checked the executables) :
http://os4depot.net/index.php?functio ... computer/e-uae-amigfx.lha

P.S. This is the same as was used in previous RunInUAE r8 betas.

Author of the PortablE programming language.
Go to top


Re: ppc emulation for Amiga 680x0 systems ?
Home away from home
Home away from home


@ScarFez
It's called a Blizzard/Cyberstorm PPC card

Author of the PortablE programming language.
Go to top


Re: RunInUAE r8 beta 6 (JIT) please test!
Home away from home
Home away from home


@all
Beta 6 has now been released. Please test!
(See first post for more info)

Author of the PortablE programming language.
Go to top


Re: RunInUAE r8 beta 5 (JIT) please test!
Home away from home
Home away from home


@nubechecorre
My bad. Forgot to replace references to "amigfx" with "sdl". I will fix this.
But if it reinstalled E-UAE for you, then you now have the SDL version.

However, my installer script wasn't properly checking for a different E-UAE version, so it may not have asked for you to reinstall E-UAE. I will fix this.

Next beta of RunInUAE coming soon...

Author of the PortablE programming language.
Go to top



TopTop
« 1 2 (3) 4 5 6 ... 164 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project