Search the web
Sign In
New User? Sign Up
ts-7000 · TS-7000 ARM SBC
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Opening a TCP/IP Socket   Message List  
Reply | Forward Message #518 of 16548 |
Re: Opening a TCP/IP Socket



Yes the application is running and yes I do know the simplicity of
writing stdio applicatons invoked from inetd, but this applicaton
does not suit that environment! Not making a big 'meal', just
asking for some help!

Clive


--- In ts-7000@yahoogroups.com, Jim Jackson <jj@f...> wrote:
>
>
> On Wed, 9 Feb 2005, amalgamatedsystems wrote:
>
> > This may be more of a Linux question, but my application is on
> > a TS-7200.
> >
> > I have a small TCP/IP server application that listens on port
502.
> >
> > However, any client connection is refused. Also this
> > server (service) does not appear in the 'netstat -a' listing.
>
> Then I'd say that you application is not listening on port 502!
Hence
> client connections will be refused.
>
> Is the application running? Have you checked with ps?
>
> > Can anyone help me on what I need to do to open this port?
>
> People make such a meal out of writing network servers for simple
stuff.
> Any program that reads and writes to/from stdin/stdout can be made
into a
> network server program by executing it from inetd.
>
> In very many situations you do not need to go to the bother of
writing and
> debugging networking code.
>
> Jim









Thu Feb 10, 2005 2:13 am

amalgamateds...
Offline Offline
Send Email Send Email

Forward
Message #518 of 16548 |
Expand Messages Author Sort by Date

Hi All, This may be more of a Linux question, but my application is on a TS-7200. I have a small TCP/IP server application that listens on port 502. However,...
amalgamatedsystems
amalgamateds...
Offline Send Email
Feb 9, 2005
12:27 pm

Hi Clive, I'm working on a server-like program running onboard the TS-7200, my client is a visual basic based application and it works, if you let me know few...
marcolamonato
Offline Send Email
Feb 9, 2005
6:23 pm

Thanks. Well the server opens a socket on port 502 and then waits (listens) for a connection. I know this works because I am using the same code (i.e....
amalgamatedsystems
amalgamateds...
Offline Send Email
Feb 9, 2005
8:09 pm

Dear Clive, to work below the 1024 limit you must be sure that your port 502 is not yet asked from a differnt task and that you have the root's rights, however...
marcolamonato
Offline Send Email
Feb 9, 2005
9:47 pm

... Then I'd say that you application is not listening on port 502! Hence client connections will be refused. Is the application running? Have you checked with...
Jim Jackson
jimbox51
Offline Send Email
Feb 9, 2005
9:42 pm

Yes the application is running and yes I do know the simplicity of writing stdio applicatons invoked from inetd, but this applicaton does not suit that...
amalgamatedsystems
amalgamateds...
Offline Send Email
Feb 10, 2005
12:25 pm

... Ok but if netstat -a doesn't show the port, it's a fairly good bet that the socket isn't open. ... Not got enough info to do that I'm afraid! Jim...
Jim Jackson
jimbox51
Offline Send Email
Feb 10, 2005
4:35 pm

Dear Clive, as Jim said, give few more details if possible. I prompted the 'netstat -a' command while listening and after getting the accepted connection. My...
marcolamonato
Offline Send Email
Feb 10, 2005
5:55 pm

Here is an example C program using TCP to open a socket and listen.... I have a attached the source as well as binary(for TS-72xx) how this helps... Eddie...
Eddie Dawydiuk
sys0p22
Offline Send Email
Feb 11, 2005
12:22 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help