COBOL User Groups COBOL COBOL Programming
Home | Search | User Registration | Membership | Contact | About | Advertise

COBOL Resources

 >  Blogs
 >  Books
 >  Code Samples
 >  Courses
 >  Forums
 >  Knowledge Bases
 >  Magazines
 >  Manuals
 >  Portals
 >  Support
 >  Tutorials
 >  User Groups
 >  White Papers

COBOL Software

 >  Change Management
 >  Code Conversion
 >  Compilers
 >  Data Access
 >  Database
 >  Documentation
 >  Editors
 >  File Conversion
 >  GUI
 >  Modernization
 >  Report Generators
 >  Sort
 >  Terminal Emulators
 >  Test
 >  Tools
 >  Trans. Processing

COBOL Information

 >  Events
 >  Jobs
 >  News Articles
 >  Product News
 >  Standards
 

COBOL Forums

 
Micro Focus [ return ]
From Message
basile

 Email

10/28/2005
14:51:21
Subject: Connecting to a port


Message:
I'm trying to connect to a port that a server app is listening on, but I cannot bind to the port because it is already in use (let's say port 7001)on a Windows 2000 box, using NetExpress 2.0.

If my program binds to a port that it is listening on (let's say port 7002), I can receive data from a client app.

I'm using a slightly modified version of the GCSTCPSV.CBL program that can be found on the code samples page (sockets.zip), but this example sends and receives on the same port.

My app needs to send data on one port (7002) and listen to another port (7001). Another of the examples in the sockets.zip file uses a "connect" function, but when I try to use that, a "Protocol Not Supported" error is displayed.

Any advice would be really appreciated.

Thank you


 
[ Go to Top of Page ]
COBOL NuTrak Ad


COBOL Forums
COBOL Forum Do you need COBOL help?
Let the COBUG members help you. Post your issues!



COBOL Job Resources
COBOL Jobs Here are references to a wealth of COBOL job resources, including job listing sites, resume preparation, and interview questions.


Job and Resume Matchmaker!
COBOL Jobs Employers submit your COBOL job openings. Job seekers submit your resumes.

Join COBUG!
COBOL User Groups Become a part of the COBUG community today. Register Now ...


Start a COBOL User Group!
COBOL User Groups Make a difference today and start an Acucorp User Group, Fujitsu User Group, or Micro Focus User Group

COBOL (c) Information Computing Services. All Rights Reserved. COBOL