Question about Operating Systems

1 Answer

Porting of watcom TCP server to VC++

Hi,
I ported a tcp/ip server in Watcom to VS2005, It is not able to
communicate with multiple clients inVS2005. Found some miss behaviour with recv() function of winsocket lib,when sharing the same function with different threads. can any body give a suggestion to solve this problem.

Kannan.

Posted by on

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    Prodigy:

    An expert who has answered 500 questions.

  • Expert
  • 508 Answers

Sreejesh!

For this kind of TCP/IP problem, you have to call, Watcom, offices and try to get a programmer there. they can help you. I have no doubts.

Posted on Feb 29, 2008

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Why Does the TCP Connection Fail Even If the Server and Client Both Initiate a TCP Connection?


LDP sessions are established based on TCP connections using MD5 authentication. The TCP connection cannot be established, if one end is configured with MD5 authentication while the other end is not, or the MD5 passwords on the two ends are different. If MD5 cipher text authentication is proprietary on other vendors' devices, Huawei devices cannot set up a TCP connection with these devices.

TN11D4001 Huawei TN11D4001 Board Thunder link com

Oct 08, 2016 | Operating Systems

2 Answers

1. I need to connect a print server that support printing with Novell Netware 4.11...any such models available in the market. 2. Since Windows 7 does not come with support of IPX/SX is there a way to...


Greetings - Regarding Win 7 machines connecting to Netware 4.11, you need to setup TCP/IP on the server and connect Windows 7 via TCP/IP.

Regarding print servers, the tried and true HP Jetdirect Print Server series are well supported with Netware 4.11

Regards and Thanks for using Fix Ya.

Mikeywaf

Apr 12, 2011 | Novell IntraNetWare 4.11 for PC

1 Answer

Remote Desktop printing with TCP/IP printer


Go to the control panel on the remote server. Then go to the printers screen. From there "add a printer". Once there, select "local printer attached to this computer" and make sure to un-check the "automatically detect and install ... " option.

Then click next and select the second option of "create a new port" with the type of port being "standard TCP/IP port"

Enter the IP address of the printer. The name could also be entered, but the IP address would be better. Leave the port name as the default which will populate as you enter the IP address.

Once through there, go through the process of adding the drivers just as you've done before. The screen to do this will pop up automaticall, though it may take a moment. You might be able to just select the printer drivers from the list. But if you have the drivers saved on your server, it is best to click "have disk" and manually install the drivers.

Dec 07, 2009 | Microsoft Windows XP Professional

1 Answer

I have two different domains that are connected via VPN connection through two routers. I can ping from domain to domain via IP address on clients and servers. However I can only do a net view command on...


So you verified ICMP traffic isn't blocked and it appears the servers allow the netBios traffic to pass.

On the client machine, check to make sure the windows print and file sharing is installed and the machine isn't blocking netBios traffic.

Make sure TCP ports 137,139, and 445 are open on the xp machine and any devices in between.

It's acting like the TCP data is being blocked by the client machine.

HTH,
-Aaron



Sep 28, 2009 | Microsoft Windows XP Professional

1 Answer

LINUX SQUID SERVER IN TRANSPARENT MODE


Dear Friend....
The examples below are based on the discussion of Linux iptables in Chapter 14, "Linux Firewalls Using iptables". Additional commands may be necessary for you particular network topology.
In both cases below, the firewall is connected to the Internet on interface eth0 and to the home network on interface eth1. The firewall is also the default gateway for the home network and handles network address translation on all the network's traffic to the Internet.
Only the Squid server has access to the Internet on port 80 (HTTP), because all HTTP traffic, except that coming from the Squid server, is redirected.
If the Squid server and firewall are the same server, all HTTP traffic from the home network is redirected to the firewall itself on the Squid port of 3128 and then only the firewall itself is allowed to access the Internet on port 80.
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 \
-j REDIRECT --to-port 3128
iptables -A INPUT -j ACCEPT -m state \
--state NEW,ESTABLISHED,RELATED -i eth1 -p tcp \
--dport 3128
iptables -A OUTPUT -j ACCEPT -m state \
--state NEW,ESTABLISHED,RELATED -o eth0 -p tcp \
--dport 80
iptables -A INPUT -j ACCEPT -m state \
--state ESTABLISHED,RELATED -i eth0 -p tcp \
--sport 80
iptables -A OUTPUT -j ACCEPT -m state \
--state ESTABLISHED,RELATED -o eth1 -p tcp \
--sport 80
Note: This example is specific to HTTP traffic. You won't be able to adapt this example to support HTTPS web browsing on TCP port 443, as that protocol specifically doesn't allow the insertion of a "man in the middle" server for security purposes. One solution is to add IP masquerading statements for port 443, or any other important traffic, immediately after the code snippet. This will allow non HTTP traffic to access the Internet without being cached by Squid.
If the Squid server and firewall are different servers, the statements are different. You need to set up iptables so that all connections to the Web, not originating from the Squid server, are actually converted into three connections; one from the Web browser client to the firewall and another from the firewall to the Squid server, which triggers the Squid server to make its own connection to the Web to service the request. The Squid server then gets the data and replies to the firewall which then relays this information to the Web browser client. The iptables program does all this using these NAT statements:
iptables -t nat -A PREROUTING -i eth1 -s ! 192.168.1.100 \
-p tcp --dport 80 -j DNAT --to 192.168.1.100:3128
iptables -t nat -A POSTROUTING -o eth1 -s 192.168.1.0/24 \
-d 192.168.1.100 -j SNAT --to 192.168.1.1
iptables -A FORWARD -s 192.168.1.0/24 -d 192.168.1.100 \
-i eth1 -o eth1 -m state
--state NEW,ESTABLISHED,RELATED \
-p tcp --dport 3128 -j ACCEPT
iptables -A FORWARD -d 192.168.1.0/24 -s 192.168.1.100 \
-i eth1 -o eth1 -m state --state ESTABLISHED,RELATED \
-p tcp --sport 3128 -j ACCEPT
In the first statement all HTTP traffic from the home network except from the Squid server at IP address 192.168.1.100 is redirected to the Squid server on port 3128 using destination NAT. The second statement makes this redirected traffic also undergo source NAT to make it appear as if it is coming from the firewall itself. The FORWARD statements are used to ensure the traffic is allowed to flow to the Squid server after the NAT process is complete. The unusual feature is that the NAT all takes place on one interface; that of the home network (eth1).
You will additionally have to make sure your firewall has rules to allow your Squid server to access the Internet on HTTP TCP port 80 as covered in Chapter 14, "Linux Firewalls Using iptables".

Good Luck!

Jun 22, 2009 | Operating Systems

1 Answer

Tcp port 24000-24100


Hi Sorry to hear you are having problems,
MacOS 10.4 has a firewall built into it ( Of course all MacOS X versions have firewalls ) that can have ports opened on it. You say it was working fine yesterday, did you change anything ?
Fastest and easiest way to open ALL TCP/IP ports is to turn off your FireWall for the time you are playing then re-activate it when you're done.
This can be done in the sharing pane of the System preferences, choose firewall and turn it OFF.
You could of course open just the ports 24000-24100 in the same preference pane...
But chances are it might be something else if you did not modify your system since yesterday.
Are you on the same network as yesterday? Are you able to play on another network ?

Mar 01, 2009 | Apple Mac OS X 10.4 Tiger for Mac

1 Answer

Networking problem


From client pc
1.) click start
2.)click run
3.)in the box that opens, type cmd
4.)click ok button
A black box will appear
5.) type ipconfig
6.)press the enter key
Some lines of text will appear. One of these lines says IP Address please take note of the numbers to left of this. This is your Clients IP address
Now, you said your server IP address is 192.168.1.2 and lets say from the instructions I just gave you that you find your client IP address is 192.168.2.5. If your client pc does not have an IP address that begins with 192.168.1 it will not see your server. Also, If your client pc in question has an IP address the same as another one of your client pc's it will not see a server.
I suggest the following.
Change the IP address on your client pc following these steps
From the desktop of the client pc
1.)click start
2.)open control panel
3.)double click Network Connections
4.)right click Local Area Connection (it is possible to have more than one)
5.)left click properties
6.)a window will open, in the middle of this window is box you can scroll down in, scroll down and find TCP/IP
7.) left click on TCP/IP to highlight it
8.)once highlighted click the properties buttton just below the scroll box.
9.)another window will open
10.)click the dot next to Use the following IP Address
11.) enter the following
IP Address = 192.168.1.??? (replace question marks with a number of your choosing. Just dont go above 254 and don't use a number that you are using on your other pc's)
Subnet Mask = 255.255.255.0
Gateway = 192.168.1.2
12.) click ok
13.) click ok on any other open windows and reboot PC. then test connectivity.

PLEASE NOTE: There are alot of things that can change what you need to enter for the Gateway, Subnet Mask and IP address. Generally with simple networking it is what i have described above but if you have a Cable/DSL router for internet or wireless router then the numbers you must put in these fields changes. The directions I gave you above is assuming that you just want to get your pc talking to your server. It does not take into account any routers or advanced networking equipment. If you do have a router I will need more info and a somewhat different set of directions will apply.

Feb 19, 2009 | Microsoft Windows XP Professional

1 Answer

Conversion of SNMP to TCP/IP packet


Hi!


I suggest the following:
Install a packet analyzer to the target machine.
This program helps you observe and analyze the network traffic real time. It is helpful for debug the network packets, look inside how the frames is structured. The Wireshark is quite popular debugger tool. Install it and check TCP/IP and SNMP packets with it.
Here is it:
http://www.wireshark.org/download.html

Second:
There is a lot of information on the internet about the SNMP freame formats and TCP/IP protocol.
Here are some useful links:
http://www.tcpipguide.com/free/t_SNMPMessageFieldDefinitionsGeneralMessageFormatand.htm
http://www.dpstele.com/layers/l2/snmp_l2_tut_part1.php
http://www.rane.com/note161.html
A lot of RFC documents write down the SNMP protocol.

Here are somple helpful VC++ programs:
https://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=7949&lngWId=3

I suggest using free tools to test your network device:
http://manageengine.adventnet.com/products/oputils/free-snmp-tools.html









Dec 30, 2008 | Operating Systems

1 Answer

Computer


Hello,
You are going to go to the tcp/ip settings and enter a permanent ip address.
If you access the internet you could always use the ip address you are getting from dhcp, just go to start-run and type cmd then at the command prompt type ipconfig and copy the ip, subnet, gw and dns to the tcp/ip settings.
Thank you for choosing agadycom.

Nov 13, 2008 | Microsoft Windows Server Standard 2003 for...

Not finding what you are looking for?
Operating Systems Logo

Related Topics:

65 people viewed this question

Ask a Question

Usually answered in minutes!

Top Operating Systems Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18299 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Prashant  Sharma
Prashant Sharma

Level 3 Expert

1127 Answers

Are you an Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...