• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Netsocket ( RST flag instead of ACK )
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Netsocket ( RST flag instead of ACK )


  • Subject: Netsocket ( RST flag instead of ACK )
  • From: Rodrigo Otaviano <email@hidden>
  • Date: Mon, 25 Aug 2003 17:13:10 -0700

Hi there,

I've been using Netsocket for a few days and now I'm running into some problems here.

I'm trying to connect to a pop3 server and execute some basic commands.

So, I have the following method "pop3Connect":


- (void)pop3Connect:(NSString *)inPopServer
{

NSLog(@"Connecting to %@ ",inPopServer);
mSocket = [[NetSocket netsocketConnectedToHost:inPopServer port:110] retain];

// I'm using this just for troubleshooting
if (mSocket==nil) NSLog(@"ERR CONNECT"); else NSLog(@"OK CONNECT");

[mSocket scheduleOnCurrentRunLoop];
[mSocket setDelegate:self];

}

that is called by:

- (IBAction)myCheckMailbox:(id)sender
{
Pop3* popsocket;
popsocket=[[Pop3 alloc]init];

[popsocket pop3Connect:[myPopServer stringValue]];

blah blah blah ...

}

I have checked the network traffic through a sniffer to verify the three-way handshake and first my client sends a SYN flag, then it gets an ACK and a SYN from the server ( so far so good ) and then it sends a RST ( reset flag ) instead of an ACK ( ?!?!? )

My delegate method netsocketConnected doesn't get called whatsoever.

- (void)netsocketConnected:(NetSocket*)inNetSocket
{

NSLog(@"Connected !!!");
[self setBeleza:TRUE];

}


and I cannot send any command to the server ( of course ).


If would like to know if someone here could shed a light on that. I think I may be missing something really stupid but ... some smoke is now coming out of my head so ... I decided to post this message.

Thanks in advance for any help.

Rodrigo Otavio Paes de Barros Otaviano
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Carbon-in-cocoa dialog and Edit menu
  • Next by Date: MouseClick in NSOutline
  • Previous by thread: Carbon-in-cocoa dialog and Edit menu
  • Next by thread: MouseClick in NSOutline
  • Index(es):
    • Date
    • Thread