CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Telnet Client with MicroChip TCP/IP stack?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
rmozer



Joined: 06 Jun 2005
Posts: 17

View user's profile Send private message

Telnet Client with MicroChip TCP/IP stack?
PostPosted: Sun Jun 04, 2006 9:21 pm     Reply with quote

Using the CCS port of the MicroChip TCP/IP stack I am able to act as a Telnet host and I can send TCP or UDP packets without a problem. However if I try to "telnet" to a PC host (running Hyperterminal waiting for a TCP/IP connect) I see the connect and disconnect but the TCP data I send in the middle never shows up on the Hyperterminal. A protocol analyizer shows the TCP packet with the data arriving at the PC but I must not be following the TCP handshake properly.

Does anybody have a code fragment or suggestions that they would like to share?

Thanks,
Ron
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Mon Jun 05, 2006 11:35 am     Reply with quote

The first thing I would do is try another telnet client or reboot the PC. Hyperterminal is very buggy.
erhan



Joined: 17 Aug 2005
Posts: 7

View user's profile Send private message

PostPosted: Tue Dec 19, 2006 2:08 pm     Reply with quote

hello

I want to connect tcp server from port 5000
I wrote this code but not working why?subnetmask and gateway setting is ok.

Code:
TCP_SOCKET ConnectToServer(IP_ADDR *IPAddr, int16 DestPort)
{
 
   NODE_INFO remoteNode;

   remoteNode.MACAddr.v[0]=0x00;
   remoteNode.MACAddr.v[1]=0x17;
   remoteNode.MACAddr.v[2]=0x31;
   remoteNode.MACAddr.v[3]=0x2E;
   remoteNode.MACAddr.v[4]=0x26;
   remoteNode.MACAddr.v[5]=0xD5;

   remoteNode.IPAddr = *IPAddr;
   
   return TCPConnect(&remoteNode,DestPort);

}
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group