socket programming

Posted on 2006-04-08
Medium Priority
Last Modified: 2009-12-16

I need to do socket programming to connect from a pc application to an as/400 application

can someone pls advice me where shall I start


Question by:royalcyber
LVL 13

Accepted Solution

_b_h earned 672 total points
ID: 16410247
Here is a link for a general socket programming tutorial:
The tutorial is well-written, and you can download his sample source. The tutorial is for RPG, but explains the concepts very well.

For Visual Basic socket client, check out:

LVL 14

Assisted Solution

daveslater earned 664 total points
ID: 16415598
there is some freeware at

this will do all the RPG stuff for you.

LVL 27

Assisted Solution

tliotta earned 664 total points
ID: 16421605

Are you needing to do _any_ sockets programming on your AS/400? Are you already familiar with sockets programming in general? If "yes & no", then you can probably get a _big_ start by:


...and seeing about getting a copy of their TCP/IP Socket Client APIs stuff. This can be a huge help in working through sockets issues. It provides a bunch of client procedures that are far easier to implement than the sockets APAIs themselves.

When you need to create a full client/server app, you run into a tough obstacle -- You can't really test your client until the server works; you can't really test your server until your client works. Having a solid set of pre-built components can really speed up testing _and_ learning.

IBM doesn't make it easy to download this freeware, but it's definitely worthwhile jumping through their hoops.


Featured Post

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

Question has a verified solution.

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

This shares a stored procedure to retrieve permissions for a given user on the current database or across all databases on a server.
Applications for our next round of the Experts Exchange Scholarship Contest are starting to roll in. It made us wonder what our past winners are up to these days. Here's a look at what four winners experienced with the contest and what they're doing…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month16 days, 19 hours left to enroll

862 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