Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

if you are a GUSI and CODEWARRIOR EXPERT...

Posted on 1997-05-07
1
Medium Priority
?
308 Views
Last Modified: 2013-12-27
HI

(please see my previous post titled "mac os 7.5.3 --> solaris 2.5"
in this area)

to recap, i am trying to send a message from a macintosh
client across to a server on a unix machine

1.  the client is on a power mac os 7.5.3, code warrior version 11
2.  it connects + binds + other minimum necessary stuff to my server
    process on the solaris unix machine (they are ethernet'd)
3.  it sends a simple message (character byte stream, fixed length)
4.  it disconnects
5.  repeat 1-4

So far, this is the progress i have made:

i used the GUSI package that came with CW 11 and compiled and linked
the provided source code without modifying it in any way

however, the executable does not appear to work.  i say this because:

when i try to run the executable GUSIINETTEST with the following

         co 111.222.333.444 6500

where 111.222.333.444 is the IP address of my unix server machine
and 6500 is the hardcoded port number that my server process uses,
i keep getting the same message "socket is not good" or something (the
debugger shows the socket value == -1) all of the other command line
options that GUSIINETTEST (or GUSIAPPLTEST , GUSIUNIXTEST, etc) all
return the same message.

HOWEVER, the executable WAS able to convert from ip name to ip address and
vice versa i.e.

         111.222.333.444  --> mymachine.mycompany.com

ALSO, the GUSIFILETEST executable worked 100% well.

NOW,

what i 'm wondering is>> do i have to configure and mess around
with mac tcp control panels or chooser or etc etc? i'm not very mac
literate.  or, is the problem on my server side?  (i have my
server process running on the unix machine of course, when i try
the client executable.  also, i've tested my server by running
a client process on the same unix machine.  i'm just having
a problem going across platforms from MAC --> UNIX)

PLEASE HELP!!!!!

if you have code which will do what i need, i'd appreciate it
GREATLY!! THANKS!!!
0
Comment
Question by:happyloman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
AdamS earned 100 total points
ID: 1541915
Hi Happloman (again)

I'm glad to see you found GUSI. I've found it to work identically to UNIX sockets. I.E., a program I wrote on UNIX compiled with GUSI and ran correctly. But the GUSINETTEST program I've found to be awkward to use. Are you sure you were using the commands correctly? Dont you have to create a new socket before connecting? (I'm going from memory here since I havent used GUSI in over a year). Was the server process running on the UNIX machine and did it bind 111.222.333.444 6500 so that all incoming requests go to that process?



Just try writing the program yourself on the UNIX side and then it should be simple to port it to GUSI.


0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this Apple-hardware based article is to provide helpful information about an important component required of all Apple portable notebooks (Apple does not call them "Laptops" because they are too hot to sit on your lap), but is not o…
Does your iMac really need a hardware upgrade? Will upgrading RAM speed-up your computer? If yes, then how can you proceed? Upgrading RAM in your iMac is not as simple as it may seem. This article will help you in getting and installing right RA…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

661 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question